Merge pull request #31518 from frappe/mergify/bp/version-13-hotfix/pr-31516

fix: Incorrect provisional expense booking while reposting (backport #31516)
This commit is contained in:
Deepesh Garg
2022-07-07 11:53:58 +05:30
committed by GitHub

View File

@@ -468,6 +468,7 @@ class PurchaseReceipt(BuyingController):
and not d.is_fixed_asset
and flt(d.qty)
and provisional_accounting_for_non_stock_items
and d.get("provisional_expense_account")
):
self.add_provisional_gl_entry(
d, gl_entries, self.posting_date, d.get("provisional_expense_account")