]> _ Git - cubedesigners_userdatabase.git/commitdiff
wait #5423
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 2 Sep 2022 17:52:25 +0000 (19:52 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 2 Sep 2022 17:52:25 +0000 (19:52 +0200)
src/app/Models/Company.php

index d8f38d4132237de6a5bbbaca651f29196c54b397..71685daf91e3063e0d7207aa1796b3e762643130 100644 (file)
@@ -98,18 +98,35 @@ class Company extends CubistMagicAbstractModel
             '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']);