// bons de livraison | // bons de livraison | ||||
$deliveryNotesArray = DeliveryNote::searchAll([ | $deliveryNotesArray = DeliveryNote::searchAll([ | ||||
'distribution.date' => $date, | 'distribution.date' => $date, | ||||
], [ | |||||
'join_with' => ['user AS user_delivery_note', 'orders', 'producer'] | |||||
]); | ]); | ||||
$deliveryNotesByPointSaleArray = []; | $deliveryNotesByPointSaleArray = []; | ||||
foreach ($deliveryNotesArray as $deliveryNote) { | foreach ($deliveryNotesArray as $deliveryNote) { |
if ($classDocument == 'Invoice') { | if ($classDocument == 'Invoice') { | ||||
$options = [ | $options = [ | ||||
'orderby' => 'distribution.date ASC' | |||||
'orderby' => 'distribution.date ASC', | |||||
'join_with' => ['user AS user_delivery_note', 'orders', 'producer'] | |||||
]; | ]; | ||||
$deliveryNotesCreateArray = DeliveryNote::searchAll([ | $deliveryNotesCreateArray = DeliveryNote::searchAll([ | ||||
'id_user' => $user->id, | 'id_user' => $user->id, |
<span class="info-box-icon bg-blue"><i class="fa fa-download"></i></span> | <span class="info-box-icon bg-blue"><i class="fa fa-download"></i></span> | ||||
<div class="info-box-content"> | <div class="info-box-content"> | ||||
<a href="<?= Yii::$app->urlManager->createUrl([Yii::$app->controller->getControllerUrl() . '/download', 'id' => $model->id]) ?>" | <a href="<?= Yii::$app->urlManager->createUrl([Yii::$app->controller->getControllerUrl() . '/download', 'id' => $model->id]) ?>" | ||||
class="btn btn-sm btn-default"><span class="glyphicon glyphicon-download-alt"></span> Télécharger</a> | |||||
class="btn btn-sm btn-default"><span class="glyphicon glyphicon-download-alt"></span> Télécharger (PDF)</a> | |||||
<?php if($model->isStatusValid()): ?> | <?php if($model->isStatusValid()): ?> | ||||
<a href="<?= Yii::$app->urlManager->createUrl([Yii::$app->controller->getControllerUrl() . '/regenerate', 'id' => $model->id]) ?>" | <a href="<?= Yii::$app->urlManager->createUrl([Yii::$app->controller->getControllerUrl() . '/regenerate', 'id' => $model->id]) ?>" | ||||
class="btn btn-sm btn-default"><span class="glyphicon glyphicon-repeat"></span> Regénérer</a> | |||||
class="btn btn-sm btn-default"><span class="glyphicon glyphicon-repeat"></span> Regénérer (PDF)</a> | |||||
<?php endif; ?> | <?php endif; ?> | ||||
<?php if ($model->getClass() == 'Invoice' && Producer::getConfig('option_export_evoliz')): ?> | <?php if ($model->getClass() == 'Invoice' && Producer::getConfig('option_export_evoliz')): ?> |
body.skin-black .content-wrapper .alert .close { | body.skin-black .content-wrapper .alert .close { | ||||
font-size: 30px; | font-size: 30px; | ||||
position: relative; | position: relative; | ||||
top: -25px; | |||||
top: -15px; | |||||
text-decoration: none; | text-decoration: none; | ||||
color: white; | color: white; | ||||
opacity: 0.6; | opacity: 0.6; |
.close { | .close { | ||||
font-size: 30px; | font-size: 30px; | ||||
position: relative; | position: relative; | ||||
top: -25px; | |||||
top: -15px; | |||||
text-decoration: none; | text-decoration: none; | ||||
color: white; | color: white; | ||||
opacity: 0.6; | opacity: 0.6; |
{ | { | ||||
return [ | return [ | ||||
'with' => [], | 'with' => [], | ||||
'join_with' => ['user AS user_delivery_note', 'orders', 'producer'], | |||||
'join_with' => ['user AS user_delivery_note', 'producer'], | |||||
'orderby' => 'date ASC', | 'orderby' => 'date ASC', | ||||
'attribute_id_producer' => 'delivery_note.id_producer' | 'attribute_id_producer' => 'delivery_note.id_producer' | ||||
]; | ]; |
{ | { | ||||
return [ | return [ | ||||
'with' => [], | 'with' => [], | ||||
'join_with' => ['user AS user_invoice', 'orders', 'producer'], | |||||
'join_with' => ['user AS user_invoice', 'producer'], | |||||
'orderby' => 'date ASC', | 'orderby' => 'date ASC', | ||||
'attribute_id_producer' => 'invoice.id_producer' | 'attribute_id_producer' => 'invoice.id_producer' | ||||
]; | ]; |
{ | { | ||||
return [ | return [ | ||||
'with' => [], | 'with' => [], | ||||
'join_with' => ['user AS user_quotation', 'orders', 'producer'], | |||||
'join_with' => ['user AS user_quotation', 'producer'], | |||||
'orderby' => 'date ASC', | 'orderby' => 'date ASC', | ||||
'attribute_id_producer' => 'quotation.id_producer' | 'attribute_id_producer' => 'quotation.id_producer' | ||||
]; | ]; |