NEW - Add sub total in order list det
This commit is contained in:
parent
4cf4da973c
commit
eb6b42d1e3
@ -1402,6 +1402,7 @@ if ($resql) {
|
|||||||
$total_ht = 0;
|
$total_ht = 0;
|
||||||
$total_margin = 0;
|
$total_margin = 0;
|
||||||
|
|
||||||
|
|
||||||
// Détail commande
|
// Détail commande
|
||||||
$totalqty = 0;
|
$totalqty = 0;
|
||||||
|
|
||||||
@ -1419,6 +1420,15 @@ if ($resql) {
|
|||||||
$text_warning = '';
|
$text_warning = '';
|
||||||
$nbprod = 0;
|
$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->id = $obj->socid;
|
||||||
$companystatic->name = $obj->name;
|
$companystatic->name = $obj->name;
|
||||||
$companystatic->name_alias = $obj->alias;
|
$companystatic->name_alias = $obj->alias;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user