I have a problem with the billing address.
Basically:
PDF-Template:
<div id="client-details"></div>
and in “Invoice Design → Client Details” select the following properties:
- Name
- Contact Full Name
- Street
- Apt/Suit
- Postel/City/State
When I have a customer with company the fields are filled as follows:
Name: Sample company
First name (contact): John
Last name (contact): Doe
Street: Sample Street 5
Postal/City/State: 55555 Sample CityThe result in PDF:
Sample Company
John Doe
Sample Street 5
55555 sample cityThis is correct
The Problem:
If the customer is a private person and not a company:
Variant 1:
I leave the Name field empty and set only the first name (contact) and the last name (contact).
This way I get the contact name correctly displayed when creating the invoice. When generating the PDF I get the contact name displayed twice, so:
John Doe
John Doe
Sample Street 5
55555 sample city
Variant 2:
I fill the Name field and leave the first name (contact) and last name (contact) blank.
This way when I create the invoice I get the name displayed and underneath it says “Empty Contact”. When generating the PDF I get the name displayed twice again, so:
John Doe
John Doe
Sample Street 5
55555 sample city
In version 4 I could solve the problem by setting the following in the template:
{
"text":"$client.name\n$contact.firstName $contact.lastName\n$client.address1\n$client.postalCode $client.city",
},
"style": "address"
I tried this option with the new variables but it doesn’t work.
How do I get the problem solved?
Best regards
Jonathan