fix: missing company flag for regional fn (#36791)

fix: missing company flag for regional fn (#36791)

* fix: missing company flag for regional fn

(cherry picked from commit 9bc5952dd5)

Co-authored-by: Dany Robert <danyrt@wahni.com>
This commit is contained in:
mergify[bot]
2023-08-26 19:29:15 +05:30
committed by GitHub
parent 0f98cc85e9
commit c07548a612

View File

@@ -200,9 +200,9 @@ class AccountsController(TransactionBase):
# apply tax withholding only if checked and applicable
self.set_tax_withholding()
validate_regional(self)
validate_einvoice_fields(self)
with temporary_flag("company", self.company):
validate_regional(self)
validate_einvoice_fields(self)
if self.doctype != "Material Request" and not self.ignore_pricing_rule:
apply_pricing_rule_on_transaction(self)