From fa75aa08abff4e160f38af973d56c9ecf3fe130c Mon Sep 17 00:00:00 2001 From: Shllokkk Date: Tue, 28 Jul 2026 19:00:24 +0530 Subject: [PATCH] fix(item): correct description on deferred revenue/expense --- erpnext/stock/doctype/item/item.json | 12 ++++++------ erpnext/stock/doctype/item/item.py | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/erpnext/stock/doctype/item/item.json b/erpnext/stock/doctype/item/item.json index 4594da25d6c..b3c6d4cb777 100644 --- a/erpnext/stock/doctype/item/item.json +++ b/erpnext/stock/doctype/item/item.json @@ -721,7 +721,7 @@ }, { "default": "0", - "description": "Expense for this item will be recognized over a period of months. Eg: prepaid insurance or annual software license", + "description": "Income from this item will be recognized over a period of months instead of all at once. Eg: annual subscription paid upfront.", "fieldname": "enable_deferred_revenue", "fieldtype": "Check", "label": "Enable Deferred Revenue" @@ -734,7 +734,7 @@ }, { "default": "0", - "description": "Income from this item will be recognized over a period of months instead of all at once. Eg: annual subscription paid upfront.", + "description": "Expense for this item will be recognized over a period of months. Eg: prepaid insurance or annual software license", "fieldname": "enable_deferred_expense", "fieldtype": "Check", "label": "Enable Deferred Expense" @@ -1095,19 +1095,19 @@ }, { "default": "0", + "description": "If checked, this Item is only available for transactions in the companies listed below.", "fieldname": "restrict_to_companies", "fieldtype": "Check", "label": "Restrict to Companies", - "description": "If checked, this Item is only available for transactions in the companies listed below.", "permlevel": 1 }, { + "depends_on": "eval:doc.restrict_to_companies", "fieldname": "allowed_companies", "fieldtype": "Table MultiSelect", "label": "Allowed Companies", - "options": "Company Restriction", - "depends_on": "eval:doc.restrict_to_companies", "mandatory_depends_on": "eval:doc.restrict_to_companies", + "options": "Company Restriction", "permlevel": 1 } ], @@ -1116,7 +1116,7 @@ "image_field": "image", "links": [], "make_attachments_public": 1, - "modified": "2026-07-23 10:00:00.000000", + "modified": "2026-07-28 18:58:43.328497", "modified_by": "Administrator", "module": "Stock", "name": "Item", diff --git a/erpnext/stock/doctype/item/item.py b/erpnext/stock/doctype/item/item.py index d369e7f3e68..addc5a4e6b5 100644 --- a/erpnext/stock/doctype/item/item.py +++ b/erpnext/stock/doctype/item/item.py @@ -132,8 +132,8 @@ class Item(Document): purchase_uom: DF.Link | None quality_inspection_template: DF.Link | None reorder_levels: DF.Table[ItemReorder] - retain_sample: DF.Check restrict_to_companies: DF.Check + retain_sample: DF.Check safety_stock: DF.Float sales_tax_withholding_category: DF.Link | None sales_uom: DF.Link | None