fix: minor issues in subcontracting inward

This commit is contained in:
Mihir Kandoi
2025-11-03 17:50:59 +05:30
parent 44363c069e
commit 553ec40d4a
5 changed files with 12 additions and 13 deletions

View File

@@ -451,7 +451,7 @@ class SubcontractingInwardOrder(SubcontractingController):
qty = (
fg_item.produced_qty
if allow_over
else min(fg_item.qty, fg_item.produced_qty) - fg_item.delivered_qty - fg_item.returned_qty
else min(fg_item.qty, fg_item.produced_qty) - fg_item.delivered_qty
)
if qty < 0:
continue

View File

@@ -120,6 +120,7 @@
},
{
"default": "0",
"depends_on": "eval:doc.is_customer_provided_item",
"fieldname": "returned_qty",
"fieldtype": "Float",
"label": "Returned Qty",
@@ -196,7 +197,7 @@
"index_web_pages_for_search": 1,
"istable": 1,
"links": [],
"modified": "2025-10-21 23:44:18.302327",
"modified": "2025-11-03 17:46:49.905804",
"modified_by": "Administrator",
"module": "Subcontracting",
"name": "Subcontracting Inward Order Received Item",