Merge branch 'master' into develop
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good

This commit is contained in:
2025-02-27 14:04:35 +01:00
4 changed files with 7 additions and 4 deletions

View File

@@ -68,7 +68,8 @@ public enum IntegryCustomer {
IntegryCustomerDB.Gramm_PrimeOlive,
IntegryCustomerDB.Gramm_ProveStage),
Idrotecnica(IntegryCustomerDB.Idrotecnica_Idrotecnica),
Igood(IntegryCustomerDB.Igood_Igood,
Igood(IntegryCustomerDB.Igood_Aida,
IntegryCustomerDB.Igood_Igood,
IntegryCustomerDB.Igood_ShopService),
Ime(IntegryCustomerDB.Ime_ImeTe),
Integry(IntegryCustomerDB.Integry_Studioml),

View File

@@ -91,6 +91,7 @@ public enum IntegryCustomerDB {
Idrotecnica_Idrotecnica("idrotecnica"),
Igood_Aida("aida"),
Igood_Igood("igood"),
Igood_ShopService("shop_service"),

View File

@@ -1240,12 +1240,13 @@ public class CommonRules extends QueryRules {
}
public static int retrieveNextProgressivoUl(Connection conn, String gestione, LocalDate dataOrd, int numOrd) throws SQLException {
public static int retrieveNextProgressivoUl(Connection conn, String gestione, LocalDate dataOrd, int numOrd, int segno) throws SQLException {
String sql = Query.format("SELECT ISNULL(MAX(progressivo_ul), 0) AS progressivo_ul" +
" FROM " + MtbColt.ENTITY +
" WHERE data_ord = {} AND " +
" num_ord = {} AND " +
" gestione = {}", dataOrd, numOrd, gestione);
" gestione = {} AND "+
" segno = {}", dataOrd, numOrd, gestione, segno);
int maxProgressivoUl = UtilityDB.executeSimpleQueryOnlyFirstRowFirstColumn(conn, sql);
return maxProgressivoUl + 1;

View File

@@ -395,7 +395,7 @@ when
eval(postRulesEnabled)
$mtbColt: MtbColt(operation != OperationType.DELETE && progressivoUl == null && gestione != null && dataOrd != null && numOrd != null)
then
int progressivoToSave = CommonRules.retrieveNextProgressivoUl(conn, $mtbColt.getGestione(), $mtbColt.getDataOrd(), $mtbColt.getNumOrd());
int progressivoToSave = CommonRules.retrieveNextProgressivoUl(conn, $mtbColt.getGestione(), $mtbColt.getDataOrd(), $mtbColt.getNumOrd(), $mtbColt.getSegno());
modify($mtbColt){
setProgressivoUl(progressivoToSave);