Skip to content

Commit

Permalink
chore: Missing asset account
Browse files Browse the repository at this point in the history
  • Loading branch information
deepeshgarg007 committed Oct 21, 2023
1 parent 7efe233 commit 3b408ab
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions erpnext/stock/doctype/purchase_receipt/purchase_receipt.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import erpnext
from erpnext.accounts.utils import get_account_currency
from erpnext.assets.doctype.asset.asset import get_asset_account, is_cwip_accounting_enabled
from erpnext.assets.doctype.asset_category.asset_category import get_asset_category_account
from erpnext.buying.utils import check_on_hold_or_closed_status
from erpnext.controllers.buying_controller import BuyingController
from erpnext.stock.doctype.delivery_note.delivery_note import make_inter_company_transaction
Expand Down Expand Up @@ -565,10 +564,9 @@ def make_divisional_loss_gl_entry(item):
if is_cwip_accounting_enabled(d.asset_category)
else "fixed_asset_account"
)
stock_asset_account_name = get_asset_category_account(
asset_category=d.asset_category,
fieldname=account_type,
company=self.company,

stock_asset_account_name = get_asset_account(
"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)
Expand Down

0 comments on commit 3b408ab

Please sign in to comment.