context->getProducer(); $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.
$dataProviderOrders, 'summary' => '', 'beforeRow' => function($model) { $model->init() ; }, 'columns' => [ [ 'attribute' => 'distribution.date', 'label' => 'Date de livraison', 'format' => 'raw', 'value' => function($model) { return $model->getBlockDate() ; } ], [ 'label' => 'Point de vente', 'format' => 'raw', 'value' => function($model) { return $model->getPointSaleSummary(); } ], [ 'label' => 'Résumé', 'format' => 'raw', 'value' => function($model) { return $model->getCartSummary(); } ], [ 'label' => 'Montant', 'format' => 'raw', 'value' => function($model) { return $model->getAmountSummary(); } ], [ 'label' => 'Statut', 'format' => 'raw', 'value' => function($c) { $html = '' ; if($c->date_delete) { $html .= 'Annulée
' ; } else { if($c->getState() == Order::STATE_DELIVERED) { $html .= 'Livrée' ; } elseif($c->getState() == Order::STATE_PREPARATION) { $html .= 'En préparation' ; } elseif($c->getState() == Order::STATE_OPEN) { $html .= 'À venir' ; } } return $html ; } ], [ 'label' => 'Actions', 'format' => 'raw', 'value' => function($c) use ($producer) { $html = '' ; if($c->getState() == Order::STATE_OPEN) { if ($producer->isOnlinePaymentActiveAndTypeOrder()) { $paymentStatus = $c->getPaymentStatus(); if($paymentStatus == Order::PAYMENT_UNPAID && $c->online_payment_url) { $html .= ' Payer en ligne'; } } else { $html .= ' '. ' '. (($c->id_subscription) ? '' : '') ; } } return $html ; } ] ] ]); ?>