aggiunto controllo per vettore obbligatorio
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good
This commit is contained in:
@@ -412,7 +412,16 @@ public class DocumentiDirettiService {
|
||||
boolean fatturaPedaneCliente = UtilityDB.executeSimpleQueryOnlyFirstRowFirstColumn(multiDBTransactionManager.getPrimaryConnection(), sql);
|
||||
|
||||
boolean fatturaVettore = false;
|
||||
if (!UtilityString.isNullOrEmpty(dtbDoct.getIncoterms())) {
|
||||
boolean vettoreObbligatorio = false;
|
||||
if (!UtilityString.isNullOrEmpty(dtbDoct.getMezzo())) {
|
||||
sql =
|
||||
Query.format(
|
||||
"SELECT vettore_obbligatorio FROM gtb_mezzo WHERE mezzo = %s",
|
||||
dtbDoct.getMezzo());
|
||||
vettoreObbligatorio = UtilityDB.executeSimpleQueryOnlyFirstRowFirstColumn(multiDBTransactionManager.getPrimaryConnection(), sql);
|
||||
}
|
||||
|
||||
if (!UtilityString.isNullOrEmpty(dtbDoct.getIncoterms()) && vettoreObbligatorio) {
|
||||
sql =
|
||||
Query.format(
|
||||
"SELECT CAST(IIF(costo=2,1,0) as bit) FROM gtb_porto WHERE porto = %s",
|
||||
|
||||
Reference in New Issue
Block a user