feat: address display

This commit is contained in:
barredterra
2021-09-16 17:22:25 +02:00
parent 4a98c85dba
commit c4f0a818ad
2 changed files with 21 additions and 8 deletions

View File

@@ -78,6 +78,12 @@ frappe.ui.form.on("Dunning", {
});
}
},
customer_address: function (frm) {
erpnext.utils.get_address_display(frm, "customer_address");
},
company_address: function (frm) {
erpnext.utils.get_address_display(frm, "company_address");
},
dunning_type: function (frm) {
frm.trigger("get_dunning_letter_text");
},

View File

@@ -21,10 +21,11 @@
"address_display",
"contact_person",
"contact_display",
"column_break_16",
"company_address",
"company_address_display",
"contact_mobile",
"contact_email",
"column_break_18",
"company_address_display",
"section_break_6",
"dunning_type",
"column_break_8",
@@ -205,15 +206,11 @@
"label": "Mobile No",
"read_only": 1
},
{
"fieldname": "column_break_18",
"fieldtype": "Column Break"
},
{
"fetch_from": "sales_invoice.company_address_display",
"fieldname": "company_address_display",
"fieldtype": "Small Text",
"label": "Company Address",
"label": "Company Address Display",
"read_only": 1
},
{
@@ -345,11 +342,21 @@
"print_hide": 1,
"read_only": 1,
"report_hide": 1
},
{
"fieldname": "column_break_16",
"fieldtype": "Column Break"
},
{
"fieldname": "company_address",
"fieldtype": "Link",
"label": "Company Address",
"options": "Address"
}
],
"is_submittable": 1,
"links": [],
"modified": "2021-09-16 16:22:21.209084",
"modified": "2021-09-16 17:07:48.053025",
"modified_by": "Administrator",
"module": "Accounts",
"name": "Dunning",