Bladeren bron

modifiche

Roberto Santini 1 week geleden
bovenliggende
commit
2190e2426e
1 gewijzigde bestanden met toevoegingen van 3 en 3 verwijderingen
  1. 3
    3
      app/Models/ContrattoServizio.php

+ 3
- 3
app/Models/ContrattoServizio.php Bestand weergeven

@@ -313,13 +313,13 @@ class ContrattoServizio extends \App\Models\AbstractModels\AbstractContrattoServ
313 313
             $this->todos()->delete();
314 314
         }
315 315
 
316
-        $template = ContrattoTemplate::with('contrattoTemplateTodos')->find($this->contratto_template_id);
316
+        $template = ContrattoTemplate::with('todos')->find($this->contratto_template_id);
317 317
         if (! $template) {
318 318
             return 0;
319 319
         }
320 320
 
321 321
         $count = 0;
322
-        foreach ($template->contrattoTemplateTodos as $todo) {
322
+        foreach ($template->todos as $todo) {
323 323
             if (! $todo->attivo) {
324 324
                 continue;
325 325
             }
@@ -364,7 +364,7 @@ class ContrattoServizio extends \App\Models\AbstractModels\AbstractContrattoServ
364 364
             $this->righe()->delete();
365 365
         }
366 366
 
367
-        $template = ContrattoTemplate::with('contrattoTemplateRigas.prodotto')->find($this->contratto_template_id);
367
+        $template = ContrattoTemplate::with('righe.prodotto')->find($this->contratto_template_id);
368 368
         if (! $template) {
369 369
             return 0;
370 370
         }

Laden…
Annuleren
Opslaan