New: add function to sort the total qty of products or/and services

This commit is contained in:
Regis Houssin 2011-02-24 15:22:33 +00:00
parent e28ab7f759
commit 0bc8173c8f

View File

@ -935,7 +935,7 @@ function pdf_getTotalQty($object,$type='',$outputlangs)
{ {
$total += $object->lines[$i]->qty; $total += $object->lines[$i]->qty;
} }
if ($type==9 && !empty($object->hooks) && $object->lines[$i]->product_type == 9 && !empty($object->lines[$i]->special_code)) else if ($type==9 && !empty($object->hooks) && $object->lines[$i]->product_type == 9 && !empty($object->lines[$i]->special_code))
{ {
// TODO add hook function // TODO add hook function
} }