Charges invoice print: include payment ID and date in receipt details
This commit is contained in:
parent
37976c8cf1
commit
71a6a7e36e
|
|
@ -272,7 +272,7 @@ if (!function_exists('convertNumberToWords')) {
|
|||
<?php elseif (!empty($paymentHistory)) : ?>
|
||||
<div style="margin-top:4px;"><span class="label">Payment Receipts:</span>
|
||||
<?php foreach ($paymentHistory as $ph) : ?>
|
||||
<span><?= esc((string) ($ph->Payment_type_str ?? '')) ?> — <?= esc($currencyPrefix) ?> <?= esc(number_format((float) ($ph->amount ?? 0), 2)) ?></span>
|
||||
<span>#<?= esc((string) ($ph->id ?? '')) ?> <?= esc((string) ($ph->Payment_type_str ?? '')) ?> — <?= esc($currencyPrefix) ?> <?= esc(number_format((float) ($ph->amount ?? 0), 2)) ?><?php $pd = (string) ($ph->payment_date ?? ''); if ($pd && $pd !== '0000-00-00 00:00:00') { echo ' (' . esc(date('d-m-Y', strtotime($pd))) . ')'; } ?></span>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user