Quellcode durchsuchen

uscita tecnico aggiuntiva

Roberto Santini vor 2 Jahren
Ursprung
Commit
ba1951e0df
1 geänderte Dateien mit 8 neuen und 5 gelöschten Zeilen
  1. 8
    5
      app/Http/Controllers/IssueController.php

+ 8
- 5
app/Http/Controllers/IssueController.php Datei anzeigen

375
               'codice' => 'INT-ORE',
375
               'codice' => 'INT-ORE',
376
               'quantita' => $ore]
376
               'quantita' => $ore]
377
             );
377
             );
378
-            $collectionIssue->push([
379
-              'nome' => "Diritto fisso di uscita - #".$issue->id." - ".$sedeCliente." - ".$data,
380
-              'codice' => 'INT-USC',
381
-              'quantita' => 1]
382
-            );
378
+
379
+            if($tempo->activity_id == Config::getValue(Config::ATTIVITA_ON_SITE)){
380
+              $collectionIssue->push([
381
+                'nome' => "Diritto fisso di uscita - #".$issue->id." - ".$sedeCliente." - ".$data,
382
+                'codice' => 'INT-USC',
383
+                'quantita' => 1]
384
+              );
385
+            }
383
           }
386
           }
384
 
387
 
385
           foreach($tempoImpiegatoRemota as $tempo){
388
           foreach($tempoImpiegatoRemota as $tempo){

Laden…
Abbrechen
Speichern