Merge pull request #23590 from BB2A/NEW---Add-sub-total-in-order-list-det

NEW - Add sub total in order list det
This commit is contained in:
Laurent Destailleur 2023-01-17 17:40:00 +01:00 committed by GitHub
commit 0785186ec2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;