-
-
- user_name; ?>
-
- user_address_1) {
- echo $invoice->user_address_1 . ' ';
- }?>
- user_address_2) {
- echo $invoice->user_address_2 . ' ';
- } ?>
- user_zip) {
- echo $invoice->user_zip . ' ';
- } ?>
+
- user_city) {
- echo $invoice->user_city . '
';
- } ?>
-
- user_tax_code) {
- echo '' . trans('tax_code_short') . ': ' . $invoice->user_tax_code . ' ';
+
+
+
+
+
+ :
+ ' . $custom_fields['client']['anrede'] . ' ';
+ } ?>
+
+
+
+ client_vat_id) {
+ echo '' . trans('vat_id_short') . ': ' . $invoice->client_vat_id . ' ';
+ }
+ if ($invoice->client_tax_code) {
+ echo '' . trans('tax_code_short') . ': ' . $invoice->client_tax_code . ' ';
+ }
+ if ($invoice->client_address_1) {
+ echo '' . htmlsc($invoice->client_address_1) . ' ';
+ }
+ if ($invoice->client_address_2) {
+ echo '' . htmlsc($invoice->client_address_2) . ' ';
+ }
+ if ($invoice->client_city || $invoice->client_state || $invoice->client_zip) {
+ echo '';
+ if ($invoice->client_city) {
+ echo htmlsc($invoice->client_city) . ' ';
+ }
+ if ($invoice->client_state) {
+ echo htmlsc($invoice->client_state) . ' ';
+ }
+ if ($invoice->client_zip) {
+ echo htmlsc($invoice->client_zip);
+ }
+ echo ' ';
+ }
+ if ($invoice->client_country) {
+ echo '' . get_country_name(trans('cldr'), $invoice->client_country) . ' ';
+ }
+
+ echo ' ';
+
+ if ($invoice->client_phone) {
+ echo '' . trans('phone_abbr') . ': ' . htmlsc($invoice->client_phone) . ' ';
} ?>
- user_phone) {
- ?>Tel: user_phone; ?>
-
-
-
-
-
-
-
- |
- :
- |
-
- invoice_date_created, TRUE); ?>
- |
-
-
- |
- :
- |
-
- invoice_date_due, TRUE); ?>
- |
-
-
- |
- :
- |
-
- invoice_balance); ?>
- |
-
-
-
-
+
+
+ user_name); ?>
+ user_address_1) {
+ echo ' ' . htmlsc($invoice->user_address_1) . ' ';
+ }
+ if ($invoice->user_address_2) {
+ echo ' ' . htmlsc($invoice->user_address_2) . ' ';
+ }
+ if ($invoice->user_city || $invoice->user_state || $invoice->user_zip) {
+ echo ' ';
+ if ($invoice->user_city) {
+ echo htmlsc($invoice->user_city) . ' ';
+ }
+ if ($invoice->user_state) {
+ echo htmlsc($invoice->user_state) . ' ';
+ }
+ if ($invoice->user_zip) {
+ echo htmlsc($invoice->user_zip);
+ }
+ echo ' ';
+ }
+ if ($invoice->user_country) {
+ echo ' ' . get_country_name(trans('cldr'), $invoice->user_country) . ' ';
+ }
+
+ echo ' ';
+
+ if ($invoice->user_vat_id) {
+ echo ' ' . trans('vat_id_short') . ': ' . $invoice->user_vat_id . ' ';
+ }
+ if ($invoice->user_tax_code) {
+ echo ' ' . trans('tax_code_short') . ': ' . $invoice->user_tax_code . ' ';
+ }
+
+ echo ' ';
+
+ if ($invoice->user_phone) {
+ echo ' ' . trans('phone_abbr') . ': ' . htmlsc($invoice->user_phone) . ' ';
+ }
+ if ($invoice->user_fax) {
+ echo ' ' . trans('fax_abbr') . ': ' . htmlsc($invoice->user_fax) . ' ';
+ }
+ ?>
+
- |
-