fix: Opening Journal Entry via Data Import

This commit is contained in:
Deepesh Garg 2020-10-09 21:58:38 +05:30
parent 242bae4a81
commit 2676f96203

View File

@ -22,8 +22,12 @@ class JournalEntry(AccountsController):
return self.voucher_type return self.voucher_type
def validate(self): def validate(self):
if self.voucher_type == 'Opening Entry':
self.is_opening = 'Yes'
if not self.is_opening: if not self.is_opening:
self.is_opening='No' self.is_opening='No'
self.clearance_date = None self.clearance_date = None
self.validate_party() self.validate_party()