|
|
|
|
|
|
|
|
foreach ($order->productOrder as $productOrder) { |
|
|
foreach ($order->productOrder as $productOrder) { |
|
|
if($product->id == $productOrder->id_product) { |
|
|
if($product->id == $productOrder->id_product) { |
|
|
$unit = (Product::strUnit($productOrder->unit, 'wording_short', true) == 'p.') ? '' : ' '.Product::strUnit($productOrder->unit, 'wording_short', true) ; |
|
|
$unit = (Product::strUnit($productOrder->unit, 'wording_short', true) == 'p.') ? '' : ' '.Product::strUnit($productOrder->unit, 'wording_short', true) ; |
|
|
$strProducts .= $product->getNameExport() . ' (' .$productOrder->quantity .$unit.')<br />'; |
|
|
|
|
|
|
|
|
$strProducts .= '('.$productOrder->quantity .$unit.') '.$product->getNameExport() . '<br />'; |
|
|
$add = true; |
|
|
$add = true; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
$quantity = Order::getProductQuantity($product->id, $pointSale->orders, false, $unit); |
|
|
$quantity = Order::getProductQuantity($product->id, $pointSale->orders, false, $unit); |
|
|
if ($quantity) { |
|
|
if ($quantity) { |
|
|
$theUnit = (Product::strUnit($unit, 'wording_short', true) == 'p.') ? '' : ' '.Product::strUnit($unit, 'wording_short', true) ; |
|
|
$theUnit = (Product::strUnit($unit, 'wording_short', true) == 'p.') ? '' : ' '.Product::strUnit($unit, 'wording_short', true) ; |
|
|
$strProducts .= $product->getNameExport() . ' (' .$quantity .$theUnit.')<br />'; |
|
|
|
|
|
|
|
|
$strProducts .= '(' .$quantity .$theUnit.') '.$product->getNameExport() . '<br />'; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$quantity = Order::getProductQuantity($product->id, $pointSale->orders, false, $unit); |
|
|
$quantity = Order::getProductQuantity($product->id, $pointSale->orders, false, $unit); |
|
|
if ($quantity) { |
|
|
if ($quantity) { |
|
|
$theUnit = (Product::strUnit($unit, 'wording_short', true) == 'p.') ? '' : ' '.Product::strUnit($unit, 'wording_short', true) ; |
|
|
$theUnit = (Product::strUnit($unit, 'wording_short', true) == 'p.') ? '' : ' '.Product::strUnit($unit, 'wording_short', true) ; |
|
|
$html .= $product->getNameExport() . ' (' .$quantity .$theUnit.')<br />'; |
|
|
|
|
|
|
|
|
$html .= '(' .$quantity .$theUnit.') '.$product->getNameExport() . '<br />'; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$quantity = Order::getProductQuantity($product->id, $ordersArray, false, $unit); |
|
|
$quantity = Order::getProductQuantity($product->id, $ordersArray, false, $unit); |
|
|
if ($quantity) { |
|
|
if ($quantity) { |
|
|
$theUnit = (Product::strUnit($unit, 'wording_short', true) == 'p.') ? '' : ' '.Product::strUnit($unit, 'wording_short', true) ; |
|
|
$theUnit = (Product::strUnit($unit, 'wording_short', true) == 'p.') ? '' : ' '.Product::strUnit($unit, 'wording_short', true) ; |
|
|
$html .= $product->name . ' (' .$quantity .$theUnit.')<br />'; |
|
|
|
|
|
|
|
|
$html .= '(' .$quantity .$theUnit.') '.$product->name . '<br />'; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
if($isBig && $cpt == $limit) { |
|
|
if($isBig && $cpt == $limit) { |