Fix Client Net terms displaying default Net terms instead of On Receipt if selected

This commit is contained in:
johnnyq
2025-08-11 21:51:05 -04:00
parent f82f3e9b8c
commit 337ceb7477
2 changed files with 7 additions and 4 deletions

View File

@@ -148,7 +148,13 @@
<span class="text-dark float-right"> <?php echo numfmt_format_currency($currency_format, $recurring_monthly, $client_currency_code); ?></span>
</div>
<div class="ml-1 mt-1 text-secondary">Net Terms
<span class="text-dark float-right"><?php echo $client_net_terms; ?><small class="text-secondary ml-1">Days</small></span>
<span class="text-dark float-right">
<?php if ($client_net_terms) { ?>
<?= $client_net_terms; ?><small class="text-secondary ml-1">Days</small>
<?php } else { ?>
On Receipt
<?php } ?>
</span>
</div>
<?php if(!empty($client_tax_id_number)) { ?>
<div class="ml-1 mt-1 text-secondary">Tax ID