'type' => Integer::class,
'tab' => __('Chiffres'),
'column' => true,
- 'column_label'=>__('CA'),
+ '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' => ($i >= $currentYear - 2),
//'column' => true,
- 'column_label'=>__('CA').' '.$i,
+ 'column_label' => __('CA') . ' ' . $i,
'read_only' => true]);
}
+
+ $this->addField(['name' => 'c_unpaid',
+ 'label' => __('Impayés'),
+ 'type' => Integer::class,
+ 'tab' => __('Chiffres'),
+ 'column' => true,
+ 'column_label' => __('Impayés'),
+ 'read_only' => true]);
+
+ for ($i = $currentYear; $i >= 2006; $i--) {
+ $this->addField('c_unpaid_' . $i, Integer::class, __('Impayés') . ' ' . $i, ['tab' => __('Impayés'),
+ 'column' => false,
+ 'column_label' => __('Impayés') . ' ' . $i,
+ 'read_only' => true]);
+ }
+
+
$this->addField(['name' => 'e1_ws_signatures',
'type' => 'Hidden']);