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:
@@ -81,7 +81,11 @@ class GlManager
|
||||
$now = date('Y-m-d H:i:s');
|
||||
|
||||
$sth = $this->pdo->prepare(
|
||||
"SELECT id, current_version, formula_id, history
|
||||
// `period` is read below as $old_period to reverse the old ETL
|
||||
// totals. It was missing from this list, so it was always null and
|
||||
// upsertEtl(string $period) threw a TypeError — every edit of a
|
||||
// manual journal ended in HTTP 500.
|
||||
"SELECT id, current_version, formula_id, history, period
|
||||
FROM td_gl
|
||||
WHERE company_id = :cid AND id = :gl_id AND source_type = 'manual'
|
||||
FOR UPDATE"
|
||||
|
||||
Reference in New Issue
Block a user