Re-Add subtotal line on compta report (accidentaly remove before)
This commit is contained in:
parent
7aecce526a
commit
565de5258f
@ -601,6 +601,11 @@ else
|
|||||||
{
|
{
|
||||||
dol_print_error($db);
|
dol_print_error($db);
|
||||||
}
|
}
|
||||||
|
print '<tr class="liste_total">';
|
||||||
|
if ($modecompta == 'CREANCES-DETTES')
|
||||||
|
print '<td colspan="3" align="right">'.price(-$subtotal_ht).'</td>';
|
||||||
|
print '<td colspan="3" align="right">'.price(-$subtotal_ttc).'</td>';
|
||||||
|
print '</tr>';
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Dunning
|
* Dunning
|
||||||
@ -633,8 +638,8 @@ if ($result)
|
|||||||
|
|
||||||
$total_ht += $obj->amount;
|
$total_ht += $obj->amount;
|
||||||
$total_ttc += $obj->amount;
|
$total_ttc += $obj->amount;
|
||||||
$subtotal_ht -= $obj->amount;
|
$subtotal_ht += $obj->amount;
|
||||||
$subtotal_ttc -= $obj->amount;
|
$subtotal_ttc += $obj->amount;
|
||||||
|
|
||||||
$var = !$var;
|
$var = !$var;
|
||||||
print "<tr ".$bc[$var]."><td> </td>";
|
print "<tr ".$bc[$var]."><td> </td>";
|
||||||
@ -661,8 +666,8 @@ else
|
|||||||
}
|
}
|
||||||
print '<tr class="liste_total">';
|
print '<tr class="liste_total">';
|
||||||
if ($modecompta == 'CREANCES-DETTES')
|
if ($modecompta == 'CREANCES-DETTES')
|
||||||
print '<td colspan="3" align="right">'.price(-$subtotal_ht).'</td>';
|
print '<td colspan="3" align="right">'.price($subtotal_ht).'</td>';
|
||||||
print '<td colspan="3" align="right">'.price(-$subtotal_ttc).'</td>';
|
print '<td colspan="3" align="right">'.price($subtotal_ttc).'</td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user