From dbe7000d3ad8f9a1d2e6aa34811dfd00b5128dec Mon Sep 17 00:00:00 2001 From: Deepesh Garg Date: Sat, 21 Oct 2023 22:08:17 +0530 Subject: [PATCH] chore: Missing asset account --- erpnext/stock/doctype/purchase_receipt/purchase_receipt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/stock/doctype/purchase_receipt/purchase_receipt.py b/erpnext/stock/doctype/purchase_receipt/purchase_receipt.py index db2183716791..c1714479b8e9 100644 --- a/erpnext/stock/doctype/purchase_receipt/purchase_receipt.py +++ b/erpnext/stock/doctype/purchase_receipt/purchase_receipt.py @@ -566,7 +566,7 @@ def make_divisional_loss_gl_entry(item): ) stock_asset_account_name = get_asset_account( - "account_type", asset_category=d.asset_category, company=self.company + account_type, asset_category=d.asset_category, company=self.company ) stock_value_diff = flt(d.net_amount) + flt(d.item_tax_amount / self.conversion_rate)