Skip to content

Commit

Permalink
feat: rename Customer Address to Billing Address
Browse files Browse the repository at this point in the history
  • Loading branch information
barredterra committed Sep 3, 2024
1 parent 2dfbde3 commit e6be261
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

frappe.ui.form.on("Statement of Fees and Payments", {
setup(frm) {
frm.set_query("customer_address", (doc) => {
frm.set_query("billing_address", (doc) => {
return {
filters: [
["Dynamic Link", "link_doctype", "=", "Customer"],
Expand Down Expand Up @@ -55,8 +55,8 @@ frappe.ui.form.on("Statement of Fees and Payments", {
}
},

customer_address(frm) {
erpnext.utils.get_address_display(frm, "customer_address", "customer_address_display");
billing_address(frm) {
erpnext.utils.get_address_display(frm, "billing_address", "billing_address_display");
},

company_address(frm) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"column_break_ur9om",
"year_of_settlement",
"section_break_ksfci",
"customer_address",
"customer_address_display",
"billing_address",
"billing_address_display",
"column_break_v93mr",
"company_address",
"company_address_display",
Expand Down Expand Up @@ -66,20 +66,6 @@
"fieldname": "section_break_ksfci",
"fieldtype": "Section Break"
},
{
"fetch_from": "customer.default_billing_address",
"fetch_if_empty": 1,
"fieldname": "customer_address",
"fieldtype": "Link",
"label": "Customer Address",
"options": "Address"
},
{
"fieldname": "customer_address_display",
"fieldtype": "Small Text",
"label": "Customer Address Display",
"read_only": 1
},
{
"fieldname": "column_break_v93mr",
"fieldtype": "Column Break"
Expand Down Expand Up @@ -142,12 +128,26 @@
"label": "Sum of Payments",
"options": "Company:company:default_currency",
"read_only": 1
},
{
"fetch_from": "customer.default_billing_address",
"fetch_if_empty": 1,
"fieldname": "billing_address",
"fieldtype": "Link",
"label": "Billing Address",
"options": "Address"
},
{
"fieldname": "billing_address_display",
"fieldtype": "Small Text",
"label": "Billing Address Display",
"read_only": 1
}
],
"index_web_pages_for_search": 1,
"is_submittable": 1,
"links": [],
"modified": "2024-07-11 19:26:28.449367",
"modified": "2024-09-03 20:03:54.176319",
"modified_by": "Administrator",
"module": "LANDA Sales",
"name": "Statement of Fees and Payments",
Expand Down
2 changes: 1 addition & 1 deletion landa/translations/de.csv
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ Delivery Note List,Lieferungen & Retouren,
Payment Entry List,Zahlungen,
Sales Invoice,Rechnung,
LANDA Member {0} has been created or updated.,Mitglied {0} wurde erstellt bzw. aktualisiert.,
Customer Address Display,Vorschau Kundenadresse,
Billing Address Display,Vorschau Rechnungsadresse,
Company Address Display,Vorschau RV-Adresse,
Billed,Abgerechnet,
Credited,Gutgeschrieben,
Expand Down

0 comments on commit e6be261

Please sign in to comment.