Browse Source

Commandes : système de statuts de commandes

feature/rotating_product
Guillaume Bourgeois 5 months ago
parent
commit
ddfdce8049
2 changed files with 3 additions and 1 deletions
  1. +1
    -1
      domain/Order/Order/OrderManager.php
  2. +2
    -0
      producer/views/layouts/main.php

+ 1
- 1
domain/Order/Order/OrderManager.php View File

&& $subscription->pointSale) { && $subscription->pointSale) {


$order = $this->orderBuilder->createOrder($distribution); $order = $this->orderBuilder->createOrder($distribution);
$this->changeOrderStatus($order, OrderStatus::ALIAS_ORDERED, $userAction);
$this->orderBuilder->updateOrderFromSubscription($order, $subscription); $this->orderBuilder->updateOrderFromSubscription($order, $subscription);
$this->changeOrderStatus($order, OrderStatus::ALIAS_ORDERED, $userAction);


return $order; return $order;
} }

+ 2
- 0
producer/views/layouts/main.php View File

use domain\Feature\Feature\Feature; use domain\Feature\Feature\Feature;
use domain\Feature\Feature\FeatureModule; use domain\Feature\Feature\FeatureModule;
use domain\Order\Order\Order; use domain\Order\Order\Order;
use domain\Order\Order\OrderRepositoryQuery;
use domain\PointSale\PointSale\PointSaleModule; use domain\PointSale\PointSale\PointSaleModule;
use domain\Producer\Producer\ProducerModule; use domain\Producer\Producer\ProducerModule;
use domain\Product\Product\ProductModule; use domain\Product\Product\ProductModule;
]) ])
->params([':date_today' => date('Y-m-d')]) ->params([':date_today' => date('Y-m-d')])
->andWhere('distribution.date >= :date_today') ->andWhere('distribution.date >= :date_today')
->andWhere(OrderRepositoryQuery::getSqlFilterIsValid())
->count(); ->count();
$labelOrders = $countOrders > 0 ? 'success' : 'default'; $labelOrders = $countOrders > 0 ? 'success' : 'default';



Loading…
Cancel
Save