From 427224db07b486fb4b135e2376ff1cf150a547b5 Mon Sep 17 00:00:00 2001 From: zulfi007 Date: Thu, 25 Apr 2024 10:16:19 +0000 Subject: [PATCH] feat: custom loyatly programs hooks are added --- erpnext/hooks.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/erpnext/hooks.py b/erpnext/hooks.py index 66b1e2ff63ec..1f2263350e36 100644 --- a/erpnext/hooks.py +++ b/erpnext/hooks.py @@ -336,11 +336,15 @@ "erpnext.regional.italy.utils.sales_invoice_on_submit", "erpnext.regional.saudi_arabia.utils.create_qr_code", "erpnext.erpnext_integrations.taxjar_integration.create_transaction", + "erpnext.accounts.doctype.sales_invoice.custom_loyalty_points.make_loyalty_point_entry", + ], "on_cancel": [ "erpnext.regional.italy.utils.sales_invoice_on_cancel", "erpnext.erpnext_integrations.taxjar_integration.delete_transaction", "erpnext.regional.saudi_arabia.utils.delete_qr_code_file", + "erpnext.accounts.doctype.sales_invoice.custom_loyalty_points.cancel_loyalty_point_entry", + ], "on_trash": "erpnext.regional.check_deletion_permission", },