daniel
December 5, 2014, 10:43pm
1
Hi,
I wanted to edit the address_display. I edited the default address doctype to:
{{ customer.address_line1 }}<br>{% if customer.address_line2 %}{{ customer.address_line2 }}<br>{% endif -%}
{{ customer.pincode }} {{ customer.city }}
<br>{{ customer.country }
I also edited Sales Invoice >> address_display but that did not work.
Best,
Daniel
Your query is not clear enough. Why you have mentioned customer.address_line1
instead of address_line1
? Please share your changes, have you pushed the code to github?
daniel
December 6, 2014, 8:26am
3
Hi,
thank you for your fast reply.
I have tried address_line1 as well…the output was:
{{ no such element: erpnext.accounts.doctype.sales_invoice.sales_invoice.SalesInvoice object['address_line1'] }}
Daniel
Sorry, but still I could not understand, what you want to achieve. Can you provide step-by-step details, you have done and actually what you want?
1 Like
daniel
December 6, 2014, 10:38pm
5
Hi, actually my addresses look like the following in printout as I am bond to “address_display”:
Name
Line 1
Line 2
City
PIN CODE
Phone
And I want to change it to:
Name
Line 1
Line 2
PINCODE - CITY
Country
Best regards,
Daniel
daniel
December 7, 2014, 11:04am
6
You can close or delete it. Found it under:
Setup → Printing → Address Layout
Sorry got one’s wires crossed xD
1 Like