1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

add activity events for purchase orders

This commit is contained in:
David Bomba 2022-06-09 11:03:21 +10:00
parent f85efed650
commit 49fedd9828
2 changed files with 16 additions and 0 deletions

View File

@ -109,6 +109,14 @@ class Activity extends StaticModel
const DELETE_RECURRING_EXPENSE = 123; const DELETE_RECURRING_EXPENSE = 123;
const RESTORE_RECURRING_EXPENSE = 124; const RESTORE_RECURRING_EXPENSE = 124;
const CREATE_PURCHASE_ORDER = 130;
const UPDATE_PURCHASE_ORDER = 131;
const ARCHIVE_PURCHASE_ORDER = 132;
const DELETE_PURCHASE_ORDER = 133;
const RESTORE_PURCHASE_ORDER = 134;
const EMAIL_PURCHASE_ORDER = 135;
const VIEW_PURCHASE_ORDER = 136;
protected $casts = [ protected $casts = [
'is_system' => 'boolean', 'is_system' => 'boolean',
'updated_at' => 'timestamp', 'updated_at' => 'timestamp',

View File

@ -4612,6 +4612,14 @@ $LANG = array(
'purchase_order_number_short' => 'Purchase Order #', 'purchase_order_number_short' => 'Purchase Order #',
'inventory_notification_subject' => 'Inventory threshold notification for product: :product', 'inventory_notification_subject' => 'Inventory threshold notification for product: :product',
'inventory_notification_body' => 'Threshold of :amount has been reach for product: :product', 'inventory_notification_body' => 'Threshold of :amount has been reach for product: :product',
'activity_130' => ':user created purchase order :purchase_order',
'activity_131' => ':user updated purchase order :purchase_order',
'activity_132' => ':user archived purchase order :purchase_order',
'activity_133' => ':user deleted purchase order :purchase_order',
'activity_134' => ':user restored purchase order :purchase_order',
'activity_135' => ':user emailed purchase order :purchase_order',
'activity_136' => ':contact viewed purchase order :purchase_order',
); );
return $LANG; return $LANG;