Skip to content

Commit

Permalink
fix: not able to repost gl entries
Browse files Browse the repository at this point in the history
(cherry picked from commit 7d10dd9)
  • Loading branch information
rohitwaghchaure authored and mergify[bot] committed Feb 24, 2023
1 parent dddbfba commit ae0318e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/stock/doctype/purchase_receipt/purchase_receipt.py
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ def make_item_gl_entries(self, gl_entries, warehouse_account=None):
)

divisional_loss = flt(
valuation_amount_as_per_doc - stock_value_diff, d.precision("base_net_amount")
valuation_amount_as_per_doc - flt(stock_value_diff), d.precision("base_net_amount")
)

if divisional_loss:
Expand Down

0 comments on commit ae0318e

Please sign in to comment.