From cbfc13728bb0b50c7ed2bba7ff5240ce24649acb Mon Sep 17 00:00:00 2001 From: l0gesh29 Date: Wed, 24 Dec 2025 18:35:48 +0530 Subject: [PATCH] fix: include total hours validation in depends on (cherry picked from commit 57d34ab146868f50884a52dfdcbf76ec0d267925) --- erpnext/accounts/doctype/sales_invoice/sales_invoice.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/erpnext/accounts/doctype/sales_invoice/sales_invoice.json b/erpnext/accounts/doctype/sales_invoice/sales_invoice.json index 3dccf199353..2d32832d25c 100644 --- a/erpnext/accounts/doctype/sales_invoice/sales_invoice.json +++ b/erpnext/accounts/doctype/sales_invoice/sales_invoice.json @@ -778,7 +778,7 @@ }, { "collapsible": 1, - "depends_on": "eval:doc.total_billing_amount > 0", + "collapsible_depends_on": "eval:doc.total_billing_amount > 0 || doc.total_billing_hours > 0", "fieldname": "time_sheet_list", "fieldtype": "Section Break", "hide_border": 1, @@ -2090,7 +2090,7 @@ "fieldtype": "Column Break" }, { - "depends_on": "eval:doc.total_billing_amount > 0", + "depends_on": "eval:doc.total_billing_amount > 0 || doc.total_billing_hours > 0", "fieldname": "section_break_104", "fieldtype": "Section Break" }, @@ -2304,7 +2304,7 @@ "link_fieldname": "consolidated_invoice" } ], - "modified": "2025-12-23 20:09:14.424656", + "modified": "2025-12-24 18:29:50.242618", "modified_by": "Administrator", "module": "Accounts", "name": "Sales Invoice",