Wire targeted toast notifications to document status transitions
This commit is contained in:
@@ -38,6 +38,7 @@
|
||||
$answer['auto_approved'] = $auto_approve;
|
||||
$answer['auto_invoice'] = $auto_invoice;
|
||||
notify_node('order_updated', [], $company_id);
|
||||
emit_notification_user($company_id, $user_id, 'Order Confirmed', 'The sales order has been confirmed.', 'success');
|
||||
if ($auto_invoice) {
|
||||
(new UsageGuard($pdo1, $company_id, $packages))->increment();
|
||||
notify_node('invoice_updated', [], $company_id);
|
||||
|
||||
Reference in New Issue
Block a user