mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-07 07:02:54 +00:00
chore: don't make gain/loss journal for base currency transactions
This commit is contained in:
@@ -680,6 +680,7 @@ def reconcile_dr_cr_note(dr_cr_notes, company):
|
|||||||
jv.flags.ignore_exchange_rate = True
|
jv.flags.ignore_exchange_rate = True
|
||||||
jv.submit()
|
jv.submit()
|
||||||
|
|
||||||
|
if inv.difference_amount != 0:
|
||||||
# make gain/loss journal
|
# make gain/loss journal
|
||||||
if inv.party_type == "Customer":
|
if inv.party_type == "Customer":
|
||||||
dr_or_cr = "credit" if inv.difference_amount < 0 else "debit"
|
dr_or_cr = "credit" if inv.difference_amount < 0 else "debit"
|
||||||
|
|||||||
Reference in New Issue
Block a user