Seal live dashboard event gaps
This commit is contained in:
@@ -69,7 +69,7 @@
|
||||
$pdo2->beginTransaction();
|
||||
$gl->post('payment', $new_id, $built['formula_id'], $built['period'], $built['lines'], ['journal_date' => $built['doc_date']]);
|
||||
$pdo2->commit();
|
||||
notify_node('gl_posted', ['doc_type' => 'payment', 'id' => $new_id, 'action' => 'posted'], $company_id);
|
||||
notify_node('gl_posted', gl_posted_payload('payment', (int)$new_id, 'posted', $built['lines'] ?? []), $company_id);
|
||||
$answer['gl_posted'] = true;
|
||||
} catch (Exception $e) {
|
||||
if ($pdo2->inTransaction()) $pdo2->rollBack();
|
||||
|
||||
Reference in New Issue
Block a user