Browse Source

Correction : modèle heure_limite_commande

master
keun 7 years ago
parent
commit
197ca77ca3
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      common/models/Etablissement.php

+ 1
- 1
common/models/Etablissement.php View File

return [ return [
[['nom', 'siret', 'heure_limite_commande','delai_commande'], 'required'], [['nom', 'siret', 'heure_limite_commande','delai_commande'], 'required'],
[['heure_limite_commande','delai_commande'],'integer'], [['heure_limite_commande','delai_commande'],'integer'],
['heure_limite_commande','in', 'range' => [18, 19, 20, 21, 22, 23, 24]],
['heure_limite_commande','in', 'range' => [8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24]],
['delai_commande','in', 'range' => [1,2,3,4,5,6,7]], ['delai_commande','in', 'range' => [1,2,3,4,5,6,7]],
['code', function($attribute, $params) ['code', function($attribute, $params)
{ {

Loading…
Cancel
Save