aggiunto controllo in spedizione in caso di uscita senza collo riferimento

This commit is contained in:
Valerio Castellana 2023-03-14 15:57:18 +01:00
parent 8fe0a1fd07
commit a49ee430e2
2 changed files with 6 additions and 5 deletions

View File

@ -138,7 +138,6 @@ public class PVOrdineAcquistoEditViewModel {
} catch (Exception e) { } catch (Exception e) {
this.sendError(e); this.sendError(e);
BarcodeManager.enable(); BarcodeManager.enable();
} finally {
} }
} }

View File

@ -1240,9 +1240,12 @@ public class SpedizioneViewModel {
return; return;
} }
var clonedSourceMtbColr = (MtbColr) mtbColrToDispatch.clone(); MtbColr clonedSourceMtbColr = null;
clonedSourceMtbColr.setMtbPartitaMag(null) if (mtbColrToDispatch != null) {
.setMtbAart(null); clonedSourceMtbColr = (MtbColr) mtbColrToDispatch.clone();
clonedSourceMtbColr.setMtbPartitaMag(null)
.setMtbAart(null);
}
var clonedTargetMtbColt = (MtbColt) mCurrentMtbColt.clone(); var clonedTargetMtbColt = (MtbColt) mCurrentMtbColt.clone();
clonedTargetMtbColt.setMtbColr(null); clonedTargetMtbColt.setMtbColr(null);
@ -1341,7 +1344,6 @@ public class SpedizioneViewModel {
}, this::sendError); }, this::sendError);
// MtbColt mtbColt = new MtbColt() // MtbColt mtbColt = new MtbColt()
// .setNumCollo(mtbColrToUpdate.getNumCollo()) // .setNumCollo(mtbColrToUpdate.getNumCollo())
// .setDataCollo(mtbColrToUpdate.getDataColloS()) // .setDataCollo(mtbColrToUpdate.getDataColloS())