fix: use serial/batch field for rejected items (#40327)

This commit is contained in:
rohitwaghchaure
2024-03-07 14:14:19 +05:30
committed by GitHub
parent 4b38139b44
commit 01856a6e9d
7 changed files with 289 additions and 26 deletions

View File

@@ -859,6 +859,7 @@ class SubcontractingController(StockController):
item,
{
"warehouse": item.rejected_warehouse,
"serial_and_batch_bundle": item.get("rejected_serial_and_batch_bundle"),
"actual_qty": flt(item.rejected_qty) * flt(item.conversion_factor),
"incoming_rate": 0.0,
},