Implementate nuove logiche di barcode_ul in rettifica giacenze
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good

This commit is contained in:
2025-04-11 10:51:23 +02:00
parent 24c4935dad
commit 9bb8751e21

View File

@@ -1194,6 +1194,9 @@ public class WMSGenericService {
}
public MtbColr creaRettificaCollo(String codMdep, MtbColr sourceMtbColr, BigDecimal newNumCnf, BigDecimal newQtaCol, boolean createNewCollo, boolean returnRettifica, Boolean shouldCreateMovFiscale) throws Exception {
if(UtilityString.isNullOrEmpty(sourceMtbColr.getBarcodeUlIn()))
throw new MissingDataException("Il barcode UL in input non può essere nullo");
/*
Warning: il campo sourceMtbColr potrebbe non essere una reale mtb_colr ma potrebbe essere la somma delle
qta delle mtb_colr con stesso cod_mart, partita_mag, cod_col, cod_tagl.
@@ -1285,6 +1288,12 @@ public class WMSGenericService {
.setDataCollo(null)
.setSerCollo(null)
.setGestione(null)
.setBarcodeUlIn(sourceMtbColr.getBarcodeUlIn())
.setBarcodeUlOut(null)
.setCodMdepIn(sourceMtbColr.getCodMdepIn())
.setCodMdepOut(null)
.setPosizioneIn(sourceMtbColr.getPosizioneIn())
.setPosizioneOut(null)
.setQtaCol(differenceQtaCol)
.setNumCnf(differenceNumCnf)
.setQtaCnf(qtaCnf)
@@ -1299,7 +1308,7 @@ public class WMSGenericService {
.setGestione("L")
.setSegno(1)
.setCodMdep(codMdep)
.setMtbColr(new ArrayList<MtbColr>());
.setMtbColr(new ArrayList<>());
mtbColtOrphan.setOperation(OperationType.INSERT);
mtbColtOrphan.getMtbColr().add(mtbColrOrphan);
@@ -1366,6 +1375,12 @@ public class WMSGenericService {
.setDataColloRif(sourceMtbColr.getDataCollo())
.setGestioneRif(sourceMtbColr.getGestione())
.setNumColloRif(sourceMtbColr.getNumCollo())
.setBarcodeUlIn(null)
.setBarcodeUlOut(sourceMtbColr.getBarcodeUlIn())
.setCodMdepIn(null)
.setCodMdepOut(sourceMtbColr.getCodMdepIn())
.setPosizioneIn(null)
.setPosizioneOut(sourceMtbColr.getPosizioneIn())
.setPesoNettoKg(null)
.setPesoLordoKg(null)
.setDatetimeRow(UtilityLocalDate.getNowTime());
@@ -1422,6 +1437,12 @@ public class WMSGenericService {
.setDatetimeRow(UtilityLocalDate.getNowTime())
.setPesoNettoKg(null)
.setPesoLordoKg(null)
.setBarcodeUlIn(sourceMtbColr.getBarcodeUlIn())
.setBarcodeUlOut(null)
.setCodMdepIn(sourceMtbColr.getCodMdepIn())
.setCodMdepOut(null)
.setPosizioneIn(sourceMtbColr.getPosizioneIn())
.setPosizioneOut(null)
.setOperation(OperationType.INSERT);
mtbColt.getMtbColr().add(mtbColrToSave);