commit | 2676f962031a3d3223349e13e7355ebe616b569a | [log] [tgz] |
---|---|---|
author | Deepesh Garg <deepeshgarg6@gmail.com> | Fri Oct 09 21:58:38 2020 +0530 |
committer | Deepesh Garg <deepeshgarg6@gmail.com> | Fri Oct 09 21:58:38 2020 +0530 |
tree | 6b564d57272ef939106b566522458caece82eb21 | |
parent | 242bae4a81984e5be98c4c6e94ec0e47fe65f5fe [diff] |
fix: Opening Journal Entry via Data Import
diff --git a/erpnext/accounts/doctype/journal_entry/journal_entry.py b/erpnext/accounts/doctype/journal_entry/journal_entry.py index 34c262e..d839478 100644 --- a/erpnext/accounts/doctype/journal_entry/journal_entry.py +++ b/erpnext/accounts/doctype/journal_entry/journal_entry.py
@@ -22,8 +22,12 @@ return self.voucher_type def validate(self): + if self.voucher_type == 'Opening Entry': + self.is_opening = 'Yes' + if not self.is_opening: self.is_opening='No' + self.clearance_date = None self.validate_party()