mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-03-09 15:50:14 +01:00
fix: fatturazione da bulk documenti
This commit is contained in:
parent
00bb47da2b
commit
aaad74415b
@ -53,7 +53,7 @@ switch (post('op')) {
|
||||
// Informazioni della fattura
|
||||
$tipo_documento = Tipo::where('id', post('idtipodocumento'))->first();
|
||||
|
||||
$stato_documenti_accodabili = Stato::where('name', 'Bozza')->first()->id;
|
||||
$stato_documenti_accodabili = Stato::where('name', 'Bozza')->first();
|
||||
$accodare = post('accodare');
|
||||
|
||||
$data = date('Y-m-d');
|
||||
@ -89,12 +89,12 @@ switch (post('op')) {
|
||||
$fattura = Fattura::where('idanagrafica', $id_anagrafica)
|
||||
->where('idstatodocumento', $stato_documenti_accodabili->id)
|
||||
->where('idtipodocumento', $tipo_documento->id)
|
||||
->where('idsede', $id_sede)
|
||||
->first();
|
||||
} else {
|
||||
$fattura = Fattura::where('idanagrafica', $id_anagrafica)
|
||||
->where('idstatodocumento', $stato_documenti_accodabili->id)
|
||||
->where('idtipodocumento', $tipo_standard->id)
|
||||
->where('idsede', $id_sede)
|
||||
->where('idtipodocumento', $tipo_documento->id)
|
||||
->first();
|
||||
}
|
||||
|
||||
|
@ -56,7 +56,7 @@ switch (post('op')) {
|
||||
// Informazioni della fattura
|
||||
$tipo_documento = Tipo::where('id', post('idtipodocumento'))->first();
|
||||
|
||||
$stato_documenti_accodabili = Stato::where('name', 'Bozza')->first()->id;
|
||||
$stato_documenti_accodabili = Stato::where('name', 'Bozza')->first();
|
||||
$accodare = post('accodare');
|
||||
|
||||
$data = date('Y-m-d');
|
||||
@ -94,7 +94,7 @@ switch (post('op')) {
|
||||
} else {
|
||||
$fattura = Fattura::where('idanagrafica', $id_anagrafica)
|
||||
->where('idstatodocumento', $stato_documenti_accodabili->id)
|
||||
->where('idtipodocumento', $tipo_standard->id)
|
||||
->where('idtipodocumento', $tipo_documento->id)
|
||||
->first();
|
||||
}
|
||||
|
||||
|
@ -50,7 +50,7 @@ switch (post('op')) {
|
||||
|
||||
$tipo_documento = TipoFattura::where('id', post('idtipodocumento'))->first();
|
||||
|
||||
$stato_documenti_accodabili = Stato::where('name', 'Bozza')->first()->id;
|
||||
$stato_documenti_accodabili = Stato::where('name', 'Bozza')->first();
|
||||
$accodare = post('accodare');
|
||||
|
||||
$data = date('Y-m-d');
|
||||
@ -84,12 +84,12 @@ switch (post('op')) {
|
||||
$fattura = Fattura::where('idanagrafica', $id_anagrafica)
|
||||
->where('idstatodocumento', $stato_documenti_accodabili->id)
|
||||
->where('idtipodocumento', $tipo_documento->id)
|
||||
->where('idsede', $id_sede)
|
||||
->first();
|
||||
} else {
|
||||
$fattura = Fattura::where('idanagrafica', $id_anagrafica)
|
||||
->where('idstatodocumento', $stato_documenti_accodabili->id)
|
||||
->where('idtipodocumento', $tipo_standard->id)
|
||||
->where('idsede', $id_sede)
|
||||
->where('idtipodocumento', $tipo_documento->id)
|
||||
->first();
|
||||
}
|
||||
|
||||
|
@ -48,7 +48,7 @@ switch (post('op')) {
|
||||
// Informazioni della fattura
|
||||
$tipo_documento = Tipo::where('id', post('idtipodocumento'))->first();
|
||||
|
||||
$stato_documenti_accodabili = StatoFattura::where('name', 'Bozza')->first()->id;
|
||||
$stato_documenti_accodabili = StatoFattura::where('name', 'Bozza')->first();
|
||||
$accodare = post('accodare');
|
||||
|
||||
$data = date('Y-m-d');
|
||||
@ -85,12 +85,12 @@ switch (post('op')) {
|
||||
$fattura = Fattura::where('idanagrafica', $id_anagrafica)
|
||||
->where('idstatodocumento', $stato_documenti_accodabili->id)
|
||||
->where('idtipodocumento', $tipo_documento->id)
|
||||
->where('idsede', $id_sede)
|
||||
->first();
|
||||
} else {
|
||||
$fattura = Fattura::where('idanagrafica', $id_anagrafica)
|
||||
->where('idstatodocumento', $stato_documenti_accodabili->id)
|
||||
->where('idtipodocumento', $tipo_standard->id)
|
||||
->where('idsede', $id_sede)
|
||||
->where('idtipodocumento', $tipo_documento->id)
|
||||
->first();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user