Skip to content

Commit

Permalink
Merge pull request frappe#38427 from Nandhinidevi123/stock_entry
Browse files Browse the repository at this point in the history
Update Serial No issue
  • Loading branch information
rohitwaghchaure authored Nov 29, 2023
2 parents 2e8739f + 97be527 commit cf97e3c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1018,7 +1018,7 @@ def update_serial_batch_no_ledgers(entries, child_row, parent_doc, warehouse=Non
doc.append(
"entries",
{
"qty": d.get("qty") * (1 if doc.type_of_transaction == "Inward" else -1),
"qty": (d.get("qty") or 1.0) * (1 if doc.type_of_transaction == "Inward" else -1),
"warehouse": warehouse or d.get("warehouse"),
"batch_no": d.get("batch_no"),
"serial_no": d.get("serial_no"),
Expand Down

0 comments on commit cf97e3c

Please sign in to comment.