mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-05 05:09:11 +00:00
Set missing values only in unsubmitted documents
This commit is contained in:
@@ -12,7 +12,8 @@ import json
|
|||||||
|
|
||||||
class AccountsController(TransactionBase):
|
class AccountsController(TransactionBase):
|
||||||
def validate(self):
|
def validate(self):
|
||||||
self.set_missing_values(for_validate=True)
|
if self.docstatus == 0:
|
||||||
|
self.set_missing_values(for_validate=True)
|
||||||
self.validate_date_with_fiscal_year()
|
self.validate_date_with_fiscal_year()
|
||||||
if self.meta.get_field("currency"):
|
if self.meta.get_field("currency"):
|
||||||
self.calculate_taxes_and_totals()
|
self.calculate_taxes_and_totals()
|
||||||
|
|||||||
Reference in New Issue
Block a user