From 98f8da1294c0c81aefadf7ff3370ae62894a83a2 Mon Sep 17 00:00:00 2001 From: tundebabzy Date: Wed, 7 Jun 2017 15:31:51 +0100 Subject: [PATCH] hides `payments` field when `is_pos` is checked (#9174) --- erpnext/accounts/doctype/sales_invoice/sales_invoice.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/erpnext/accounts/doctype/sales_invoice/sales_invoice.json b/erpnext/accounts/doctype/sales_invoice/sales_invoice.json index 0de23e593e..d08716fddd 100644 --- a/erpnext/accounts/doctype/sales_invoice/sales_invoice.json +++ b/erpnext/accounts/doctype/sales_invoice/sales_invoice.json @@ -2664,6 +2664,7 @@ "bold": 0, "collapsible": 0, "columns": 0, + "depends_on": "eval:doc.is_pos===1", "fieldname": "payments", "fieldtype": "Table", "hidden": 0, @@ -4564,7 +4565,7 @@ "istable": 0, "max_attachments": 0, "menu_index": 0, - "modified": "2017-05-17 10:34:44.412147", + "modified": "2017-06-07 11:00:01.903429", "modified_by": "Administrator", "module": "Accounts", "name": "Sales Invoice",