From 2d10e8ef5180a231142dcf7d13622358168e41cb Mon Sep 17 00:00:00 2001 From: Kitti U Date: Sat, 29 Jul 2023 12:07:13 +0700 Subject: [PATCH] Ensure clear undue tax --- thai_tax/hooks.py | 1 + 1 file changed, 1 insertion(+) diff --git a/thai_tax/hooks.py b/thai_tax/hooks.py index 9e90a6a..ec589a4 100644 --- a/thai_tax/hooks.py +++ b/thai_tax/hooks.py @@ -210,6 +210,7 @@ }, "Payment Entry": { "validate": "thai_tax.custom.custom_api.validate_company_address", + "after_insert": "thai_tax.custom.custom_api.clear_invoice_undue_tax", "on_update": "thai_tax.custom.custom_api.clear_invoice_undue_tax", }, "Purchase Invoice": {