context->getProducerCurrent(); $this->setTitle('Mes commandes') ; //$this->addButton(['label' => ' Ajouter', 'url' => 'order/order', 'class' => 'btn btn-primary']) ; ?>
Votre commande a bien été prise en compte.
Votre commande a bien été annulée.
getTotalCount()): ?> $dataProviderOrders, 'summary' => '', 'beforeRow' => function($order) use ($orderModule) { $orderModule->initOrder($order) ; }, 'columns' => [ [ 'attribute' => 'distribution.date', 'label' => 'Date de distribution', 'format' => 'raw', 'value' => function($order) use ($orderModule) { return $orderModule->getDateAsHtml($order) ; } ], [ 'label' => 'Point de vente', 'format' => 'raw', 'value' => function($order) use ($orderModule) { return $orderModule->getPointSaleSummary($order); } ], [ 'label' => 'Produits', 'format' => 'raw', 'value' => function($order) use ($orderModule) { return $orderModule->getCartSummary($order); } ], [ 'label' => 'Montant', 'format' => 'raw', 'value' => function($order) use ($orderModule) { return $orderModule->getAmountSummary($order, 'producer'); } ], [ 'label' => 'Statut', 'format' => 'raw', 'value' => function($order) use ($orderModule) { $html = '' ; if($order->date_delete) { $html .= 'Annulée' ; } else { if($orderModule->getState($order) == Order::STATE_DELIVERED) { $html .= 'Livrée' ; } elseif($orderModule->getState($order) == Order::STATE_PREPARATION) { $html .= 'En préparation' ; } elseif($orderModule->getState($order) == Order::STATE_OPEN) { $html .= 'À venir' ; } } return $html ; } ], [ 'label' => 'Actions', 'format' => 'raw', 'value' => function($order) use ($producer, $producerModule, $orderModule) { $html = '' ; if($orderModule->getState($order) == Order::STATE_OPEN) { $paymentStatus = $orderModule->getPaymentStatus($order); if ($producerModule->isOnlinePaymentActive($producer) && $paymentStatus == Order::PAYMENT_UNPAID && $order->online_payment_url) { $html .= ' Payer en ligne'; } else { $html .= ' '. ' '. (($order->id_subscription) ? '' : '') ; } } return $html ; } ] ] ]); ?>
Aucun résultat n'a été trouvé.