Fix GL journal save, edit, detail view and list filters
Send journal lines, gl_id and list filters inside the ajax data payload where ajax_request reads them, select period when replacing a manual journal, and show ledger amounts to two decimals.
This commit is contained in:
@@ -157,8 +157,10 @@
|
||||
autoPrepare: true,
|
||||
checkRequired: 0,
|
||||
action: 'save',
|
||||
open_from: from,
|
||||
open_to: to,
|
||||
// Inside `data`: as top-level options these were ignored, and the save
|
||||
// only worked because autoPrepare happens to sweep the two inputs, whose
|
||||
// ids match the field names.
|
||||
data: { open_from: from, open_to: to },
|
||||
onSuccess: function() {
|
||||
render_display(from, to);
|
||||
}
|
||||
@@ -173,8 +175,7 @@
|
||||
autoPrepare: true,
|
||||
checkRequired: 0,
|
||||
action: 'save',
|
||||
open_from: '',
|
||||
open_to: '',
|
||||
data: { open_from: '', open_to: '' },
|
||||
onSuccess: function() {
|
||||
render_display('', '');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user