diff --git a/htdocs/commande/list_det.php b/htdocs/commande/list_det.php index 651b8fffe8d..8dce1c91576 100644 --- a/htdocs/commande/list_det.php +++ b/htdocs/commande/list_det.php @@ -1414,6 +1414,7 @@ if ($resql) { $total_ht = 0; $total_margin = 0; + // Détail commande $totalqty = 0; @@ -1431,6 +1432,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;