Explorar o código

entrate - clean up codice

ferrari hai 4 horas
pai
achega
826164c5de
Modificáronse 1 ficheiros con 0 adicións e 26 borrados
  1. 0 26
      app/Http/Livewire/RecordIN.php

+ 0 - 26
app/Http/Livewire/RecordIN.php

@@ -463,32 +463,6 @@ class RecordIN extends Component
                     }
                     $this->rows[0]["when"][$idx]["year"] = $currentYear;
 
-                    // $currentYear  = date('Y');
-                    // $currentMonth = date('n');
-                    //  // L'anno fiscale "corrente" (anno di fine) in base ad oggi
-                    // // Se siamo da Sep(9) a Dec(12), l'FY finisce l'anno prossimo.
-                    // $currentFY = ($currentMonth >= env('FISCAL_YEAR_MONTH_FROM', 1)) ? ($currentYear + 1) : $currentYear;
-
-                    // // Se il mese richiesto è Sep-Dec, appartiene all'FY "successivo" rispetto a Jan-Aug.
-                    // // Rispetto all'FY corrente, i mesi Sep-Dec sono nel "blocco" che può essere
-                    // // dell'anno fiscale corrente o del prossimo, a seconda di dove siamo oggi.
-                    // $requestedIsSepToDec = ($m >= env('FISCAL_YEAR_MONTH_FROM', 1));
-
-                    // // Se oggi siamo Jan-Aug (FY = anno corrente) e chiedi Sep-Dec,
-                    // // allora stai chiedendo l'inizio del prossimo FY.
-                    // if ($currentMonth <= env('FISCAL_YEAR_MONTH_TO', 1) && $requestedIsSepToDec) {
-                    //     $this->rows[0]["when"][$idx]["year"] = $currentFY + 1;
-                    // }
-                    // else {
-                    //     $this->rows[0]["when"][$idx]["year"] = $currentFY;
-                    // }
-
-                    // if ((date("n") + 7) > env('FISCAL_YEAR_MONTH_TO', 1)) { // mese attuale nel primo periodo fiscale [9-12]
-                    //     $this->rows[0]["when"][$idx]["year"] = $m < env('FISCAL_YEAR_MONTH_TO', 1) ? (date("Y") + 1) : date("Y");
-                    // } else { // mese attuale nel secondo periodo fiscale [1-8]
-                    //     $this->rows[0]["when"][$idx]["year"] = $m < env('FISCAL_YEAR_MONTH_TO', 1) ? date("Y") : (date("Y") - 1);
-                    // }
-
                     if ($idx > 0)
                     {
                         if ($this->rows[0]["when"][$idx - 1]["year"] != $this->rows[0]["when"][$idx]["year"])