mirror of
https://github.com/itflow-org/itflow
synced 2026-03-22 21:45:37 +00:00
Fix Client Net terms displaying default Net terms instead of On Receipt if selected
This commit is contained in:
@@ -49,9 +49,6 @@ if (isset($_GET['client_id'])) {
|
|||||||
$client_referral = nullable_htmlentities($row['client_referral']);
|
$client_referral = nullable_htmlentities($row['client_referral']);
|
||||||
$client_currency_code = nullable_htmlentities($row['client_currency_code']);
|
$client_currency_code = nullable_htmlentities($row['client_currency_code']);
|
||||||
$client_net_terms = intval($row['client_net_terms']);
|
$client_net_terms = intval($row['client_net_terms']);
|
||||||
if ($client_net_terms == 0) {
|
|
||||||
$client_net_terms = $config_default_net_terms;
|
|
||||||
}
|
|
||||||
$client_tax_id_number = nullable_htmlentities($row['client_tax_id_number']);
|
$client_tax_id_number = nullable_htmlentities($row['client_tax_id_number']);
|
||||||
$client_abbreviation = nullable_htmlentities($row['client_abbreviation']);
|
$client_abbreviation = nullable_htmlentities($row['client_abbreviation']);
|
||||||
$client_rate = floatval($row['client_rate']);
|
$client_rate = floatval($row['client_rate']);
|
||||||
|
|||||||
@@ -148,7 +148,13 @@
|
|||||||
<span class="text-dark float-right"> <?php echo numfmt_format_currency($currency_format, $recurring_monthly, $client_currency_code); ?></span>
|
<span class="text-dark float-right"> <?php echo numfmt_format_currency($currency_format, $recurring_monthly, $client_currency_code); ?></span>
|
||||||
</div>
|
</div>
|
||||||
<div class="ml-1 mt-1 text-secondary">Net Terms
|
<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>
|
</div>
|
||||||
<?php if(!empty($client_tax_id_number)) { ?>
|
<?php if(!empty($client_tax_id_number)) { ?>
|
||||||
<div class="ml-1 mt-1 text-secondary">Tax ID
|
<div class="ml-1 mt-1 text-secondary">Tax ID
|
||||||
|
|||||||
Reference in New Issue
Block a user