|
|
|
|
|
|
|
|
foreach( Product::$unitsArray as $unit => $dataUnit) { |
|
|
foreach( Product::$unitsArray as $unit => $dataUnit) { |
|
|
$quantity = $orderManager->getProductQuantity($product, $pointSale->orders, false, $unit); |
|
|
$quantity = $orderManager->getProductQuantity($product, $pointSale->orders, false, $unit); |
|
|
if ($quantity) { |
|
|
if ($quantity) { |
|
|
$theUnit = ( Product::strUnit($unit, 'wording_short', true) == 'p.') ? '' : ' '. $productManager->strUnit($unit, 'wording_short', true) ; |
|
|
|
|
|
|
|
|
$theUnit = ( $productManager->strUnit($unit, 'wording_short', true) == 'p.') ? '' : ' '. $productManager->strUnit($unit, 'wording_short', true) ; |
|
|
$html .= $product->name . ' (' .$quantity .$theUnit.')<br />'; |
|
|
$html .= $product->name . ' (' .$quantity .$theUnit.')<br />'; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |