mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-17 08:35:00 +00:00
Merge pull request #49083 from frappe/mergify/bp/version-15-hotfix/pr-48691
fix: handle negative inventory check (#48558) (backport #48691)
This commit is contained in:
@@ -318,7 +318,8 @@
|
||||
"fieldname": "shelf_life_in_days",
|
||||
"fieldtype": "Int",
|
||||
"label": "Shelf Life In Days",
|
||||
"mandatory_depends_on": "eval:doc.has_batch_no && doc.has_expiry_date"
|
||||
"mandatory_depends_on": "eval:doc.has_batch_no && doc.has_expiry_date",
|
||||
"non_negative": 1
|
||||
},
|
||||
{
|
||||
"default": "2099-12-31",
|
||||
@@ -362,7 +363,8 @@
|
||||
"depends_on": "is_stock_item",
|
||||
"fieldname": "weight_per_unit",
|
||||
"fieldtype": "Float",
|
||||
"label": "Weight Per Unit"
|
||||
"label": "Weight Per Unit",
|
||||
"non_negative": 1
|
||||
},
|
||||
{
|
||||
"depends_on": "eval:doc.is_stock_item",
|
||||
@@ -534,13 +536,15 @@
|
||||
"fieldname": "min_order_qty",
|
||||
"fieldtype": "Float",
|
||||
"label": "Minimum Order Qty",
|
||||
"non_negative": 1,
|
||||
"oldfieldname": "min_order_qty",
|
||||
"oldfieldtype": "Currency"
|
||||
},
|
||||
{
|
||||
"fieldname": "safety_stock",
|
||||
"fieldtype": "Float",
|
||||
"label": "Safety Stock"
|
||||
"label": "Safety Stock",
|
||||
"non_negative": 1
|
||||
},
|
||||
{
|
||||
"fieldname": "purchase_details_cb",
|
||||
@@ -551,6 +555,7 @@
|
||||
"fieldname": "lead_time_days",
|
||||
"fieldtype": "Int",
|
||||
"label": "Lead Time in days",
|
||||
"non_negative": 1,
|
||||
"oldfieldname": "lead_time_days",
|
||||
"oldfieldtype": "Int"
|
||||
},
|
||||
@@ -559,6 +564,7 @@
|
||||
"fieldtype": "Float",
|
||||
"label": "Last Purchase Rate",
|
||||
"no_copy": 1,
|
||||
"non_negative": 1,
|
||||
"oldfieldname": "last_purchase_rate",
|
||||
"oldfieldtype": "Currency",
|
||||
"read_only": 1
|
||||
@@ -889,7 +895,7 @@
|
||||
"image_field": "image",
|
||||
"links": [],
|
||||
"make_attachments_public": 1,
|
||||
"modified": "2025-02-03 23:43:57.253667",
|
||||
"modified": "2025-08-08 14:58:48.674193",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Stock",
|
||||
"name": "Item",
|
||||
@@ -954,6 +960,7 @@
|
||||
}
|
||||
],
|
||||
"quick_entry": 1,
|
||||
"row_format": "Dynamic",
|
||||
"search_fields": "item_name,description,item_group,customer_code",
|
||||
"show_name_in_global_search": 1,
|
||||
"show_preview_popup": 1,
|
||||
|
||||
Reference in New Issue
Block a user