forked from momo/invoiceplane-template
wip: check for user_company field
This commit is contained in:
parent
222a5de94b
commit
27d180c69a
13
momo.php
13
momo.php
|
@ -104,9 +104,11 @@ footer .notes {
|
|||
|
||||
<div id="client">
|
||||
<div id="sichtfenster-absender">
|
||||
<?php
|
||||
<?php if (isset($invoice->user_company)): ?>
|
||||
echo htmlsc($invoice->user_company) . ' - ' . htmlsc($invoice->user_address_1) . ' - ' . htmlsc($invoice->user_zip) . ' ' . htmlsc($invoice->user_city);
|
||||
<?php else: ?>
|
||||
echo htmlsc($invoice->user_name) . ' - ' . htmlsc($invoice->user_address_1) . ' - ' . htmlsc($invoice->user_zip) . ' ' . htmlsc($invoice->user_city);
|
||||
?>
|
||||
<?php endif; ?>
|
||||
<hr />
|
||||
</div>
|
||||
<div>
|
||||
|
@ -384,7 +386,12 @@ footer .notes {
|
|||
<?php if (!$isPaid): ?>
|
||||
<p>
|
||||
Bitte überweisen Sie den Rechnungsbetrag innerhalb von <?php echo (-1 * $invoice->days_overdue); ?> Tagen auf untenstehendes Konto:<br />
|
||||
Inhaber: <?php echo $invoice->user_name; ?><br />
|
||||
Inhaber:
|
||||
<?php if (isset($invoice->user_company)): ?>
|
||||
echo $invoice->user_company; ?><br />
|
||||
<?php else: ?>
|
||||
echo $invoice->user_name; ?><br />
|
||||
<?php endif; ?>
|
||||
IBAN: <?php echo $invoice->user_iban; ?><br />
|
||||
<?php echo invoice_qrcode($invoice->invoice_id); ?>
|
||||
</p>
|
||||
|
|
Loading…
Reference in a new issue