Merge pull request #35812 from Easya-Solutions/18__fix_situation_remove_from_cycle

FIX remove situation invoice from cycle
This commit is contained in:
lvessiller-opendsi 2025-11-20 10:03:02 +01:00 committed by GitHub
commit 4dcbd826e6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 '<td class="right"><span class="amount">'.price($next_invoice->total_ht).'</span></td>';
print '<td class="right"><span class="amount">'.price($next_invoice->total_ttc).'</span></td>';
print '<td class="right">'.$next_invoice->getLibStatut(3, $totalpaid + $totalcreditnotes + $totaldeposits).'</td>';
print '<td class="right">'.$next_invoice->getLibStatut(3, $next_invoice_total_paid + $next_invoice_totalcreditnotes + $next_invoice_totaldeposits).'</td>';
print '</tr>';
}