mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-24 17:18:30 +00:00
refactor: book loss amount in the COGS instead of stock received but not billed (#23671)
This commit is contained in:
@@ -296,7 +296,7 @@ class PurchaseReceipt(BuyingController):
|
||||
if self.is_return or flt(d.item_tax_amount):
|
||||
loss_account = expenses_included_in_valuation
|
||||
else:
|
||||
loss_account = stock_rbnb
|
||||
loss_account = self.get_company_default("default_expense_account")
|
||||
|
||||
gl_entries.append(self.get_gl_dict({
|
||||
"account": loss_account,
|
||||
|
||||
Reference in New Issue
Block a user