Fix minore
This commit is contained in:
parent
878cff67e9
commit
29b4c822c9
|
@ -64,14 +64,17 @@ function completaTrasporto() {
|
|||
}
|
||||
|
||||
// Informazioni sull'importabilità del DDT
|
||||
$stati = $database->fetchArray('SELECT `title` as descrizione FROM `dt_statiddt` LEFT JOIN `dt_statiddt_lang` ON (`dt_statiddt`.`id` = `dt_statiddt_lang`.`id_record` AND `dt_statiddt_lang`.`id_lang` ='.prepare(Models\Locale::getDefault()->id).') WHERE `is_fatturabile` = 1');
|
||||
$stati = $database->fetchArray('SELECT `title` as descrizione FROM `dt_statiddt` LEFT JOIN `dt_statiddt_lang` ON (`dt_statiddt`.`id` = `dt_statiddt_lang`.`id_record` AND `dt_statiddt_lang`.`id_lang` = '.prepare(Models\Locale::getDefault()->id).') WHERE `is_fatturabile` = 1');
|
||||
|
||||
foreach ($stati as $stato) {
|
||||
$stati_importabili[] = $stato['descrizione'];
|
||||
}
|
||||
|
||||
$causali = $database->fetchArray('SELECT `title` FROM `dt_causalet` LEFT JOIN `dt_causalet_lang` ON (`dt_causalet`.`id` = `dt_causalet_lang`.`id_record` AND `dt_causalet_lang`.`id_lang` ='.prepare(Models\Locale::getDefault()->id).') WHERE `is_importabile` = 1');
|
||||
$causali = $database->fetchArray('SELECT `title` FROM `dt_causalet` LEFT JOIN `dt_causalet_lang` ON (`dt_causalet`.`id` = `dt_causalet_lang`.`id_record`
|
||||
AND `dt_causalet_lang`.`id_lang` = '.prepare(Models\Locale::getDefault()->id).') WHERE `is_importabile` = 1');
|
||||
|
||||
foreach ($causali as $causale) {
|
||||
$causali_importabili[] = $causale['name'];
|
||||
$causali_importabili[] = $causale['title'];
|
||||
}
|
||||
|
||||
echo '
|
||||
|
|
Loading…
Reference in New Issue