|
|
|
|
|
|
|
|
* termes. |
|
|
* termes. |
|
|
*/ |
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
use common\helpers\Dropdown; |
|
|
use common\helpers\GlobalParam; |
|
|
use common\helpers\GlobalParam; |
|
|
use common\logic\Distribution\Distribution\Module\DistributionModule; |
|
|
use common\logic\Distribution\Distribution\Module\DistributionModule; |
|
|
use common\logic\Distribution\Distribution\Service\ExportManager; |
|
|
|
|
|
use common\logic\User\User\Module\UserModule; |
|
|
use common\logic\User\User\Module\UserModule; |
|
|
use yii\helpers\Html; |
|
|
use yii\helpers\Html; |
|
|
use yii\widgets\ActiveForm; |
|
|
use yii\widgets\ActiveForm; |
|
|
|
|
|
|
|
|
use yii\helpers\ArrayHelper; |
|
|
use yii\helpers\ArrayHelper; |
|
|
|
|
|
|
|
|
\backend\assets\VuejsProducerUpdateAsset::register($this); |
|
|
\backend\assets\VuejsProducerUpdateAsset::register($this); |
|
|
|
|
|
|
|
|
$userModule = UserModule::getInstance(); |
|
|
$userModule = UserModule::getInstance(); |
|
|
$userCurrent = GlobalParam::getCurrentUser(); |
|
|
$userCurrent = GlobalParam::getCurrentUser(); |
|
|
$distributionExportManager = DistributionModule::getInstance()->getExportManager(); |
|
|
$distributionExportManager = DistributionModule::getInstance()->getExportManager(); |
|
|
|
|
|
|
|
|
<div class="panel-body"> |
|
|
<div class="panel-body"> |
|
|
<h4>Accès</h4> |
|
|
<h4>Accès</h4> |
|
|
<?= $form->field($model, 'active') |
|
|
<?= $form->field($model, 'active') |
|
|
->dropDownList([ |
|
|
|
|
|
0 => 'Non', |
|
|
|
|
|
1 => 'Oui' |
|
|
|
|
|
], []) |
|
|
|
|
|
|
|
|
->dropDownList(Dropdown::noYesChoices()) |
|
|
->label('En ligne') |
|
|
->label('En ligne') |
|
|
->hint('Activez cette option pour rendre votre espace visible à vos clients.'); ?> |
|
|
->hint('Activez cette option pour rendre votre espace visible à vos clients.'); ?> |
|
|
<?= $form->field($model, 'code')->hint("Saisissez ce champs si vous souhaitez protéger l'accès à votre espace par un code, sinon laissez-le vide.<br />" |
|
|
<?= $form->field($model, 'code')->hint("Saisissez ce champs si vous souhaitez protéger l'accès à votre espace par un code, sinon laissez-le vide.<br />" |
|
|
|
|
|
|
|
|
<div class="panel-body"> |
|
|
<div class="panel-body"> |
|
|
<h4>Tableau de bord administration</h4> |
|
|
<h4>Tableau de bord administration</h4> |
|
|
<?= $form->field($model, 'option_dashboard_number_distributions') |
|
|
<?= $form->field($model, 'option_dashboard_number_distributions') |
|
|
->dropDownList([ |
|
|
|
|
|
3 => '3', |
|
|
|
|
|
6 => '6', |
|
|
|
|
|
9 => '9', |
|
|
|
|
|
12 => '12', |
|
|
|
|
|
15 => '15', |
|
|
|
|
|
18 => '18', |
|
|
|
|
|
21 => '21', |
|
|
|
|
|
24 => '24', |
|
|
|
|
|
27 => '27', |
|
|
|
|
|
30 => '30', |
|
|
|
|
|
], []); ?> |
|
|
|
|
|
|
|
|
->dropDownList(Dropdown::numberChoices(3, 30, false, '', 3)); ?> |
|
|
|
|
|
|
|
|
<?= $form->field($model, 'option_dashboard_date_start')->textInput([ |
|
|
<?= $form->field($model, 'option_dashboard_date_start')->textInput([ |
|
|
'class' => 'datepicker form-control' |
|
|
'class' => 'datepicker form-control' |
|
|
|
|
|
|
|
|
Producer::BEHAVIOR_ORDER_SELECT_DISTRIBUTION_LIST => 'Liste', |
|
|
Producer::BEHAVIOR_ORDER_SELECT_DISTRIBUTION_LIST => 'Liste', |
|
|
]); ?> |
|
|
]); ?> |
|
|
<?= $form->field($model, 'option_delivery') |
|
|
<?= $form->field($model, 'option_delivery') |
|
|
->dropDownList([ |
|
|
|
|
|
0 => 'Non', |
|
|
|
|
|
1 => 'Oui' |
|
|
|
|
|
], []); ?> |
|
|
|
|
|
|
|
|
->dropDownList(Dropdown::noYesChoices()); ?> |
|
|
<?php echo $form->field($model, 'option_allow_order_guest') |
|
|
<?php echo $form->field($model, 'option_allow_order_guest') |
|
|
->dropDownList([ |
|
|
|
|
|
0 => 'Non', |
|
|
|
|
|
1 => 'Oui' |
|
|
|
|
|
], []); ?> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
->dropDownList(Dropdown::noYesChoices()); ?> |
|
|
|
|
|
|
|
|
<h4>Notifications</h4> |
|
|
<h4>Notifications</h4> |
|
|
<?= $form->field($model, 'option_notify_producer_order_summary') |
|
|
<?= $form->field($model, 'option_notify_producer_order_summary') |
|
|
->dropDownList([ |
|
|
|
|
|
0 => 'Non', |
|
|
|
|
|
1 => 'Oui', |
|
|
|
|
|
], []); ?> |
|
|
|
|
|
|
|
|
->dropDownList(Dropdown::noYesChoices()); ?> |
|
|
<?= $form->field($model, 'option_email_confirm') |
|
|
<?= $form->field($model, 'option_email_confirm') |
|
|
->dropDownList([ |
|
|
|
|
|
0 => 'Non', |
|
|
|
|
|
1 => 'Oui' |
|
|
|
|
|
], []); ?> |
|
|
|
|
|
|
|
|
->dropDownList(Dropdown::noYesChoices()); ?> |
|
|
<?= $form->field($model, 'option_email_confirm_producer') |
|
|
<?= $form->field($model, 'option_email_confirm_producer') |
|
|
->dropDownList([ |
|
|
|
|
|
0 => 'Non', |
|
|
|
|
|
1 => 'Oui' |
|
|
|
|
|
], []); ?> |
|
|
|
|
|
|
|
|
->dropDownList(Dropdown::noYesChoices()); ?> |
|
|
|
|
|
|
|
|
<h4>Divers</h4> |
|
|
<h4>Divers</h4> |
|
|
<?php |
|
|
<?php |
|
|
|
|
|
|
|
|
',' => 'Virgule (,)' |
|
|
',' => 'Virgule (,)' |
|
|
], []); ?> |
|
|
], []); ?> |
|
|
<?= $form->field($model, 'option_export_display_product_reference') |
|
|
<?= $form->field($model, 'option_export_display_product_reference') |
|
|
->dropDownList([ |
|
|
|
|
|
0 => 'Non', |
|
|
|
|
|
1 => 'Oui' |
|
|
|
|
|
], []); ?> |
|
|
|
|
|
|
|
|
->dropDownList(Dropdown::noYesChoices()); ?> |
|
|
<?= $form->field($model, 'option_export_display_column_delivery_note') |
|
|
<?= $form->field($model, 'option_export_display_column_delivery_note') |
|
|
->dropDownList([ |
|
|
|
|
|
0 => 'Non', |
|
|
|
|
|
1 => 'Oui' |
|
|
|
|
|
], []); ?> |
|
|
|
|
|
|
|
|
->dropDownList(Dropdown::noYesChoices()); ?> |
|
|
<?= $form->field($model, 'option_csv_export_all_products') |
|
|
<?= $form->field($model, 'option_csv_export_all_products') |
|
|
->dropDownList([ |
|
|
|
|
|
0 => 'Non', |
|
|
|
|
|
1 => 'Oui' |
|
|
|
|
|
], []); ?> |
|
|
|
|
|
|
|
|
->dropDownList(Dropdown::noYesChoices()); ?> |
|
|
<?= $form->field($model, 'option_csv_export_by_piece') |
|
|
<?= $form->field($model, 'option_csv_export_by_piece') |
|
|
->dropDownList([ |
|
|
|
|
|
0 => 'Non', |
|
|
|
|
|
1 => 'Oui' |
|
|
|
|
|
], []); ?> |
|
|
|
|
|
|
|
|
->dropDownList(Dropdown::noYesChoices()); ?> |
|
|
|
|
|
<?= $form->field($model, 'export_shopping_cart_labels_number_per_column') |
|
|
|
|
|
->dropDownList(Dropdown::numberChoices(1, 20)); ?> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="panel-body"> |
|
|
<div class="panel-body"> |
|
|
<h4>Abonnements</h4> |
|
|
<h4>Abonnements</h4> |
|
|
<?= $form->field($model, 'user_manage_subscription') |
|
|
<?= $form->field($model, 'user_manage_subscription') |
|
|
->dropDownList([ |
|
|
|
|
|
0 => 'Non', |
|
|
|
|
|
1 => 'Oui', |
|
|
|
|
|
], []); ?> |
|
|
|
|
|
|
|
|
->dropDownList(Dropdown::noYesChoices()); ?> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="panel-body"> |
|
|
<div class="panel-body"> |
|
|
<h4>Crédit</h4> |
|
|
<h4>Crédit</h4> |
|
|
<?= $form->field($model, 'credit') |
|
|
<?= $form->field($model, 'credit') |
|
|
->dropDownList([ |
|
|
|
|
|
0 => 'Non', |
|
|
|
|
|
1 => 'Oui', |
|
|
|
|
|
], []) |
|
|
|
|
|
|
|
|
->dropDownList(Dropdown::noYesChoices()) |
|
|
->label('Activer le système de Crédit') |
|
|
->label('Activer le système de Crédit') |
|
|
->hint('Le système de Crédit permet à vos clients d\'avoir un compte prépayé sur le site <em>distrib</em>.<br />' |
|
|
->hint('Le système de Crédit permet à vos clients d\'avoir un compte prépayé sur le site <em>distrib</em>.<br />' |
|
|
. 'Ils créditent leur compte en vous donnant la somme de leur choix et c\'est ensuite à vous de ' . Html::a('mettre à jour', ['user/index']) . ' leur Crédit en ligne.<br />' |
|
|
. 'Ils créditent leur compte en vous donnant la somme de leur choix et c\'est ensuite à vous de ' . Html::a('mettre à jour', ['user/index']) . ' leur Crédit en ligne.<br />' |
|
|
|
|
|
|
|
|
], [])->hint(Producer::HINT_CREDIT_FUNCTIONING); ?> |
|
|
], [])->hint(Producer::HINT_CREDIT_FUNCTIONING); ?> |
|
|
|
|
|
|
|
|
<?= $form->field($model, 'use_credit_checked_default') |
|
|
<?= $form->field($model, 'use_credit_checked_default') |
|
|
->dropDownList([ |
|
|
|
|
|
0 => 'Non', |
|
|
|
|
|
1 => 'Oui', |
|
|
|
|
|
], [])->hint('Utilisation optionnelle du Crédit.'); ?> |
|
|
|
|
|
|
|
|
->dropDownList(Dropdown::noYesChoices()) |
|
|
|
|
|
->hint('Utilisation optionnelle du Crédit.'); ?> |
|
|
|
|
|
|
|
|
<?= $form->field($model, 'credit_limit_reminder', [ |
|
|
<?= $form->field($model, 'credit_limit_reminder', [ |
|
|
'template' => '{label}<div class="input-group">{input}<span class="input-group-addon"><span class="glyphicon glyphicon-euro"></span></span></div>{hint}', |
|
|
'template' => '{label}<div class="input-group">{input}<span class="input-group-addon"><span class="glyphicon glyphicon-euro"></span></span></div>{hint}', |
|
|
]) |
|
|
]) |
|
|
->hint("Une relance est envoyé au client dès que ce seuil est dépassé."); ?> |
|
|
->hint("Une relance est envoyé au client dès que ce seuil est dépassé."); ?> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<?= $form->field($model, 'credit_limit', [ |
|
|
<?= $form->field($model, 'credit_limit', [ |
|
|
'template' => '{label}<div class="input-group">{input}<span class="input-group-addon"><span class="glyphicon glyphicon-euro"></span></span></div>{hint}', |
|
|
'template' => '{label}<div class="input-group">{input}<span class="input-group-addon"><span class="glyphicon glyphicon-euro"></span></span></div>{hint}', |
|
|
])->hint('Limite de crédit que l\'utilisateur ne pourra pas dépasser. Laisser vide pour permettre un crédit négatif et infini.'); ?> |
|
|
])->hint('Limite de crédit que l\'utilisateur ne pourra pas dépasser. Laisser vide pour permettre un crédit négatif et infini.'); ?> |
|
|
|
|
|
|
|
|
<h4>Paiement en ligne</h4> |
|
|
<h4>Paiement en ligne</h4> |
|
|
|
|
|
|
|
|
<?= $form->field($model, 'online_payment') |
|
|
<?= $form->field($model, 'online_payment') |
|
|
->dropDownList([ |
|
|
|
|
|
0 => 'Non', |
|
|
|
|
|
1 => 'Oui', |
|
|
|
|
|
], []); ?> |
|
|
|
|
|
|
|
|
->dropDownList(Dropdown::noYesChoices()); ?> |
|
|
<?= $form->field($model, 'option_online_payment_minimum_amount') |
|
|
<?= $form->field($model, 'option_online_payment_minimum_amount') |
|
|
->hint('Valeur par défaut si non défini : '.Producer::ONLINE_PAYMENT_MINIMUM_AMOUNT_DEFAULT.' €') |
|
|
->hint('Valeur par défaut si non défini : '.Producer::ONLINE_PAYMENT_MINIMUM_AMOUNT_DEFAULT.' €') |
|
|
->textInput(); ?> |
|
|
->textInput(); ?> |
|
|
<?= $form->field($model, 'option_stripe_mode_test')->dropDownList([ |
|
|
|
|
|
0 => 'Non', |
|
|
|
|
|
1 => 'Oui' |
|
|
|
|
|
], []); ?> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<?= $form->field($model, 'option_stripe_mode_test')->dropDownList(Dropdown::noYesChoices()); ?> |
|
|
<?= $form->field($model, 'option_online_payment_type') |
|
|
<?= $form->field($model, 'option_online_payment_type') |
|
|
->dropDownList([ |
|
|
->dropDownList([ |
|
|
'credit' => 'Alimentation du crédit', |
|
|
'credit' => 'Alimentation du crédit', |
|
|
'order' => 'Paiement à la commande', |
|
|
'order' => 'Paiement à la commande', |
|
|
], []); ?> |
|
|
], []); ?> |
|
|
|
|
|
|
|
|
<?= $form->field($model, 'option_stripe_public_key')->textInput(); ?> |
|
|
<?= $form->field($model, 'option_stripe_public_key')->textInput(); ?> |
|
|
<?= $form->field($model, 'option_stripe_private_key')->textInput(); ?> |
|
|
<?= $form->field($model, 'option_stripe_private_key')->textInput(); ?> |
|
|
<?= $form->field($model, 'option_stripe_endpoint_secret')->textInput(); ?> |
|
|
<?= $form->field($model, 'option_stripe_endpoint_secret')->textInput(); ?> |
|
|
|
|
|
|
|
|
<div class="panel-body"> |
|
|
<div class="panel-body"> |
|
|
<h4>Tiller</h4> |
|
|
<h4>Tiller</h4> |
|
|
<?= $form->field($model, 'tiller') |
|
|
<?= $form->field($model, 'tiller') |
|
|
->dropDownList([ |
|
|
|
|
|
0 => 'Non', |
|
|
|
|
|
1 => 'Oui' |
|
|
|
|
|
], []) |
|
|
|
|
|
|
|
|
->dropDownList(Dropdown::noYesChoices()) |
|
|
->label('Synchroniser avec Tiller'); ?> |
|
|
->label('Synchroniser avec Tiller'); ?> |
|
|
<?= $form->field($model, 'tiller_provider_token'); ?> |
|
|
<?= $form->field($model, 'tiller_provider_token'); ?> |
|
|
<?= $form->field($model, 'tiller_restaurant_token'); ?> |
|
|
<?= $form->field($model, 'tiller_restaurant_token'); ?> |
|
|
|
|
|
|
|
|
->label('TVA à appliquer par défaut'); ?> |
|
|
->label('TVA à appliquer par défaut'); ?> |
|
|
<?= $form->field($model, 'option_tax_calculation_method') |
|
|
<?= $form->field($model, 'option_tax_calculation_method') |
|
|
->dropDownList(Document::$taxCalculationMethodArray); ?> |
|
|
->dropDownList(Document::$taxCalculationMethodArray); ?> |
|
|
<?= $form->field($model, 'option_export_evoliz')->dropDownList([ |
|
|
|
|
|
0 => 'Non', |
|
|
|
|
|
1 => 'Oui' |
|
|
|
|
|
]); ?> |
|
|
|
|
|
|
|
|
<?= $form->field($model, 'option_export_evoliz')->dropDownList(Dropdown::noYesChoices()); ?> |
|
|
<?php $hintKeywordsPrefix = "Saisissez [ANNEE] pour intégrer l'année courante"; ?> |
|
|
<?php $hintKeywordsPrefix = "Saisissez [ANNEE] pour intégrer l'année courante"; ?> |
|
|
<?= $form->field($model, 'document_quotation_prefix')->hint($hintKeywordsPrefix); ?> |
|
|
<?= $form->field($model, 'document_quotation_prefix')->hint($hintKeywordsPrefix); ?> |
|
|
<?= $form->field($model, 'document_quotation_first_reference'); ?> |
|
|
<?= $form->field($model, 'document_quotation_first_reference'); ?> |
|
|
|
|
|
|
|
|
1 => 'Oui' |
|
|
1 => 'Oui' |
|
|
]); ?> |
|
|
]); ?> |
|
|
<?= $form->field($model, 'option_document_height_logo') |
|
|
<?= $form->field($model, 'option_document_height_logo') |
|
|
->dropDownList([ |
|
|
|
|
|
null => '--', |
|
|
|
|
|
50 => '50px', |
|
|
|
|
|
100 => '100px', |
|
|
|
|
|
150 => '150px', |
|
|
|
|
|
200 => '200px', |
|
|
|
|
|
250 => '250px', |
|
|
|
|
|
]); ?> |
|
|
|
|
|
<?= $form->field($model, 'document_display_orders_invoice')->dropDownList([ |
|
|
|
|
|
0 => 'Non', |
|
|
|
|
|
1 => 'Oui' |
|
|
|
|
|
]); ?> |
|
|
|
|
|
<?= $form->field($model, 'document_display_orders_delivery_note')->dropDownList([ |
|
|
|
|
|
0 => 'Non', |
|
|
|
|
|
1 => 'Oui' |
|
|
|
|
|
]); ?> |
|
|
|
|
|
<?= $form->field($model, 'document_display_prices_delivery_note')->dropDownList([ |
|
|
|
|
|
0 => 'Non', |
|
|
|
|
|
1 => 'Oui' |
|
|
|
|
|
]); ?> |
|
|
|
|
|
<?= $form->field($model, 'document_display_product_description')->dropDownList([ |
|
|
|
|
|
0 => 'Non', |
|
|
|
|
|
1 => 'Oui' |
|
|
|
|
|
]); ?> |
|
|
|
|
|
|
|
|
->dropDownList(Dropdown::numberChoices(50, 250, true, 'px', 50)); ?> |
|
|
|
|
|
<?= $form->field($model, 'document_display_orders_invoice')->dropDownList(Dropdown::noYesChoices()); ?> |
|
|
|
|
|
<?= $form->field($model, 'document_display_orders_delivery_note')->dropDownList(Dropdown::noYesChoices()); ?> |
|
|
|
|
|
<?= $form->field($model, 'document_display_prices_delivery_note')->dropDownList(Dropdown::noYesChoices()); ?> |
|
|
|
|
|
<?= $form->field($model, 'document_display_product_description')->dropDownList(Dropdown::noYesChoices()); ?> |
|
|
<?= $form->field($model, 'option_document_price_decimals')->dropDownList([ |
|
|
<?= $form->field($model, 'option_document_price_decimals')->dropDownList([ |
|
|
2 => '2', |
|
|
2 => '2', |
|
|
3 => '3' |
|
|
3 => '3' |
|
|
|
|
|
|
|
|
]) |
|
|
]) |
|
|
->hint("Sélectionnez le temps que vous estimez gagner chaque semaine en utilisant ce logiciel. Cette donnée sera utilisée sur la page <a href=\"".$urlAboutPage."\" target=\"_blanck\">À propos</a> du site.") ; ?> |
|
|
->hint("Sélectionnez le temps que vous estimez gagner chaque semaine en utilisant ce logiciel. Cette donnée sera utilisée sur la page <a href=\"".$urlAboutPage."\" target=\"_blanck\">À propos</a> du site.") ; ?> |
|
|
<?= $form->field($model, 'option_display_message_new_opendistrib_version') |
|
|
<?= $form->field($model, 'option_display_message_new_opendistrib_version') |
|
|
->dropDownList([ |
|
|
|
|
|
1 => 'Oui', |
|
|
|
|
|
0 => 'Non' |
|
|
|
|
|
], []); ?> |
|
|
|
|
|
|
|
|
->dropDownList(Dropdown::noYesChoices()); ?> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|