Skip to content

Commit

Permalink
fix: not able to make stock entry (#36759)
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitwaghchaure authored Aug 22, 2023
1 parent 13b1263 commit 873ee38
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion erpnext/stock/doctype/material_request/material_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,10 @@ def set_missing_values(source, target):
"job_card_item": "job_card_item",
},
"postprocess": update_item,
"condition": lambda doc: doc.ordered_qty < doc.stock_qty,
"condition": lambda doc: (
flt(doc.ordered_qty, doc.precision("ordered_qty"))
< flt(doc.stock_qty, doc.precision("ordered_qty"))
),
},
},
target_doc,
Expand Down

0 comments on commit 873ee38

Please sign in to comment.