Compare commits
4 Commits
adc76fe82c
...
1247ff590b
| Author | SHA1 | Date | |
|---|---|---|---|
| 1247ff590b | |||
| 4d5c0e5509 | |||
| 21af5fc0a9 | |||
| 09b984f5d0 |
@@ -100,7 +100,7 @@ public class DBSettingsModel {
|
||||
private boolean flagAccettazioneBollaEditableQtaTot = true;
|
||||
private boolean flagViewSwitchDepoButton = true;
|
||||
private boolean flagProduzioneSkipAskVersamentoAutomatico;
|
||||
|
||||
private boolean flagAccettazioneViewLotto = false;
|
||||
public boolean isFlagSpedizioneEnableFakeGiacenza() {
|
||||
return flagSpedizioneEnableFakeGiacenza;
|
||||
}
|
||||
@@ -843,4 +843,13 @@ public class DBSettingsModel {
|
||||
this.flagProduzioneSkipAskVersamentoAutomatico = flagProduzioneSkipAskVersamentoAutomatico;
|
||||
return this;
|
||||
}
|
||||
|
||||
public boolean isFlagAccettazioneViewLotto() {
|
||||
return flagAccettazioneViewLotto;
|
||||
}
|
||||
|
||||
public DBSettingsModel setFlagAccettazioneViewLotto(boolean flagAccettazioneViewLotto) {
|
||||
this.flagAccettazioneViewLotto = flagAccettazioneViewLotto;
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -254,6 +254,11 @@ public class SettingsManager {
|
||||
.setSection("ACCETTAZIONE")
|
||||
.setKeySection("FLAG_DELETE_ROW_ON_CLOSE")
|
||||
.setSetter(dbSettingsModelIstance::setFlagAccettazioneDeleteRowOnClose));
|
||||
stbGestSetupReaderList.add(new StbGestSetupReader<>(Boolean.class)
|
||||
.setGestName("PICKING")
|
||||
.setSection("ACCETTAZIONE")
|
||||
.setKeySection("FLAG_VIEW_LOTTO")
|
||||
.setSetter(dbSettingsModelIstance::setFlagAccettazioneViewLotto));
|
||||
stbGestSetupReaderList.add(new StbGestSetupReader<>(Boolean.class)
|
||||
.setGestName("PICKING")
|
||||
.setSection("SPEDIZIONE")
|
||||
|
||||
@@ -98,6 +98,9 @@ public class SitArtOrdDTO {
|
||||
@SerializedName("dataCons")
|
||||
private LocalDateTime dataCons;
|
||||
|
||||
@SerializedName("partitaMag")
|
||||
private String partitaMag;
|
||||
|
||||
public String getDescrizioneEstesaOrd() {
|
||||
return descrizioneEstesaOrd;
|
||||
}
|
||||
@@ -362,4 +365,13 @@ public class SitArtOrdDTO {
|
||||
this.dataCons = dataCons;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getPartitaMag() {
|
||||
return partitaMag;
|
||||
}
|
||||
|
||||
public SitArtOrdDTO setPartitaMag(String partitaMag) {
|
||||
this.partitaMag = partitaMag;
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -568,6 +568,9 @@ public class AccettazioneOrdiniPickingViewModel {
|
||||
dataScad = dataScad.plusDays(pickingObjectDTO.getMtbAart().getGgScadPartita());
|
||||
}
|
||||
|
||||
if (partitaMag == null && SettingsManager.iDB().isFlagAccettazioneViewLotto())
|
||||
partitaMag = pickingObjectDTO.getSitArtOrdDTO().getPartitaMag();
|
||||
|
||||
if (partitaMag == null && dataScad == null) {
|
||||
HistoryMtbAartDTO historyMtbAartDTO = this.getHistoryItemIfExists(pickingObjectDTO.getMtbAart().getCodMart());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user