1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-09 12:42:36 +01:00

Add subscription events.

This commit is contained in:
Felix Labrecque 2020-07-20 17:37:58 -04:00
parent 1f81f03e45
commit 7f3ebffb36

View File

@ -989,6 +989,38 @@ class Utils
return EVENT_CREATE_PAYMENT;
} elseif ($eventName == 'create_vendor') {
return EVENT_CREATE_VENDOR;
} elseif ($eventName == 'update_quote') {
return EVENT_UPDATE_QUOTE;
} elseif ($eventName == 'delete_quote') {
return EVENT_DELETE_QUOTE;
} elseif ($eventName == 'update_invoice') {
return EVENT_UPDATE_INVOICE;
} elseif ($eventName == 'delete_invoice') {
return EVENT_DELETE_INVOICE;
} elseif ($eventName == 'update_client') {
return EVENT_UPDATE_CLIENT;
} elseif ($eventName == 'delete_client') {
return EVENT_DELETE_CLIENT;
} elseif ($eventName == 'delete_payment') {
return EVENT_DELETE_PAYMENT;
} elseif ($eventName == 'update_vendor') {
return EVENT_UPDATE_VENDOR;
} elseif ($eventName == 'delete_vendor') {
return EVENT_DELETE_VENDOR;
} elseif ($eventName == 'create_expense') {
return EVENT_CREATE_EXPENSE;
} elseif ($eventName == 'update_expense') {
return EVENT_UPDATE_EXPENSE;
} elseif ($eventName == 'delete_expense') {
return EVENT_DELETE_EXPENSE;
} elseif ($eventName == 'create_task') {
return EVENT_CREATE_TASK;
} elseif ($eventName == 'update_task') {
return EVENT_UPDATE_TASK;
} elseif ($eventName == 'delete_task') {
return EVENT_DELETE_TASK;
} elseif ($eventName == 'approve_quote') {
return EVENT_APPROVE_QUOTE;
} else {
return false;
}