|
|
@@ -174,7 +174,7 @@ class OrderController extends BackendController |
|
|
|
$productModule = $this->getProductModule(); |
|
|
|
$pointSaleModule = $this->getPointSaleModule(); |
|
|
|
$orderModule = $this->getOrderModule(); |
|
|
|
$productDistributionModule = $this->getProductDistributionManager(); |
|
|
|
$productDistributionModule = $this->getProductDistributionModule(); |
|
|
|
|
|
|
|
if (!Product::searchCount() || !PointSale::searchCount()) { |
|
|
|
$this->redirect(['dashboard/index', 'error_products_points_sale' => 1]); |
|
|
@@ -421,7 +421,7 @@ class OrderController extends BackendController |
|
|
|
$distributionModule = $this-> getDistributionModule(); |
|
|
|
$pointSaleModule = $this->getPointSaleModule(); |
|
|
|
$productModule = $this->getProductModule(); |
|
|
|
$productDistributionModule = $this->getProductDistributionManager(); |
|
|
|
$productDistributionModule = $this->getProductDistributionModule(); |
|
|
|
|
|
|
|
$distribution = $distributionModule->findOneDistribution($date); |
|
|
|
$selectedProductsArray = $productDistributionModule->findProductDistributionsByDistribution($distribution); |
|
|
@@ -544,7 +544,7 @@ class OrderController extends BackendController |
|
|
|
{ |
|
|
|
$orderModule = $this->getOrderModule(); |
|
|
|
$distributionModule = $this-> getDistributionModule(); |
|
|
|
$productDistributionModule = $this->getProductDistributionManager(); |
|
|
|
$productDistributionModule = $this->getProductDistributionModule(); |
|
|
|
|
|
|
|
$data = []; |
|
|
|
$filename = 'summary_' . $date; |
|
|
@@ -605,7 +605,7 @@ class OrderController extends BackendController |
|
|
|
public function contentPointSaleCSV($date, $products, $pointsSale, $idPointSale) |
|
|
|
{ |
|
|
|
$distributionModule = $this-> getDistributionModule(); |
|
|
|
$productDistributionModule = $this->getProductDistributionManager(); |
|
|
|
$productDistributionModule = $this->getProductDistributionModule(); |
|
|
|
|
|
|
|
$data = []; |
|
|
|
$distribution = $distributionModule->findOneDistribution($date); |