diff --git a/htdocs/compta/facture/card.php b/htdocs/compta/facture/card.php index 39c271ea0ca..5aa884f61f5 100644 --- a/htdocs/compta/facture/card.php +++ b/htdocs/compta/facture/card.php @@ -5128,9 +5128,9 @@ if ($action == 'create') { $total_next_ht = $total_next_ttc = 0; foreach ($object->tab_next_situation_invoice as $next_invoice) { - $totalpaid = $next_invoice->getSommePaiement(0); - $totalcreditnotes = $next_invoice->getSumCreditNotesUsed(0); - $totaldeposits = $next_invoice->getSumDepositsUsed(0); + $next_invoice_total_paid = $next_invoice->getSommePaiement(0); + $next_invoice_totalcreditnotes = $next_invoice->getSumCreditNotesUsed(0); + $next_invoice_totaldeposits = $next_invoice->getSumDepositsUsed(0); $total_next_ht += $next_invoice->total_ht; $total_next_ttc += $next_invoice->total_ttc; @@ -5143,7 +5143,7 @@ if ($action == 'create') { } print '