NEW - Add sub total in order list det

This commit is contained in:
Anthony Berton 2023-01-17 11:25:16 +01:00
parent 4cf4da973c
commit eb6b42d1e3

View File

@ -1402,6 +1402,7 @@ if ($resql) {
$total_ht = 0;
$total_margin = 0;
// Détail commande
$totalqty = 0;
@ -1419,6 +1420,15 @@ if ($resql) {
$text_warning = '';
$nbprod = 0;
// Print SubTotal
if (empty($i)) {
$oldref = $obj->product_ref;
}
if ($oldref != $obj->product_ref) {
include DOL_DOCUMENT_ROOT.'/core/tpl/list_print_total.tpl.php';
$oldref = $obj->product_ref;
}
$companystatic->id = $obj->socid;
$companystatic->name = $obj->name;
$companystatic->name_alias = $obj->alias;