Merge pull request #41260 from deepeshgarg007/pi_gl_entries_pi

fix: Purchase Invoice gain loss gl entry for periodic inventory
This commit is contained in:
Deepesh Garg
2024-05-03 08:54:57 +05:30
committed by GitHub

View File

@@ -1063,7 +1063,7 @@ class PurchaseInvoice(BuyingController):
)
# 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]