mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-30 02:14:48 +00:00
added status validation
This commit is contained in:
@@ -57,6 +57,7 @@ class DocType:
|
||||
def validate(self):
|
||||
if not self.doc.status:
|
||||
self.doc.status = "Draft"
|
||||
|
||||
self.validate_dates()
|
||||
self.validate_existing_appraisal()
|
||||
self.calculate_total()
|
||||
|
||||
Reference in New Issue
Block a user