Merge pull request #40684 from rohitwaghchaure/fixed-incorrect-total-qty

fix: incorrect total qty in job card
This commit is contained in:
rohitwaghchaure
2024-03-26 19:32:04 +05:30
committed by GitHub

View File

@@ -490,7 +490,7 @@ class JobCard(Document):
{
"to_time": get_datetime(args.get("complete_time")),
"operation": args.get("sub_operation"),
"completed_qty": args.get("completed_qty") or 0.0,
"completed_qty": (args.get("completed_qty") if last_row.idx == row.idx else 0.0),
}
)
elif args.get("start_time"):