Skip to content

Commit

Permalink
fix: Purchase Invoice gain loss gl entry for periodic inventory
Browse files Browse the repository at this point in the history
(cherry picked from commit 2402447)
  • Loading branch information
deepeshgarg007 authored and mergify[bot] committed May 3, 2024
1 parent 4bbf0a4 commit 0513481
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1091,7 +1091,7 @@ def make_item_gl_entries(self, gl_entries):
)

# check if the exchange rate has changed
if item.get("purchase_receipt"):
if item.get("purchase_receipt") and self.auto_accounting_for_stock:
if (
exchange_rate_map[item.purchase_receipt]
and self.conversion_rate != exchange_rate_map[item.purchase_receipt]
Expand Down

0 comments on commit 0513481

Please sign in to comment.