Fix phpcs
This commit is contained in:
parent
3578c7cb0a
commit
89b7f1a040
@ -482,16 +482,16 @@ if (! is_array($x_coll) || ! is_array($x_paye))
|
|||||||
if (($type == 0 && $conf->global->TAX_MODE_SELL_PRODUCT == 'invoice')
|
if (($type == 0 && $conf->global->TAX_MODE_SELL_PRODUCT == 'invoice')
|
||||||
|| ($type == 1 && $conf->global->TAX_MODE_SELL_SERVICE == 'invoice')) {
|
|| ($type == 1 && $conf->global->TAX_MODE_SELL_SERVICE == 'invoice')) {
|
||||||
print $langs->trans("NA");
|
print $langs->trans("NA");
|
||||||
} else {
|
} else {
|
||||||
if (isset($fields['payment_amount']) && price2num($fields['ftotal_ttc'])) {
|
if (isset($fields['payment_amount']) && price2num($fields['ftotal_ttc'])) {
|
||||||
$ratiopaymentinvoice = ($fields['payment_amount'] / $fields['ftotal_ttc']);
|
$ratiopaymentinvoice = ($fields['payment_amount'] / $fields['ftotal_ttc']);
|
||||||
}
|
|
||||||
print price(price2num($fields['payment_amount'], 'MT'));
|
|
||||||
if (isset($fields['payment_amount'])) {
|
|
||||||
print ' (' . round($ratiopaymentinvoice * 100, 2) . '%)';
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
print '</td>';
|
print price(price2num($fields['payment_amount'], 'MT'));
|
||||||
|
if (isset($fields['payment_amount'])) {
|
||||||
|
print ' (' . round($ratiopaymentinvoice * 100, 2) . '%)';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
print '</td>';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Total collected
|
// Total collected
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user