fix: after applying coupon code, field in_words not updated (#37133)
fix: after applying coupon code, field in_words not updated (#37133)
* fix: after applying coupon code, field in_words not updated
* fix: changed the order of the function set_total_in_words
(cherry picked from commit 03f0abf6de)
Co-authored-by: RitvikSardana <65544983+RitvikSardana@users.noreply.github.com>
This commit is contained in:
@@ -168,7 +168,6 @@ class AccountsController(TransactionBase):
|
|||||||
self.validate_value("base_grand_total", ">=", 0)
|
self.validate_value("base_grand_total", ">=", 0)
|
||||||
|
|
||||||
validate_return(self)
|
validate_return(self)
|
||||||
self.set_total_in_words()
|
|
||||||
|
|
||||||
self.validate_all_documents_schedule()
|
self.validate_all_documents_schedule()
|
||||||
|
|
||||||
@@ -207,6 +206,8 @@ class AccountsController(TransactionBase):
|
|||||||
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)
|
||||||
|
|
||||||
|
self.set_total_in_words()
|
||||||
|
|
||||||
def before_cancel(self):
|
def before_cancel(self):
|
||||||
validate_einvoice_fields(self)
|
validate_einvoice_fields(self)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user