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

* fix: missing company flag for regional fn
This commit is contained in:
Dany Robert 2023-08-26 18:14:40 +05:30 committed by GitHub
parent 740fe95ff3
commit 9bc5952dd5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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