mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-03 17:27:29 +01:00
Aggiunta gestione fatturazione in bulk raggruppata per sede
This commit is contained in:
parent
87f91d4ab2
commit
c8ceb36dc8
@ -57,6 +57,7 @@ switch (post('op')) {
|
||||
|
||||
$data = date('Y-m-d');
|
||||
$id_segment = post('id_segment');
|
||||
$raggruppamento = post('raggruppamento');
|
||||
|
||||
// Lettura righe selezionate
|
||||
foreach ($id_records as $id) {
|
||||
@ -74,16 +75,31 @@ switch (post('op')) {
|
||||
++$numero_totale;
|
||||
|
||||
// Ricerca fattura per anagrafica tra le registrate
|
||||
$fattura = $documenti->first(function ($item, $key) use ($id_anagrafica) {
|
||||
return $item->anagrafica->id == $id_anagrafica;
|
||||
});
|
||||
$id_sede = $raggruppamento == 'sede' ? $documento_import->idsede : 0;
|
||||
if ($raggruppamento == 'sede') {
|
||||
$fattura = $documenti->first(function ($item, $key) use ($id_anagrafica, $id_sede) {
|
||||
return $item->anagrafica->id == $id_anagrafica && $item->idsede_destinazione == $id_sede;
|
||||
});
|
||||
} else {
|
||||
$fattura = $documenti->first(function ($item, $key) use ($id_anagrafica) {
|
||||
return $item->anagrafica->id == $id_anagrafica ;
|
||||
});
|
||||
}
|
||||
|
||||
// Ricerca fattura per anagrafica se l'impostazione di accodamento è selezionata
|
||||
if (!empty($accodare) && empty($fattura)) {
|
||||
$fattura = Fattura::where('idanagrafica', $id_anagrafica)
|
||||
->where('idstatodocumento', $stato_documenti_accodabili->id)
|
||||
->where('idtipodocumento', $tipo_documento->id)
|
||||
->first();
|
||||
if ($raggruppamento == 'sede') {
|
||||
$fattura = Fattura::where('idanagrafica', $id_anagrafica)
|
||||
->where('idstatodocumento', $stato_documenti_accodabili->id)
|
||||
->where('idtipodocumento', $tipo_documento->id)
|
||||
->first();
|
||||
} else {
|
||||
$fattura = Fattura::where('idanagrafica', $id_anagrafica)
|
||||
->where('idstatodocumento', $stato_documenti_accodabili->id)
|
||||
->where('idtipodocumento', $tipo_standard->id)
|
||||
->where('idsede', $id_sede)
|
||||
->first();
|
||||
}
|
||||
|
||||
if (!empty($fattura)) {
|
||||
$documenti->push($fattura);
|
||||
@ -93,6 +109,8 @@ switch (post('op')) {
|
||||
// Creazione fattura per anagrafica
|
||||
if (empty($fattura)) {
|
||||
$fattura = Fattura::build($anagrafica, $tipo_documento, $data, $id_segment);
|
||||
$fattura->idsede_destinazione = $id_sede;
|
||||
$fattura->save();
|
||||
$documenti->push($fattura);
|
||||
}
|
||||
|
||||
@ -253,7 +271,8 @@ $operations['crea_fattura'] = [
|
||||
'title' => tr('Fatturare i _TYPE_ selezionati?', ['_TYPE_' => strtolower($module['name'])]),
|
||||
'msg' => '{[ "type": "checkbox", "label": "<small>'.tr('Aggiungere alle fatture di vendita non ancora emesse?').'</small>", "placeholder": "'.tr('Aggiungere alle fatture esistenti non ancora emesse?').'", "name": "accodare" ]}<br>
|
||||
{[ "type": "select", "label": "'.tr('Sezionale').'", "name": "id_segment", "required": 1, "ajax-source": "segmenti", "select-options": '.json_encode(['id_module' => $id_fatture, 'is_sezionale' => 1]).', "value": "'.$id_segment.'", "select-options-escape": true ]}<br>
|
||||
{[ "type": "select", "label": "'.tr('Tipo documento').'", "name": "idtipodocumento", "required": 1, "values": "query=SELECT id, CONCAT(codice_tipo_documento_fe, \' - \', descrizione) AS descrizione FROM co_tipidocumento WHERE enabled = 1 AND dir =\'entrata\' ORDER BY codice_tipo_documento_fe", "value": "'.$idtipodocumento.'" ]}',
|
||||
{[ "type": "select", "label": "'.tr('Tipo documento').'", "name": "idtipodocumento", "required": 1, "values": "query=SELECT id, CONCAT(codice_tipo_documento_fe, \' - \', descrizione) AS descrizione FROM co_tipidocumento WHERE enabled = 1 AND dir =\'entrata\' ORDER BY codice_tipo_documento_fe", "value": "'.$idtipodocumento.'" ]}<br>
|
||||
{[ "type": "select", "label": "'.tr('Raggruppa per').'", "name": "raggruppamento", "required": 1, "values": "list=\"cliente\":\"Cliente\",\"sede\":\"Sede\"" ]}',
|
||||
'button' => tr('Procedi'),
|
||||
'class' => 'btn btn-lg btn-warning',
|
||||
'blank' => false,
|
||||
|
@ -59,6 +59,7 @@ switch (post('op')) {
|
||||
|
||||
$data = date('Y-m-d');
|
||||
$id_segment = post('id_segment');
|
||||
$raggruppamento = post('raggruppamento');
|
||||
|
||||
// Lettura righe selezionate
|
||||
foreach ($id_records as $id) {
|
||||
@ -73,16 +74,31 @@ switch (post('op')) {
|
||||
++$numero_totale;
|
||||
|
||||
// Ricerca fattura per anagrafica tra le registrate
|
||||
$fattura = $documenti->first(function ($item, $key) use ($id_anagrafica) {
|
||||
return $item->anagrafica->id == $id_anagrafica;
|
||||
});
|
||||
$id_sede = $raggruppamento == 'sede' ? $documento_import->idsede_destinazione : 0;
|
||||
if ($raggruppamento == 'sede') {
|
||||
$fattura = $documenti->first(function ($item, $key) use ($id_anagrafica, $id_sede) {
|
||||
return $item->anagrafica->id == $id_anagrafica && $item->idsede_destinazione == $id_sede;
|
||||
});
|
||||
} else {
|
||||
$fattura = $documenti->first(function ($item, $key) use ($id_anagrafica) {
|
||||
return $item->anagrafica->id == $id_anagrafica ;
|
||||
});
|
||||
}
|
||||
|
||||
// Ricerca fattura per anagrafica se l'impostazione di accodamento è selezionata
|
||||
if (!empty($accodare) && empty($fattura)) {
|
||||
$fattura = Fattura::where('idanagrafica', $id_anagrafica)
|
||||
->where('idstatodocumento', $stato_documenti_accodabili->id)
|
||||
->where('idtipodocumento', $tipo_documento->id)
|
||||
->first();
|
||||
if ($raggruppamento == 'sede') {
|
||||
$fattura = Fattura::where('idanagrafica', $id_anagrafica)
|
||||
->where('idstatodocumento', $stato_documenti_accodabili->id)
|
||||
->where('idtipodocumento', $tipo_documento->id)
|
||||
->first();
|
||||
} else {
|
||||
$fattura = Fattura::where('idanagrafica', $id_anagrafica)
|
||||
->where('idstatodocumento', $stato_documenti_accodabili->id)
|
||||
->where('idtipodocumento', $tipo_standard->id)
|
||||
->where('idsede_destinazione', $id_sede)
|
||||
->first();
|
||||
}
|
||||
|
||||
if (!empty($fattura)) {
|
||||
$documenti->push($fattura);
|
||||
@ -92,12 +108,11 @@ switch (post('op')) {
|
||||
// Creazione fattura per anagrafica
|
||||
if (empty($fattura)) {
|
||||
$fattura = Fattura::build($anagrafica, $tipo_documento, $data, $id_segment);
|
||||
$fattura->idsede_destinazione = $id_sede;
|
||||
$fattura->save();
|
||||
$documenti->push($fattura);
|
||||
}
|
||||
|
||||
$fattura->idsede_destinazione = $documento_import->idsede_destinazione;
|
||||
$fattura->save();
|
||||
|
||||
// Inserimento righe
|
||||
foreach ($righe as $riga) {
|
||||
$qta = $riga->qta_rimanente;
|
||||
@ -183,7 +198,8 @@ $operations['crea_fattura'] = [
|
||||
'title' => tr('Fatturare i _TYPE_ selezionati?', ['_TYPE_' => strtolower($module['name'])]),
|
||||
'msg' => '{[ "type": "checkbox", "label": "<small>'.tr('Aggiungere alle _TYPE_ non ancora emesse?', ['_TYPE_' => strtolower($module_fatture)]).'", "placeholder": "'.tr('Aggiungere alle _TYPE_ nello stato bozza?', ['_TYPE_' => strtolower($module_fatture)]).'</small>", "name": "accodare" ]}<br>
|
||||
{[ "type": "select", "label": "'.tr('Sezionale').'", "name": "id_segment", "required": 1, "ajax-source": "segmenti", "select-options": '.json_encode(['id_module' => $id_fatture, 'is_sezionale' => 1]).', "value": "'.$id_segment.'", "select-options-escape": true ]}<br>
|
||||
{[ "type": "select", "label": "'.tr('Tipo documento').'", "name": "idtipodocumento", "required": 1, "values": "query=SELECT id, CONCAT(codice_tipo_documento_fe, \' - \', descrizione) AS descrizione FROM co_tipidocumento WHERE enabled = 1 AND dir ='.prepare($dir).' ORDER BY codice_tipo_documento_fe", "value": "'.$idtipodocumento.'" ]}',
|
||||
{[ "type": "select", "label": "'.tr('Tipo documento').'", "name": "idtipodocumento", "required": 1, "values": "query=SELECT id, CONCAT(codice_tipo_documento_fe, \' - \', descrizione) AS descrizione FROM co_tipidocumento WHERE enabled = 1 AND dir ='.prepare($dir).' ORDER BY codice_tipo_documento_fe", "value": "'.$idtipodocumento.'" ]}<br>
|
||||
{[ "type": "select", "label": "'.tr('Raggruppa per').'", "name": "raggruppamento", "required": 1, "values": "list=\"cliente\":\"Cliente\",\"sede\":\"Sede\"" ]}',
|
||||
'button' => tr('Procedi'),
|
||||
'class' => 'btn btn-lg btn-warning',
|
||||
'blank' => false,
|
||||
|
@ -92,6 +92,7 @@ switch (post('op')) {
|
||||
|
||||
$accodare = post('accodare');
|
||||
$id_segment = post('id_segment');
|
||||
$raggruppamento = post('raggruppamento');
|
||||
|
||||
$where = '';
|
||||
// Lettura interventi non collegati a preventivi, ordini e contratti
|
||||
@ -115,7 +116,8 @@ switch (post('op')) {
|
||||
$id_anagrafica = $intervento['idanagrafica'];
|
||||
}
|
||||
|
||||
$id_documento = $id_documento_cliente[$id_anagrafica];
|
||||
$idsede_destinazione = $raggruppamento == 'sede' ? $intervento['idsede_destinazione'] : 0;
|
||||
$id_documento = $id_documento_cliente[$id_anagrafica][$idsede_destinazione];
|
||||
|
||||
$anagrafica = Anagrafica::find($id_anagrafica);
|
||||
$id_iva = $anagrafica->idiva_vendite ?: setting('Iva predefinita');
|
||||
@ -123,7 +125,8 @@ switch (post('op')) {
|
||||
// Se non c'è già una fattura appena creata per questo cliente, creo una fattura nuova
|
||||
if (empty($id_documento)) {
|
||||
if (!empty($accodare)) {
|
||||
$documento = $dbo->fetchOne('SELECT co_documenti.id FROM co_documenti INNER JOIN co_statidocumento ON co_documenti.idstatodocumento = co_statidocumento.id INNER JOIN co_tipidocumento ON co_tipidocumento.id = co_documenti.idtipodocumento INNER JOIN zz_segments ON zz_segments.id = co_documenti.id_segment WHERE co_statidocumento.descrizione = "Bozza" AND co_documenti.idanagrafica = '.prepare($id_anagrafica).' AND co_tipidocumento.id='.prepare($tipo_documento['id']).' AND co_documenti.id_segment = '.prepare($id_segment));
|
||||
$where = $raggruppamento == 'sede' ? ' AND idsede_destinazione = '.prepare($intervento['idsede_destinazione']) : '';
|
||||
$documento = $dbo->fetchOne('SELECT co_documenti.id FROM co_documenti INNER JOIN co_statidocumento ON co_documenti.idstatodocumento = co_statidocumento.id INNER JOIN co_tipidocumento ON co_tipidocumento.id = co_documenti.idtipodocumento INNER JOIN zz_segments ON zz_segments.id = co_documenti.id_segment WHERE co_statidocumento.descrizione = "Bozza" AND co_documenti.idanagrafica = '.prepare($id_anagrafica).' AND co_tipidocumento.id='.prepare($tipo_documento['id']).' AND co_documenti.id_segment = '.prepare($id_segment).$where);
|
||||
|
||||
$id_documento = $documento['id'];
|
||||
$id_documento_cliente[$id_anagrafica] = $id_documento;
|
||||
@ -131,9 +134,11 @@ switch (post('op')) {
|
||||
|
||||
if (empty($id_documento)) {
|
||||
$fattura = Fattura::build($anagrafica, $tipo_documento, $data, $id_segment);
|
||||
$fattura->idsede_destinazione = $idsede_destinazione;
|
||||
$fattura->save();
|
||||
|
||||
$id_documento = $fattura->id;
|
||||
$id_documento_cliente[$id_anagrafica] = $id_documento;
|
||||
$id_documento_cliente[$id_anagrafica][$idsede_destinazione] = $id_documento;
|
||||
}
|
||||
}
|
||||
|
||||
@ -384,7 +389,8 @@ $operations['crea_fattura'] = [
|
||||
'title' => tr('Fatturare gli _TYPE_ selezionati?', ['_TYPE_' => strtolower($module['name'])]).' <small><i class="fa fa-question-circle-o tip" title="'.tr('Verranno fatturati solo gli interventi completati non collegati a contratti o preventivi').'."></i></small>',
|
||||
'msg' => '{[ "type": "checkbox", "label": "<small>'.tr('Aggiungere alle fatture di vendita non ancora emesse?').'</small>", "placeholder": "'.tr('Aggiungere alle fatture di vendita nello stato bozza?').'", "name": "accodare" ]}<br>
|
||||
{[ "type": "select", "label": "'.tr('Sezionale').'", "name": "id_segment", "required": 1, "ajax-source": "segmenti", "select-options": '.json_encode(['id_module' => $id_fatture, 'is_sezionale' => 1]).', "value": "'.$id_segment.'", "select-options-escape": true ]}<br>
|
||||
{[ "type": "select", "label": "'.tr('Tipo documento').'", "name": "idtipodocumento", "required": 1, "values": "query=SELECT id, CONCAT(codice_tipo_documento_fe, \' - \', descrizione) AS descrizione FROM co_tipidocumento WHERE enabled = 1 AND dir =\'entrata\' ORDER BY codice_tipo_documento_fe", "value": "'.$idtipodocumento.'" ]}',
|
||||
{[ "type": "select", "label": "'.tr('Tipo documento').'", "name": "idtipodocumento", "required": 1, "values": "query=SELECT id, CONCAT(codice_tipo_documento_fe, \' - \', descrizione) AS descrizione FROM co_tipidocumento WHERE enabled = 1 AND dir =\'entrata\' ORDER BY codice_tipo_documento_fe", "value": "'.$idtipodocumento.'" ]}<br>
|
||||
{[ "type": "select", "label": "'.tr('Raggruppa per').'", "name": "raggruppamento", "required": 1, "values": "list=\"cliente\":\"Cliente\",\"sede\":\"Sede\"" ]}',
|
||||
'button' => tr('Procedi'),
|
||||
'class' => 'btn btn-lg btn-warning',
|
||||
'blank' => false,
|
||||
|
@ -55,6 +55,7 @@ switch (post('op')) {
|
||||
|
||||
$data = date('Y-m-d');
|
||||
$id_segment = post('id_segment');
|
||||
$raggruppamento = post('raggruppamento');
|
||||
|
||||
// Lettura righe selezionate
|
||||
foreach ($id_records as $id) {
|
||||
@ -69,17 +70,32 @@ switch (post('op')) {
|
||||
if (!empty($righe)) {
|
||||
++$numero_totale;
|
||||
|
||||
// Ricerca fattura per anagrafica tra le registrate
|
||||
$fattura = $documenti->first(function ($item, $key) use ($id_anagrafica) {
|
||||
return $item->anagrafica->id == $id_anagrafica;
|
||||
});
|
||||
// Ricerca fattura per anagrafica tra le registrate
|
||||
$id_sede = $raggruppamento == 'sede' ? $documento_import->idsede : 0;
|
||||
if ($raggruppamento == 'sede') {
|
||||
$fattura = $documenti->first(function ($item, $key) use ($id_anagrafica, $id_sede) {
|
||||
return $item->anagrafica->id == $id_anagrafica && $item->idsede_destinazione == $id_sede;
|
||||
});
|
||||
} else {
|
||||
$fattura = $documenti->first(function ($item, $key) use ($id_anagrafica) {
|
||||
return $item->anagrafica->id == $id_anagrafica ;
|
||||
});
|
||||
}
|
||||
|
||||
// Ricerca fattura per anagrafica se l'impostazione di accodamento è selezionata
|
||||
if (!empty($accodare) && empty($fattura)) {
|
||||
$fattura = Fattura::where('idanagrafica', $id_anagrafica)
|
||||
->where('idstatodocumento', $stato_documenti_accodabili->id)
|
||||
->where('idtipodocumento', $tipo_documento->id)
|
||||
->first();
|
||||
if ($raggruppamento == 'sede') {
|
||||
$fattura = Fattura::where('idanagrafica', $id_anagrafica)
|
||||
->where('idstatodocumento', $stato_documenti_accodabili->id)
|
||||
->where('idtipodocumento', $tipo_documento->id)
|
||||
->first();
|
||||
} else {
|
||||
$fattura = Fattura::where('idanagrafica', $id_anagrafica)
|
||||
->where('idstatodocumento', $stato_documenti_accodabili->id)
|
||||
->where('idtipodocumento', $tipo_standard->id)
|
||||
->where('idsede', $id_sede)
|
||||
->first();
|
||||
}
|
||||
|
||||
if (!empty($fattura)) {
|
||||
$documenti->push($fattura);
|
||||
@ -89,6 +105,8 @@ switch (post('op')) {
|
||||
// Creazione fattura per anagrafica
|
||||
if (empty($fattura)) {
|
||||
$fattura = Fattura::build($anagrafica, $tipo_documento, $data, $id_segment);
|
||||
$fattura->idsede_destinazione = $id_sede;
|
||||
$fattura->save();
|
||||
$documenti->push($fattura);
|
||||
}
|
||||
|
||||
@ -202,7 +220,8 @@ if ($module['name'] == 'Ordini cliente') {
|
||||
'title' => tr('Fatturare i _TYPE_ selezionati?', ['_TYPE_' => strtolower($module['name'])]),
|
||||
'msg' => '{[ "type": "checkbox", "label": "<small>'.tr('Aggiungere alle _TYPE_ non ancora emesse?', ['_TYPE_' => strtolower($module_fatture)]).'", "placeholder": "'.tr('Aggiungere alle _TYPE_ nello stato bozza?', ['_TYPE_' => strtolower($module_fatture)]).'</small>", "name": "accodare" ]}
|
||||
{[ "type": "select", "label": "'.tr('Sezionale').'", "name": "id_segment", "required": 1, "ajax-source": "segmenti", "select-options": '.json_encode(['id_module' => $id_fatture, 'is_sezionale' => 1]).', "value": "'.$id_segment.'", "select-options-escape": true ]}
|
||||
{[ "type": "select", "label": "'.tr('Tipo documento').'", "name": "idtipodocumento", "required": 1, "values": "query=SELECT id, CONCAT(codice_tipo_documento_fe, \' - \', descrizione) AS descrizione FROM co_tipidocumento WHERE enabled = 1 AND dir =\'entrata\' ORDER BY codice_tipo_documento_fe", "value": "'.$idtipodocumento.'" ]}',
|
||||
{[ "type": "select", "label": "'.tr('Tipo documento').'", "name": "idtipodocumento", "required": 1, "values": "query=SELECT id, CONCAT(codice_tipo_documento_fe, \' - \', descrizione) AS descrizione FROM co_tipidocumento WHERE enabled = 1 AND dir =\'entrata\' ORDER BY codice_tipo_documento_fe", "value": "'.$idtipodocumento.'" ]}<br>
|
||||
{[ "type": "select", "label": "'.tr('Raggruppa per').'", "name": "raggruppamento", "required": 1, "values": "list=\"cliente\":\"Cliente\",\"sede\":\"Sede\"" ]}',
|
||||
'button' => tr('Procedi'),
|
||||
'class' => 'btn btn-lg btn-warning',
|
||||
'blank' => false,
|
||||
|
@ -54,6 +54,7 @@ switch (post('op')) {
|
||||
$data = date('Y-m-d');
|
||||
$id_segment = post('id_segment');
|
||||
$idconto = setting('Conto predefinito fatture di vendita');
|
||||
$raggruppamento = post('raggruppamento');
|
||||
|
||||
// Lettura righe selezionate
|
||||
foreach ($id_records as $id) {
|
||||
@ -71,16 +72,31 @@ switch (post('op')) {
|
||||
++$numero_totale;
|
||||
|
||||
// Ricerca fattura per anagrafica tra le registrate
|
||||
$fattura = $documenti->first(function ($item, $key) use ($id_anagrafica) {
|
||||
return $item->anagrafica->id == $id_anagrafica;
|
||||
});
|
||||
$id_sede = $raggruppamento == 'sede' ? $documento_import->idsede : 0;
|
||||
if ($raggruppamento == 'sede') {
|
||||
$fattura = $documenti->first(function ($item, $key) use ($id_anagrafica, $id_sede) {
|
||||
return $item->anagrafica->id == $id_anagrafica && $item->idsede_destinazione == $id_sede;
|
||||
});
|
||||
} else {
|
||||
$fattura = $documenti->first(function ($item, $key) use ($id_anagrafica) {
|
||||
return $item->anagrafica->id == $id_anagrafica ;
|
||||
});
|
||||
}
|
||||
|
||||
// Ricerca fattura per anagrafica se l'impostazione di accodamento è selezionata
|
||||
if (!empty($accodare) && empty($fattura)) {
|
||||
$fattura = Fattura::where('idanagrafica', $id_anagrafica)
|
||||
->where('idstatodocumento', $stato_documenti_accodabili->id)
|
||||
->where('idtipodocumento', $tipo_documento->id)
|
||||
->first();
|
||||
if ($raggruppamento == 'sede') {
|
||||
$fattura = Fattura::where('idanagrafica', $id_anagrafica)
|
||||
->where('idstatodocumento', $stato_documenti_accodabili->id)
|
||||
->where('idtipodocumento', $tipo_documento->id)
|
||||
->first();
|
||||
} else {
|
||||
$fattura = Fattura::where('idanagrafica', $id_anagrafica)
|
||||
->where('idstatodocumento', $stato_documenti_accodabili->id)
|
||||
->where('idtipodocumento', $tipo_standard->id)
|
||||
->where('idsede', $id_sede)
|
||||
->first();
|
||||
}
|
||||
|
||||
if (!empty($fattura)) {
|
||||
$documenti->push($fattura);
|
||||
@ -90,6 +106,8 @@ switch (post('op')) {
|
||||
// Creazione fattura per anagrafica
|
||||
if (empty($fattura)) {
|
||||
$fattura = Fattura::build($anagrafica, $tipo_documento, $data, $id_segment);
|
||||
$fattura->idsede_destinazione = $id_sede;
|
||||
$fattura->save();
|
||||
$documenti->push($fattura);
|
||||
}
|
||||
|
||||
@ -156,7 +174,8 @@ $operations['crea_fattura'] = [
|
||||
'data' => [
|
||||
'title' => tr('Fatturare i _TYPE_ selezionati?', ['_TYPE_' => strtolower($module['name'])]),
|
||||
'msg' => '{[ "type": "checkbox", "label": "<small>'.tr('Aggiungere alle fatture di vendita non ancora emesse?').'</small>", "placeholder": "'.tr('Aggiungere alle fatture di vendita nello stato bozza?').'", "name": "accodare" ]}<br>{[ "type": "select", "label": "'.tr('Sezionale').'", "name": "id_segment", "required": 1, "values": "query=SELECT id, name AS descrizione FROM zz_segments WHERE id_module=\''.$id_fatture.'\' ORDER BY name", "value": "'.$id_segment.'" ]}<br>
|
||||
{[ "type": "select", "label": "'.tr('Tipo documento').'", "name": "idtipodocumento", "required": 1, "values": "query=SELECT id, CONCAT(codice_tipo_documento_fe, \' - \', descrizione) AS descrizione FROM co_tipidocumento WHERE enabled = 1 AND dir =\'entrata\' ORDER BY codice_tipo_documento_fe", "value": "'.$idtipodocumento.'" ]}',
|
||||
{[ "type": "select", "label": "'.tr('Tipo documento').'", "name": "idtipodocumento", "required": 1, "values": "query=SELECT id, CONCAT(codice_tipo_documento_fe, \' - \', descrizione) AS descrizione FROM co_tipidocumento WHERE enabled = 1 AND dir =\'entrata\' ORDER BY codice_tipo_documento_fe", "value": "'.$idtipodocumento.'" ]}<br>
|
||||
{[ "type": "select", "label": "'.tr('Raggruppa per').'", "name": "raggruppamento", "required": 1, "values": "list=\"cliente\":\"Cliente\",\"sede\":\"Sede\"" ]}',
|
||||
'button' => tr('Procedi'),
|
||||
'class' => 'btn btn-lg btn-warning',
|
||||
'blank' => false,
|
||||
|
Loading…
x
Reference in New Issue
Block a user