refactor: book loss amount in the COGS instead of stock received but not billed (#23671)

This commit is contained in:
rohitwaghchaure 2020-10-19 16:54:11 +05:30 committed by GitHub
parent f5a8dc0f9c
commit 3a17147a32
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,