Merge pull request #23573 from deepeshgarg007/opening_jv

fix: Opening Journal Entry via Data Import
This commit is contained in:
rohitwaghchaure 2020-10-10 13:16:41 +05:30 committed by GitHub
commit ad9db89514
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,8 +22,12 @@ class JournalEntry(AccountsController):
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()