|
|
|
|
|
|
|
|
$userGroupName = $productPriceCsv[2]; |
|
|
$userGroupName = $productPriceCsv[2]; |
|
|
$pointSaleName = $productPriceCsv[3]; |
|
|
$pointSaleName = $productPriceCsv[3]; |
|
|
$quantityFrom = (float)$productPriceCsv[4]; |
|
|
$quantityFrom = (float)$productPriceCsv[4]; |
|
|
$price = (float)$productPriceCsv[5]; |
|
|
|
|
|
|
|
|
$price = (float) str_replace(',', '.', $productPriceCsv[5]); |
|
|
|
|
|
|
|
|
$product = $productName ? $productManager->findOneProductByName($productName) : null; |
|
|
$product = $productName ? $productManager->findOneProductByName($productName) : null; |
|
|
$user = (count($userArray) > 1) ? $userManager->findOneUserById((int)$userArray[1]) : null; |
|
|
$user = (count($userArray) > 1) ? $userManager->findOneUserById((int)$userArray[1]) : null; |
|
|
|
|
|
|
|
|
'', |
|
|
'', |
|
|
'', |
|
|
'', |
|
|
'', |
|
|
'', |
|
|
$product->price |
|
|
|
|
|
|
|
|
CSV::formatPrice($product->price) |
|
|
]; |
|
|
]; |
|
|
|
|
|
|
|
|
// prix spécifiques |
|
|
// prix spécifiques |
|
|
|
|
|
|
|
|
$productPrice->userGroup ? $productPrice->userGroup->name : '', |
|
|
$productPrice->userGroup ? $productPrice->userGroup->name : '', |
|
|
$productPrice->pointSale ? $productPrice->pointSale->name : '', |
|
|
$productPrice->pointSale ? $productPrice->pointSale->name : '', |
|
|
$productPrice->from_quantity ?? '', |
|
|
$productPrice->from_quantity ?? '', |
|
|
$productPrice->price |
|
|
|
|
|
|
|
|
CSV::formatPrice($productPrice->price) |
|
|
]; |
|
|
]; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |