]); | ]); | ||||
return $this->render('billing', [ | return $this->render('billing', [ | ||||
'paidFeaturesArray' => $this->getFeatureModule()->getRepository()->findPaidFeatures(), | |||||
'dataProviderPrices' => $dataProviderPrices, | 'dataProviderPrices' => $dataProviderPrices, | ||||
'producer' => $producer, | 'producer' => $producer, | ||||
'alertFreePrice' => (isset($alertFreeprice)) ? true : false | 'alertFreePrice' => (isset($alertFreeprice)) ? true : false |
use backend\forms\ProductPriceUploadForm; | use backend\forms\ProductPriceUploadForm; | ||||
use common\helpers\CSV; | use common\helpers\CSV; | ||||
use common\helpers\GlobalParam; | use common\helpers\GlobalParam; | ||||
use common\logic\Distribution\ProductDistribution\Model\ProductDistribution; | |||||
use common\logic\Feature\Feature\Model\Feature; | |||||
use common\logic\Feature\Feature\Feature; | |||||
use common\logic\PointSale\PointSale\Model\PointSale; | use common\logic\PointSale\PointSale\Model\PointSale; | ||||
use common\logic\Product\Product\Model\Product; | use common\logic\Product\Product\Model\Product; | ||||
use common\logic\Product\Product\Model\ProductSearch; | use common\logic\Product\Product\Model\ProductSearch; | ||||
use common\logic\User\UserProducer\Model\UserProducer; | use common\logic\User\UserProducer\Model\UserProducer; | ||||
use Yii; | use Yii; | ||||
use yii\filters\AccessControl; | use yii\filters\AccessControl; | ||||
use yii\helpers\BaseFileHelper; | |||||
use yii\helpers\Html; | use yii\helpers\Html; | ||||
use yii\web\NotFoundHttpException; | use yii\web\NotFoundHttpException; | ||||
use yii\filters\VerbFilter; | |||||
use common\helpers\Upload; | use common\helpers\Upload; | ||||
use yii\web\UploadedFile; | use yii\web\UploadedFile; | ||||
*/ | */ | ||||
public function actionPriceImport() | public function actionPriceImport() | ||||
{ | { | ||||
if($this->getFeatureModule()->getManager()->isDisabled(Feature::ALIAS_PRODUCT_PRICE_IMPORT)) { | |||||
if($this->getFeatureModule()->getChecker()->isDisabled(Feature::ALIAS_PRODUCT_PRICE_IMPORT)) { | |||||
return $this->redirectDashboard(); | return $this->redirectDashboard(); | ||||
} | } | ||||
*/ | */ | ||||
public function actionPriceExport() | public function actionPriceExport() | ||||
{ | { | ||||
if($this->getFeatureModule()->getManager()->isDisabled(Feature::ALIAS_PRODUCT_PRICE_IMPORT)) { | |||||
if($this->getFeatureModule()->getChecker()->isDisabled(Feature::ALIAS_PRODUCT_PRICE_IMPORT)) { | |||||
return $this->redirectDashboard(); | return $this->redirectDashboard(); | ||||
} | } | ||||
{{ countOrders }} Commande<span v-if="countOrders > 1">s</span><br /> | {{ countOrders }} Commande<span v-if="countOrders > 1">s</span><br /> | ||||
<template v-for="distributionExport in distribution.exports"> | <template v-for="distributionExport in distribution.exports"> | ||||
<a v-if="countOrders > 0" :href="distributionExport.url" class="btn btn-xs btn-default">{{ distributionExport.label }}</a><br /> | |||||
<a v-if="countOrders > 0" :href="distributionExport.url" target="_blank" class="btn btn-xs btn-default">{{ distributionExport.label }}</a><br /> | |||||
</template> | </template> | ||||
<!--<a :href="distribution.url_report+'&type=csv'" class="btn btn-xs btn-default" v-if="countOrders > 0">Tableau (CSV)</a> | <!--<a :href="distribution.url_report+'&type=csv'" class="btn btn-xs btn-default" v-if="countOrders > 0">Tableau (CSV)</a> | ||||
<a :href="distribution.url_report_csv2" class="btn btn-xs btn-default" v-if="countOrders > 0">Tableau 2 (CSV)</a> | <a :href="distribution.url_report_csv2" class="btn btn-xs btn-default" v-if="countOrders > 0">Tableau 2 (CSV)</a> | ||||
<span class="label label-success" v-if="loadingUpdateProductOrder || order.productOrder[product.id].active">Actif</span> | <span class="label label-success" v-if="loadingUpdateProductOrder || order.productOrder[product.id].active">Actif</span> | ||||
<span class="label label-danger" v-else>Inactif</span> | <span class="label label-danger" v-else>Inactif</span> | ||||
</td> | </td> | ||||
<td>{{ product.name }}</td> | |||||
<td> | |||||
{{ product.name }} | |||||
<template v-if="product.weight">({{ product.weight }} g)</template> | |||||
</td> | |||||
<td class="price"> | <td class="price"> | ||||
<div v-show="vatMode == 'all'" class="input-group"> | <div v-show="vatMode == 'all'" class="input-group"> | ||||
<input type="text" v-model="order.productOrder[product.id].price" class="form-control input-sm" @change="productPriceChange" :data-with-tax="false" :data-id-product="product.id" /> | <input type="text" v-model="order.productOrder[product.id].price" class="form-control input-sm" @change="productPriceChange" :data-with-tax="false" :data-id-product="product.id" /> |
<?= | <?= | ||||
$this->render('@frontend/views/site/_prices_producer', [ | $this->render('@frontend/views/site/_prices_producer', [ | ||||
'paidFeaturesArray' => $paidFeaturesArray, | |||||
'dataProviderPrices' => $dataProviderPrices | 'dataProviderPrices' => $dataProviderPrices | ||||
]); | ]); | ||||
*/ | */ | ||||
return [ | return [ | ||||
'version' => '23.11.B', | |||||
'version' => '23.11.C', | |||||
'maintenanceMode' => false, | 'maintenanceMode' => false, | ||||
'siteName' => 'Opendistrib', | 'siteName' => 'Opendistrib', | ||||
'adminEmail' => 'contact@opendistrib.net', | 'adminEmail' => 'contact@opendistrib.net', |
<?php | |||||
require_once dirname(__FILE__).'/_macros.php'; | |||||
version( | |||||
'28/11/2023', | |||||
[ | |||||
[ | |||||
], | |||||
[ | |||||
"[Admin] Distributions > formulaire commande : ajout du poids au nom des produits", | |||||
"[Admin] Distribution > exports : ouverture dans un nouvel onglet", | |||||
] | |||||
], | |||||
[ | |||||
[ | |||||
], | |||||
[ | |||||
"[Admin] Tarifs : erreur vue modules payants", | |||||
"[Admin] Produits : import prix cassé" | |||||
] | |||||
], | |||||
$userCurrent | |||||
); | |||||
?> |