Wire targeted toast notifications to document status transitions

This commit is contained in:
Thanakorn S
2026-05-27 13:44:55 +07:00
parent dbbc89f8f2
commit ea94b6a6ae
7 changed files with 10 additions and 0 deletions
+1
View File
@@ -22,6 +22,7 @@
$answer['success'] = 1;
$answer['message'] = 'Invoice voided.';
notify_node('invoice_updated', [], $company_id);
emit_notification_user($company_id, $user_id, 'Invoice Voided', 'The invoice has been voided.', 'warning');
} catch (PDOException $e) {
$answer['message'] = 'Database error, please try again.';