Merge pull request #25816 from deepeshgarg007/jv_diff_ignore_v13

fix: Ignore rounding diff while importing JV using data import
This commit is contained in:
Deepesh Garg 2021-05-25 10:59:50 +05:30 committed by GitHub
commit 09d9bd19ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,7 +39,11 @@ class JournalEntry(AccountsController):
self.validate_multi_currency()
self.set_amounts_in_company_currency()
self.validate_debit_credit_amount()
self.validate_total_debit_and_credit()
# Do not validate while importing via data import
if not frappe.flags.in_import:
self.validate_total_debit_and_credit()
self.validate_against_jv()
self.validate_reference_doc()
self.set_against_account()