mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 08:24:47 +00:00
Merge pull request #48557 from KerollesFathy/ft/cost-non-negative-on-ws
feat: Add non-negative constraint to workstation cost fields
This commit is contained in:
@@ -74,6 +74,7 @@
|
|||||||
"fieldname": "hour_rate_electricity",
|
"fieldname": "hour_rate_electricity",
|
||||||
"fieldtype": "Currency",
|
"fieldtype": "Currency",
|
||||||
"label": "Electricity Cost",
|
"label": "Electricity Cost",
|
||||||
|
"non_negative": 1,
|
||||||
"oldfieldname": "hour_rate_electricity",
|
"oldfieldname": "hour_rate_electricity",
|
||||||
"oldfieldtype": "Currency"
|
"oldfieldtype": "Currency"
|
||||||
},
|
},
|
||||||
@@ -83,6 +84,7 @@
|
|||||||
"fieldname": "hour_rate_consumable",
|
"fieldname": "hour_rate_consumable",
|
||||||
"fieldtype": "Currency",
|
"fieldtype": "Currency",
|
||||||
"label": "Consumable Cost",
|
"label": "Consumable Cost",
|
||||||
|
"non_negative": 1,
|
||||||
"oldfieldname": "hour_rate_consumable",
|
"oldfieldname": "hour_rate_consumable",
|
||||||
"oldfieldtype": "Currency"
|
"oldfieldtype": "Currency"
|
||||||
},
|
},
|
||||||
@@ -96,6 +98,7 @@
|
|||||||
"fieldname": "hour_rate_rent",
|
"fieldname": "hour_rate_rent",
|
||||||
"fieldtype": "Currency",
|
"fieldtype": "Currency",
|
||||||
"label": "Rent Cost",
|
"label": "Rent Cost",
|
||||||
|
"non_negative": 1,
|
||||||
"oldfieldname": "hour_rate_rent",
|
"oldfieldname": "hour_rate_rent",
|
||||||
"oldfieldtype": "Currency"
|
"oldfieldtype": "Currency"
|
||||||
},
|
},
|
||||||
@@ -105,6 +108,7 @@
|
|||||||
"fieldname": "hour_rate_labour",
|
"fieldname": "hour_rate_labour",
|
||||||
"fieldtype": "Currency",
|
"fieldtype": "Currency",
|
||||||
"label": "Wages",
|
"label": "Wages",
|
||||||
|
"non_negative": 1,
|
||||||
"oldfieldname": "hour_rate_labour",
|
"oldfieldname": "hour_rate_labour",
|
||||||
"oldfieldtype": "Currency"
|
"oldfieldtype": "Currency"
|
||||||
},
|
},
|
||||||
@@ -140,6 +144,7 @@
|
|||||||
"fieldname": "production_capacity",
|
"fieldname": "production_capacity",
|
||||||
"fieldtype": "Int",
|
"fieldtype": "Int",
|
||||||
"label": "Job Capacity",
|
"label": "Job Capacity",
|
||||||
|
"non_negative": 1,
|
||||||
"reqd": 1
|
"reqd": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -254,7 +259,7 @@
|
|||||||
"idx": 1,
|
"idx": 1,
|
||||||
"image_field": "on_status_image",
|
"image_field": "on_status_image",
|
||||||
"links": [],
|
"links": [],
|
||||||
"modified": "2024-09-26 13:41:12.279344",
|
"modified": "2025-07-13 16:02:13.615001",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Manufacturing",
|
"module": "Manufacturing",
|
||||||
"name": "Workstation",
|
"name": "Workstation",
|
||||||
@@ -274,9 +279,10 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"quick_entry": 1,
|
"quick_entry": 1,
|
||||||
|
"row_format": "Dynamic",
|
||||||
"show_name_in_global_search": 1,
|
"show_name_in_global_search": 1,
|
||||||
"sort_field": "creation",
|
"sort_field": "creation",
|
||||||
"sort_order": "ASC",
|
"sort_order": "ASC",
|
||||||
"states": [],
|
"states": [],
|
||||||
"track_changes": 1
|
"track_changes": 1
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user