fix warnings
This commit is contained in:
parent
456356ded7
commit
0b28587e65
@ -598,7 +598,7 @@ if ($action == 'create' || $action == 'confirm_paiement' || $action == 'add_paie
|
|||||||
print '<td align="right"> </td>';
|
print '<td align="right"> </td>';
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
|
|
||||||
$total = 0;
|
$total_ttc = 0;
|
||||||
$totalrecu = 0;
|
$totalrecu = 0;
|
||||||
$totalrecucreditnote = 0;
|
$totalrecucreditnote = 0;
|
||||||
$totalrecudeposits = 0;
|
$totalrecudeposits = 0;
|
||||||
@ -754,15 +754,14 @@ if ($action == 'create' || $action == 'confirm_paiement' || $action == 'add_paie
|
|||||||
// Warning
|
// Warning
|
||||||
print '<td align="center" width="16">';
|
print '<td align="center" width="16">';
|
||||||
//print "xx".$amounts[$invoice->id]."-".$amountsresttopay[$invoice->id]."<br>";
|
//print "xx".$amounts[$invoice->id]."-".$amountsresttopay[$invoice->id]."<br>";
|
||||||
if ($amounts[$invoice->id] && (abs($amounts[$invoice->id]) > abs($amountsresttopay[$invoice->id]))
|
if (!empty($amounts[$invoice->id]) && (abs($amounts[$invoice->id]) > abs($amountsresttopay[$invoice->id]))
|
||||||
|| $multicurrency_amounts[$invoice->id] && (abs($multicurrency_amounts[$invoice->id]) > abs($multicurrency_amountsresttopay[$invoice->id]))) {
|
|| !empty($multicurrency_amounts[$invoice->id]) && (abs($multicurrency_amounts[$invoice->id]) > abs($multicurrency_amountsresttopay[$invoice->id]))) {
|
||||||
print ' '.img_warning($langs->trans("PaymentHigherThanReminderToPay"));
|
print ' '.img_warning($langs->trans("PaymentHigherThanReminderToPay"));
|
||||||
}
|
}
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
|
|
||||||
$total += $objp->total;
|
|
||||||
$total_ttc += $objp->total_ttc;
|
$total_ttc += $objp->total_ttc;
|
||||||
$totalrecu += $paiement;
|
$totalrecu += $paiement;
|
||||||
$totalrecucreditnote += $creditnotes;
|
$totalrecucreditnote += $creditnotes;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user