NEW add total margin in invoice list
This commit is contained in:
parent
4a8e72c997
commit
d4a19e5968
@ -1584,6 +1584,8 @@ if ($resql)
|
|||||||
{
|
{
|
||||||
print '<td class="right nowrap">'.price($marginInfo['total_margin']).'</td>';
|
print '<td class="right nowrap">'.price($marginInfo['total_margin']).'</td>';
|
||||||
if (!$i) $totalarray['nbfield']++;
|
if (!$i) $totalarray['nbfield']++;
|
||||||
|
if (!$i) $totalarray['pos'][$totalarray['nbfield']] = 'total_margin';
|
||||||
|
$totalarray['val']['total_margin'] += $marginInfo['total_margin'];
|
||||||
}
|
}
|
||||||
// Total margin rate
|
// Total margin rate
|
||||||
if (!empty($arrayfields['total_margin_rate']['checked']))
|
if (!empty($arrayfields['total_margin_rate']['checked']))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user