Skip to content

Commit

Permalink
fix: Incorrect provisional expense booking while reposting
Browse files Browse the repository at this point in the history
(cherry picked from commit 60aad31)
  • Loading branch information
deepeshgarg007 authored and mergify[bot] committed Jul 4, 2022
1 parent 31fd263 commit d182137
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions erpnext/stock/doctype/purchase_receipt/purchase_receipt.py
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,7 @@ def make_item_gl_entries(self, gl_entries, warehouse_account=None):
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")
Expand Down

0 comments on commit d182137

Please sign in to comment.