'tab' => __('Informations')]);
$this->addField(['name' => 'c_ca',
- 'label' => __('Chiffre d\'affaire'),
+ 'label' => __('Chiffre d\'affaire total'),
'type' => Integer::class,
'tab' => __('Chiffres'),
'column' => true,
- 'read_only'=>true]);
+ 'column_label'=>__('CA'),
+ 'read_only' => true]);
+
+ $currentYear = date('Y');
+ for ($i = $currentYear; $i >= 2006; $i--) {
+ $this->addField('c_ca_' . $i, Integer::class, __('Chiffre d\'affaire') . ' ' . $i, ['tab' => __('Chiffres'),
+ 'column' => ($i >= $currentYear - 3),
+ 'column_label'=>__('CA').' '.$i,
+ 'read_only' => true]);
+ }
$this->addField(['name' => 'e1_ws_signatures',
'type' => 'Hidden']);