chore: don't make gain/loss journal for base currency transactions

(cherry picked from commit 567c0ce1e8)
This commit is contained in:
ruthra kumar
2023-07-28 08:12:44 +05:30
committed by Mergify
parent efb293398a
commit ed0881dacb

View File

@@ -678,6 +678,7 @@ def reconcile_dr_cr_note(dr_cr_notes, company):
>>>>>>> c87332d5da (refactor: cr/dr note will be on single exchange rate) >>>>>>> c87332d5da (refactor: cr/dr note will be on single exchange rate)
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"