chore: hide exchange gain loss if empty

This commit is contained in:
Saqib Ansari 2021-09-26 15:51:03 +05:30
parent 64efe8bf15
commit dd2d039ca8
3 changed files with 7 additions and 3 deletions

View File

@ -103,7 +103,7 @@
"index_web_pages_for_search": 1, "index_web_pages_for_search": 1,
"istable": 1, "istable": 1,
"links": [], "links": [],
"modified": "2021-04-21 13:30:11.605388", "modified": "2021-09-26 15:49:28.018334",
"modified_by": "Administrator", "modified_by": "Administrator",
"module": "Accounts", "module": "Accounts",
"name": "Payment Entry Reference", "name": "Payment Entry Reference",

View File

@ -97,6 +97,7 @@
"width": "100px" "width": "100px"
}, },
{ {
"depends_on": "exchange_gain_loss",
"fieldname": "exchange_gain_loss", "fieldname": "exchange_gain_loss",
"fieldtype": "Currency", "fieldtype": "Currency",
"label": "Exchange Gain/Loss", "label": "Exchange Gain/Loss",
@ -104,6 +105,7 @@
"read_only": 1 "read_only": 1
}, },
{ {
"depends_on": "exchange_gain_loss",
"fieldname": "ref_exchange_rate", "fieldname": "ref_exchange_rate",
"fieldtype": "Float", "fieldtype": "Float",
"label": "Reference Exchange Rate", "label": "Reference Exchange Rate",
@ -115,7 +117,7 @@
"index_web_pages_for_search": 1, "index_web_pages_for_search": 1,
"istable": 1, "istable": 1,
"links": [], "links": [],
"modified": "2021-04-20 16:26:53.820530", "modified": "2021-09-26 15:47:28.167371",
"modified_by": "Administrator", "modified_by": "Administrator",
"module": "Accounts", "module": "Accounts",
"name": "Purchase Invoice Advance", "name": "Purchase Invoice Advance",

View File

@ -98,6 +98,7 @@
"width": "120px" "width": "120px"
}, },
{ {
"depends_on": "exchange_gain_loss",
"fieldname": "exchange_gain_loss", "fieldname": "exchange_gain_loss",
"fieldtype": "Currency", "fieldtype": "Currency",
"label": "Exchange Gain/Loss", "label": "Exchange Gain/Loss",
@ -105,6 +106,7 @@
"read_only": 1 "read_only": 1
}, },
{ {
"depends_on": "exchange_gain_loss",
"fieldname": "ref_exchange_rate", "fieldname": "ref_exchange_rate",
"fieldtype": "Float", "fieldtype": "Float",
"label": "Reference Exchange Rate", "label": "Reference Exchange Rate",
@ -116,7 +118,7 @@
"index_web_pages_for_search": 1, "index_web_pages_for_search": 1,
"istable": 1, "istable": 1,
"links": [], "links": [],
"modified": "2021-06-04 20:25:49.832052", "modified": "2021-09-26 15:47:46.911595",
"modified_by": "Administrator", "modified_by": "Administrator",
"module": "Accounts", "module": "Accounts",
"name": "Sales Invoice Advance", "name": "Sales Invoice Advance",