fix: correct fields being updated on material request and purchase order creation from sales order

This commit is contained in:
Shllokkk
2026-02-20 19:58:23 +05:30
parent 548cdb55d7
commit c2f19036f3
3 changed files with 12 additions and 2 deletions

View File

@@ -95,6 +95,7 @@
"ordered_qty", "ordered_qty",
"planned_qty", "planned_qty",
"production_plan_qty", "production_plan_qty",
"requested_qty",
"column_break_69", "column_break_69",
"work_order_qty", "work_order_qty",
"delivered_qty", "delivered_qty",
@@ -1010,13 +1011,21 @@
"fieldtype": "Float", "fieldtype": "Float",
"label": "Finished Good Qty", "label": "Finished Good Qty",
"mandatory_depends_on": "eval:parent.is_subcontracted" "mandatory_depends_on": "eval:parent.is_subcontracted"
},
{
"fieldname": "requested_qty",
"fieldtype": "Float",
"label": "Requested Qty",
"no_copy": 1,
"print_hide": 1,
"read_only": 1
} }
], ],
"grid_page_length": 50, "grid_page_length": 50,
"idx": 1, "idx": 1,
"istable": 1, "istable": 1,
"links": [], "links": [],
"modified": "2025-10-13 10:57:43.378448", "modified": "2026-02-20 14:18:00.736068",
"modified_by": "Administrator", "modified_by": "Administrator",
"module": "Selling", "module": "Selling",
"name": "Sales Order Item", "name": "Sales Order Item",

View File

@@ -80,6 +80,7 @@ class SalesOrderItem(Document):
quotation_item: DF.Data | None quotation_item: DF.Data | None
rate: DF.Currency rate: DF.Currency
rate_with_margin: DF.Currency rate_with_margin: DF.Currency
requested_qty: DF.Float
reserve_stock: DF.Check reserve_stock: DF.Check
returned_qty: DF.Float returned_qty: DF.Float
stock_qty: DF.Float stock_qty: DF.Float

View File

@@ -90,7 +90,7 @@ class MaterialRequest(BuyingController):
{ {
"source_dt": "Material Request Item", "source_dt": "Material Request Item",
"target_dt": "Sales Order Item", "target_dt": "Sales Order Item",
"target_field": "ordered_qty", "target_field": "requested_qty",
"target_parent_dt": "Sales Order", "target_parent_dt": "Sales Order",
"target_parent_field": "", "target_parent_field": "",
"join_field": "sales_order_item", "join_field": "sales_order_item",