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:
commit
0785186ec2
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user