fix(manufacturing): remove forecast_qty and adjust_qty fields from sa… (#55129)

This commit is contained in:
Pandiyan P
2026-05-21 15:01:55 +05:30
committed by GitHub
parent 2f35660142
commit 1a81265c2c
3 changed files with 1 additions and 29 deletions

View File

@@ -47,11 +47,3 @@ frappe.ui.form.on("Sales Forecast", {
} }
}, },
}); });
frappe.ui.form.on("Sales Forecast Item", {
adjust_qty(frm, cdt, cdn) {
let row = locals[cdt][cdn];
row.demand_qty = row.forecast_qty + row.adjust_qty;
frappe.model.set_value(cdt, cdn, "demand_qty", row.demand_qty);
},
});

View File

@@ -10,8 +10,6 @@
"item_name", "item_name",
"uom", "uom",
"delivery_date", "delivery_date",
"forecast_qty",
"adjust_qty",
"demand_qty", "demand_qty",
"warehouse" "warehouse"
], ],
@@ -55,22 +53,6 @@
"label": "Delivery Date", "label": "Delivery Date",
"read_only": 1 "read_only": 1
}, },
{
"columns": 2,
"fieldname": "forecast_qty",
"fieldtype": "Float",
"in_list_view": 1,
"label": "Forecast Qty",
"non_negative": 1,
"read_only": 1
},
{
"columns": 2,
"fieldname": "adjust_qty",
"fieldtype": "Float",
"in_list_view": 1,
"label": "Adjust Qty"
},
{ {
"columns": 3, "columns": 3,
"fieldname": "demand_qty", "fieldname": "demand_qty",
@@ -94,7 +76,7 @@
"index_web_pages_for_search": 1, "index_web_pages_for_search": 1,
"istable": 1, "istable": 1,
"links": [], "links": [],
"modified": "2025-08-18 21:59:38.859082", "modified": "2026-05-21 12:38:47.636301",
"modified_by": "Administrator", "modified_by": "Administrator",
"module": "Manufacturing", "module": "Manufacturing",
"name": "Sales Forecast Item", "name": "Sales Forecast Item",

View File

@@ -14,10 +14,8 @@ class SalesForecastItem(Document):
if TYPE_CHECKING: if TYPE_CHECKING:
from frappe.types import DF from frappe.types import DF
adjust_qty: DF.Float
delivery_date: DF.Date | None delivery_date: DF.Date | None
demand_qty: DF.Float demand_qty: DF.Float
forecast_qty: DF.Float
item_code: DF.Link item_code: DF.Link
item_name: DF.Data | None item_name: DF.Data | None
parent: DF.Data parent: DF.Data