Skip to content

Commit

Permalink
Revert "fix: journals as invoice throwing validation error" (#1192)
Browse files Browse the repository at this point in the history
This reverts commit 50eaaca.

(cherry picked from commit 1bcc636)
  • Loading branch information
ruthra-kumar authored and mergify[bot] committed Dec 19, 2023
1 parent ed63f5a commit 22a861d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hrms/overrides/employee_payment_entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def set_missing_ref_details(
)

for field, value in ref_details.items():
if d.exchange_gain_loss is not None:
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
Expand Down

0 comments on commit 22a861d

Please sign in to comment.