Merge pull request #15821 from OPEN-DSI/new-invoice-list-margin-total

NEW add total margin in invoice list
This commit is contained in:
Laurent Destailleur 2020-12-29 17:07:12 +01:00 committed by GitHub
commit 00aec1d3fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1584,6 +1584,8 @@ if ($resql)
{
print '<td class="right nowrap">'.price($marginInfo['total_margin']).'</td>';
if (!$i) $totalarray['nbfield']++;
if (!$i) $totalarray['pos'][$totalarray['nbfield']] = 'total_margin';
$totalarray['val']['total_margin'] += $marginInfo['total_margin'];
}
// Total margin rate
if (!empty($arrayfields['total_margin_rate']['checked']))