fix(Asset Capitalization): Hide source items section if table is empty

This commit is contained in:
Saif Ur Rehman 2021-09-16 23:21:09 +05:00
parent 132b517584
commit 003cfe2717

View File

@ -158,6 +158,7 @@
"read_only": 1
},
{
"depends_on": "eval:doc.docstatus == 0 || (doc.stock_items && doc.stock_items.length)",
"fieldname": "section_break_16",
"fieldtype": "Section Break",
"label": "Consumed Stock Items"
@ -227,6 +228,7 @@
"label": "Target Serial No"
},
{
"depends_on": "eval:doc.docstatus == 0 || (doc.asset_items && doc.asset_items.length)",
"fieldname": "section_break_26",
"fieldtype": "Section Break",
"label": "Consumed Asset Items"
@ -267,6 +269,7 @@
"options": "Finance Book"
},
{
"depends_on": "eval:doc.docstatus == 0 || (doc.service_items && doc.service_items.length)",
"fieldname": "service_expenses_section",
"fieldtype": "Section Break",
"label": "Service Expenses"
@ -304,7 +307,8 @@
"fieldname": "target_incoming_rate",
"fieldtype": "Currency",
"label": "Target Incoming Rate",
"options": "Company:company:default_currency"
"options": "Company:company:default_currency",
"read_only": 1
},
{
"collapsible": 1,
@ -333,7 +337,7 @@
"index_web_pages_for_search": 1,
"is_submittable": 1,
"links": [],
"modified": "2021-09-08 15:58:40.417579",
"modified": "2021-09-15 15:41:27.917458",
"modified_by": "Administrator",
"module": "Assets",
"name": "Asset Capitalization",