浏览代码

Ajout de l'option credit_functioning dans la gestion des points de vente

dev
父节点
当前提交
6b25c3b6df
共有 3 个文件被更改,包括 14 次插入1 次删除
  1. +7
    -0
      backend/views/point-sale/_form.php
  2. +2
    -1
      common/models/PointSale.php
  3. +5
    -0
      common/models/Producer.php

+ 7
- 0
backend/views/point-sale/_form.php 查看文件

@@ -68,6 +68,13 @@ use common\models\Producer ;
.$addHintCredit);
?>
<?= $form->field($model, 'credit_functioning')
->dropDownList([
'' => 'Paramètres globaux ('.Producer::$creditFunctioningArray[Producer::getConfig('credit_functioning')].')',
Producer::CREDIT_FUNCTIONING_OPTIONAL => 'Optionnelle',
Producer::CREDIT_FUNCTIONING_MANDATORY => 'Obligatoire',
], []) ; ?>

<div id="delivery-days">
<h2>Jours de livraison</h2>

+ 2
- 1
common/models/PointSale.php 查看文件

@@ -80,7 +80,7 @@ class PointSale extends ActiveRecordCommon
[['name', 'code'], 'string', 'max' => 255],
[['address', 'locality', 'infos_monday', 'infos_tuesday',
'infos_wednesday', 'infos_thursday', 'infos_friday',
'infos_saturday', 'infos_sunday'], 'string'],
'infos_saturday', 'infos_sunday','credit_functioning'], 'string'],
[['point_production', 'credit', 'delivery_monday', 'delivery_tuesday',
'delivery_wednesday', 'delivery_thursday', 'delivery_friday',
'delivery_saturday', 'delivery_sunday'], 'boolean'],
@@ -119,6 +119,7 @@ class PointSale extends ActiveRecordCommon
'delivery_saturday' => 'Samedi',
'delivery_sunday' => 'Dimanche',
'code' => 'Code',
'credit_functioning' => 'Utilisation du Crédit par l\'utilisateur'
];
}


+ 5
- 0
common/models/Producer.php 查看文件

@@ -66,6 +66,11 @@ class Producer extends ActiveRecordCommon
const CREDIT_FUNCTIONING_MANDATORY = 'mandatory' ;
const CREDIT_FUNCTIONING_OPTIONAL = 'optional' ;
public static $creditFunctioningArray = [
self::CREDIT_FUNCTIONING_MANDATORY => 'Obligatoire',
self::CREDIT_FUNCTIONING_OPTIONAL => 'Optionnelle',
];
var $secret_key_payplug ;
/**

正在加载...
取消
保存