FIX A variable was erased by a temporary variable
This commit is contained in:
parent
84bca036c9
commit
b1495e12ce
@ -4202,7 +4202,7 @@ elseif ($id > 0 || ! empty($ref))
|
||||
|
||||
$current_situation_counter = array();
|
||||
foreach ($object->tab_previous_situation_invoice as $prev_invoice) {
|
||||
$totalpaye = $prev_invoice->getSommePaiement();
|
||||
$tmptotalpaidforthisinvoice = $prev_invoice->getSommePaiement();
|
||||
$total_prev_ht += $prev_invoice->total_ht;
|
||||
$total_prev_ttc += $prev_invoice->total_ttc;
|
||||
$current_situation_counter[] = (($prev_invoice->type == Facture::TYPE_CREDIT_NOTE)?-1:1) * $prev_invoice->situation_counter;
|
||||
@ -4213,7 +4213,7 @@ elseif ($id > 0 || ! empty($ref))
|
||||
if (! empty($conf->banque->enabled)) print '<td class="right"></td>';
|
||||
print '<td class="right">' . price($prev_invoice->total_ht) . '</td>';
|
||||
print '<td class="right">' . price($prev_invoice->total_ttc) . '</td>';
|
||||
print '<td class="right">' . $prev_invoice->getLibStatut(3, $totalpaye) . '</td>';
|
||||
print '<td class="right">' . $prev_invoice->getLibStatut(3, $tmptotalpaidforthisinvoice) . '</td>';
|
||||
print '</tr>';
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user