Skip to content

Commit

Permalink
/
Browse files Browse the repository at this point in the history
  • Loading branch information
kittiu committed Jul 29, 2023
1 parent 2d10e8e commit 3bd1d0d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions thai_tax/custom/custom_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ def clear_invoice_undue_tax(doc, method):
)
doc.tax_base_amount = base_total
doc.calculate_taxes()
doc.save()


def get_undue_tax(doc, ref, gl, tax):
Expand Down
1 change: 0 additions & 1 deletion thai_tax/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,6 @@
},
"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": {
Expand Down

0 comments on commit 3bd1d0d

Please sign in to comment.