fix: Remove unwanted changes

This commit is contained in:
Deepesh Garg
2021-07-14 19:50:28 +05:30
parent ec5f6c78d0
commit fd197a3aab

View File

@@ -183,13 +183,6 @@ class PaymentEntry(AccountsController):
d.reference_name, self.party_account_currency)
for field, value in iteritems(ref_details):
if d.exchange_gain_loss:
# for cases where gain/loss is booked into invoice
# exchange_gain_loss is calculated from invoice & populated
# and row.exchange_rate is already set to payment entry's exchange rate
# refer -> `update_reference_in_payment_entry()` in utils.py
continue
if field == 'exchange_rate' or not d.get(field) or force:
d.db_set(field, value)