Unités de ventes strictes (ENUM) et paramètre back office d'application modification de la directive fmt_sellunit pour prise en compte du paramètre Gestion en objet date de la date de livraison pour export commande capacité de rotation daily des logs (pour LOG_CHANNEL=stackProd)
36 lines
654 B
PHP
36 lines
654 B
PHP
<?php
|
|
|
|
namespace App\Enums;
|
|
|
|
use Kwaadpepper\Enum\BaseEnum;
|
|
|
|
/**
|
|
* @method static self pce()
|
|
* @method static self kgm()
|
|
* @method static self colis()
|
|
*/
|
|
final class SellUnit extends BaseEnum
|
|
{
|
|
protected static function values(): array
|
|
{
|
|
return [
|
|
'pce' => 'PCE',
|
|
'kgm' => 'KGM',
|
|
'colis' => 'COLIS',
|
|
];
|
|
}
|
|
|
|
protected static function labels(): array
|
|
{
|
|
return [
|
|
'pce' => __('Pièce'),
|
|
'kgm' => __('Kg'),
|
|
'colis' => __('Colis'),
|
|
];
|
|
}
|
|
|
|
public function __toString(): string
|
|
{
|
|
return (string)$this->label;
|
|
}
|
|
}
|