File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5353 // Informazioni della fattura
5454 $ tipo_documento = Tipo::where ('id ' , post ('idtipodocumento ' ))->first ();
5555
56- $ stato_documenti_accodabili = Stato::where ('name ' , 'Bozza ' )->first ()-> id ;
56+ $ stato_documenti_accodabili = Stato::where ('name ' , 'Bozza ' )->first ();
5757 $ accodare = post ('accodare ' );
5858
5959 $ data = date ('Y-m-d ' );
8989 $ fattura = Fattura::where ('idanagrafica ' , $ id_anagrafica )
9090 ->where ('idstatodocumento ' , $ stato_documenti_accodabili ->id )
9191 ->where ('idtipodocumento ' , $ tipo_documento ->id )
92+ ->where ('idsede ' , $ id_sede )
9293 ->first ();
9394 } else {
9495 $ fattura = Fattura::where ('idanagrafica ' , $ id_anagrafica )
9596 ->where ('idstatodocumento ' , $ stato_documenti_accodabili ->id )
96- ->where ('idtipodocumento ' , $ tipo_standard ->id )
97- ->where ('idsede ' , $ id_sede )
97+ ->where ('idtipodocumento ' , $ tipo_documento ->id )
9898 ->first ();
9999 }
100100
Original file line number Diff line number Diff line change 5656 // Informazioni della fattura
5757 $ tipo_documento = Tipo::where ('id ' , post ('idtipodocumento ' ))->first ();
5858
59- $ stato_documenti_accodabili = Stato::where ('name ' , 'Bozza ' )->first ()-> id ;
59+ $ stato_documenti_accodabili = Stato::where ('name ' , 'Bozza ' )->first ();
6060 $ accodare = post ('accodare ' );
6161
6262 $ data = date ('Y-m-d ' );
9494 } else {
9595 $ fattura = Fattura::where ('idanagrafica ' , $ id_anagrafica )
9696 ->where ('idstatodocumento ' , $ stato_documenti_accodabili ->id )
97- ->where ('idtipodocumento ' , $ tipo_standard ->id )
97+ ->where ('idtipodocumento ' , $ tipo_documento ->id )
9898 ->first ();
9999 }
100100
Original file line number Diff line number Diff line change 5050
5151 $ tipo_documento = TipoFattura::where ('id ' , post ('idtipodocumento ' ))->first ();
5252
53- $ stato_documenti_accodabili = Stato::where ('name ' , 'Bozza ' )->first ()-> id ;
53+ $ stato_documenti_accodabili = Stato::where ('name ' , 'Bozza ' )->first ();
5454 $ accodare = post ('accodare ' );
5555
5656 $ data = date ('Y-m-d ' );
8484 $ fattura = Fattura::where ('idanagrafica ' , $ id_anagrafica )
8585 ->where ('idstatodocumento ' , $ stato_documenti_accodabili ->id )
8686 ->where ('idtipodocumento ' , $ tipo_documento ->id )
87+ ->where ('idsede ' , $ id_sede )
8788 ->first ();
8889 } else {
8990 $ fattura = Fattura::where ('idanagrafica ' , $ id_anagrafica )
9091 ->where ('idstatodocumento ' , $ stato_documenti_accodabili ->id )
91- ->where ('idtipodocumento ' , $ tipo_standard ->id )
92- ->where ('idsede ' , $ id_sede )
92+ ->where ('idtipodocumento ' , $ tipo_documento ->id )
9393 ->first ();
9494 }
9595
Original file line number Diff line number Diff line change 4848 // Informazioni della fattura
4949 $ tipo_documento = Tipo::where ('id ' , post ('idtipodocumento ' ))->first ();
5050
51- $ stato_documenti_accodabili = StatoFattura::where ('name ' , 'Bozza ' )->first ()-> id ;
51+ $ stato_documenti_accodabili = StatoFattura::where ('name ' , 'Bozza ' )->first ();
5252 $ accodare = post ('accodare ' );
5353
5454 $ data = date ('Y-m-d ' );
8585 $ fattura = Fattura::where ('idanagrafica ' , $ id_anagrafica )
8686 ->where ('idstatodocumento ' , $ stato_documenti_accodabili ->id )
8787 ->where ('idtipodocumento ' , $ tipo_documento ->id )
88+ ->where ('idsede ' , $ id_sede )
8889 ->first ();
8990 } else {
9091 $ fattura = Fattura::where ('idanagrafica ' , $ id_anagrafica )
9192 ->where ('idstatodocumento ' , $ stato_documenti_accodabili ->id )
92- ->where ('idtipodocumento ' , $ tipo_standard ->id )
93- ->where ('idsede ' , $ id_sede )
93+ ->where ('idtipodocumento ' , $ tipo_documento ->id )
9494 ->first ();
9595 }
9696
You can’t perform that action at this time.
0 commit comments