Merge pull request #28055 from deepeshgarg007/payment_entry_ux
fix(UX): Add mandatory depends on condition for reference no and date fields
This commit is contained in:
commit
0136aedfdc
@ -27,10 +27,12 @@
|
|||||||
"payment_accounts_section",
|
"payment_accounts_section",
|
||||||
"party_balance",
|
"party_balance",
|
||||||
"paid_from",
|
"paid_from",
|
||||||
|
"paid_from_account_type",
|
||||||
"paid_from_account_currency",
|
"paid_from_account_currency",
|
||||||
"paid_from_account_balance",
|
"paid_from_account_balance",
|
||||||
"column_break_18",
|
"column_break_18",
|
||||||
"paid_to",
|
"paid_to",
|
||||||
|
"paid_to_account_type",
|
||||||
"paid_to_account_currency",
|
"paid_to_account_currency",
|
||||||
"paid_to_account_balance",
|
"paid_to_account_balance",
|
||||||
"payment_amounts_section",
|
"payment_amounts_section",
|
||||||
@ -440,7 +442,8 @@
|
|||||||
"depends_on": "eval:(doc.paid_from && doc.paid_to)",
|
"depends_on": "eval:(doc.paid_from && doc.paid_to)",
|
||||||
"fieldname": "reference_no",
|
"fieldname": "reference_no",
|
||||||
"fieldtype": "Data",
|
"fieldtype": "Data",
|
||||||
"label": "Cheque/Reference No"
|
"label": "Cheque/Reference No",
|
||||||
|
"mandatory_depends_on": "eval:(doc.paid_from_account_type == 'Bank' || doc.paid_to_account_type == 'Bank')"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"fieldname": "column_break_23",
|
"fieldname": "column_break_23",
|
||||||
@ -452,6 +455,7 @@
|
|||||||
"fieldname": "reference_date",
|
"fieldname": "reference_date",
|
||||||
"fieldtype": "Date",
|
"fieldtype": "Date",
|
||||||
"label": "Cheque/Reference Date",
|
"label": "Cheque/Reference Date",
|
||||||
|
"mandatory_depends_on": "eval:(doc.paid_from_account_type == 'Bank' || doc.paid_to_account_type == 'Bank')",
|
||||||
"search_index": 1
|
"search_index": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -707,15 +711,30 @@
|
|||||||
"label": "Received Amount After Tax (Company Currency)",
|
"label": "Received Amount After Tax (Company Currency)",
|
||||||
"options": "Company:company:default_currency",
|
"options": "Company:company:default_currency",
|
||||||
"read_only": 1
|
"read_only": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fetch_from": "paid_from.account_type",
|
||||||
|
"fieldname": "paid_from_account_type",
|
||||||
|
"fieldtype": "Data",
|
||||||
|
"hidden": 1,
|
||||||
|
"label": "Paid From Account Type"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fetch_from": "paid_to.account_type",
|
||||||
|
"fieldname": "paid_to_account_type",
|
||||||
|
"fieldtype": "Data",
|
||||||
|
"hidden": 1,
|
||||||
|
"label": "Paid To Account Type"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"index_web_pages_for_search": 1,
|
"index_web_pages_for_search": 1,
|
||||||
"is_submittable": 1,
|
"is_submittable": 1,
|
||||||
"links": [],
|
"links": [],
|
||||||
"modified": "2021-07-09 08:58:15.008761",
|
"modified": "2021-10-22 17:50:24.632806",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Accounts",
|
"module": "Accounts",
|
||||||
"name": "Payment Entry",
|
"name": "Payment Entry",
|
||||||
|
"naming_rule": "By \"Naming Series\" field",
|
||||||
"owner": "Administrator",
|
"owner": "Administrator",
|
||||||
"permissions": [
|
"permissions": [
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user