Finish v1.40.19(436)
This commit is contained in:
commit
ece434806f
3
.idea/deploymentTargetSelector.xml
generated
3
.idea/deploymentTargetSelector.xml
generated
@ -2,9 +2,6 @@
|
|||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="deploymentTargetSelector">
|
<component name="deploymentTargetSelector">
|
||||||
<selectionStates>
|
<selectionStates>
|
||||||
<SelectionState runConfigName="Prod_Android.WMS.app">
|
|
||||||
<option name="selectionMode" value="DROPDOWN" />
|
|
||||||
</SelectionState>
|
|
||||||
<SelectionState runConfigName="app">
|
<SelectionState runConfigName="app">
|
||||||
<option name="selectionMode" value="DROPDOWN" />
|
<option name="selectionMode" value="DROPDOWN" />
|
||||||
</SelectionState>
|
</SelectionState>
|
||||||
|
|||||||
2
.idea/runConfigurations/app.xml
generated
2
.idea/runConfigurations/app.xml
generated
@ -1,6 +1,6 @@
|
|||||||
<component name="ProjectRunConfigurationManager">
|
<component name="ProjectRunConfigurationManager">
|
||||||
<configuration default="false" name="app" type="AndroidRunConfigurationType" factoryName="Android App">
|
<configuration default="false" name="app" type="AndroidRunConfigurationType" factoryName="Android App">
|
||||||
<module name="WMS_Native.app.main" />
|
<module name="WMS.app.main" />
|
||||||
<option name="DEPLOY" value="true" />
|
<option name="DEPLOY" value="true" />
|
||||||
<option name="DEPLOY_APK_FROM_BUNDLE" value="false" />
|
<option name="DEPLOY_APK_FROM_BUNDLE" value="false" />
|
||||||
<option name="DEPLOY_AS_INSTANT" value="false" />
|
<option name="DEPLOY_AS_INSTANT" value="false" />
|
||||||
|
|||||||
@ -10,8 +10,8 @@ apply plugin: 'com.google.gms.google-services'
|
|||||||
|
|
||||||
android {
|
android {
|
||||||
|
|
||||||
def appVersionCode = 434
|
def appVersionCode = 436
|
||||||
def appVersionName = '1.40.17'
|
def appVersionName = '1.40.19'
|
||||||
|
|
||||||
signingConfigs {
|
signingConfigs {
|
||||||
release {
|
release {
|
||||||
|
|||||||
@ -261,6 +261,11 @@ public class MtbColr extends EntityBase {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MtbColr setDataColloRif(LocalDate dataColloRif) {
|
||||||
|
this.dataColloRif = UtilityDate.formatDate(dataColloRif, UtilityDate.COMMONS_DATE_FORMATS.DMY_TIME_SLASH);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
public BigDecimal getQtaCnf() {
|
public BigDecimal getQtaCnf() {
|
||||||
return qtaCnf;
|
return qtaCnf;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -10,6 +10,7 @@ import com.annimon.stream.Stream;
|
|||||||
import org.jetbrains.annotations.Nullable;
|
import org.jetbrains.annotations.Nullable;
|
||||||
|
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
|
import java.time.LocalDate;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@ -170,6 +171,11 @@ public class MtbColt extends EntityBase {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MtbColt setDataCollo(LocalDate dataCollo) {
|
||||||
|
this.dataCollo = UtilityDate.formatDate(dataCollo, UtilityDate.COMMONS_DATE_FORMATS.DMY_TIME_SLASH);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
public String getSerCollo() {
|
public String getSerCollo() {
|
||||||
return serCollo;
|
return serCollo;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -29,8 +29,11 @@ public class ArtDTO {
|
|||||||
private LocalDate dataScad;
|
private LocalDate dataScad;
|
||||||
|
|
||||||
private String systemNote;
|
private String systemNote;
|
||||||
|
|
||||||
private String codAlis;
|
private String codAlis;
|
||||||
|
|
||||||
|
private Date datetimeRow;
|
||||||
|
|
||||||
public Integer getRigaOrd() {
|
public Integer getRigaOrd() {
|
||||||
return rigaOrd;
|
return rigaOrd;
|
||||||
}
|
}
|
||||||
@ -135,4 +138,13 @@ public class ArtDTO {
|
|||||||
this.codAlis = codAlis;
|
this.codAlis = codAlis;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public Date getDatetimeRow() {
|
||||||
|
return datetimeRow;
|
||||||
|
}
|
||||||
|
|
||||||
|
public ArtDTO setDatetimeRow(Date datetimeRow) {
|
||||||
|
this.datetimeRow = datetimeRow;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -240,6 +240,7 @@ public class DocInterniEditFormViewModel {
|
|||||||
artDto.setBarcode(row.getCodBarre());
|
artDto.setBarcode(row.getCodBarre());
|
||||||
artDto.setQta(BigDecimal.valueOf(row.getQtaCol()));
|
artDto.setQta(BigDecimal.valueOf(row.getQtaCol()));
|
||||||
artDto.setDataIns(row.getDataCollo());
|
artDto.setDataIns(row.getDataCollo());
|
||||||
|
artDto.setDatetimeRow(row.getDatetimeRow());
|
||||||
artDto.setColli(BigDecimal.valueOf(row.getNumCnf()));
|
artDto.setColli(BigDecimal.valueOf(row.getNumCnf()));
|
||||||
artDto.setUntMis(row.getUntMis());
|
artDto.setUntMis(row.getUntMis());
|
||||||
artDto.setCodMart(row.getCodMart());
|
artDto.setCodMart(row.getCodMart());
|
||||||
|
|||||||
@ -90,7 +90,7 @@ public class LoginViewModel {
|
|||||||
this.mSystemRESTConsumer.getAvailableCodMdeps(availableCodMdeps -> {
|
this.mSystemRESTConsumer.getAvailableCodMdeps(availableCodMdeps -> {
|
||||||
SettingsManager.iDB().setAvailableCodMdep(availableCodMdeps);
|
SettingsManager.iDB().setAvailableCodMdep(availableCodMdeps);
|
||||||
|
|
||||||
if (availableCodMdeps == null || availableCodMdeps.size() == 0) {
|
if (availableCodMdeps == null || availableCodMdeps.isEmpty()) {
|
||||||
this.sendError(new InvalidUserDepositException());
|
this.sendError(new InvalidUserDepositException());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -3,13 +3,12 @@ package it.integry.integrywmsnative.gest.prod_recupero_materiale;
|
|||||||
import androidx.databinding.ObservableArrayList;
|
import androidx.databinding.ObservableArrayList;
|
||||||
import androidx.lifecycle.MutableLiveData;
|
import androidx.lifecycle.MutableLiveData;
|
||||||
|
|
||||||
import com.annimon.stream.Stream;
|
|
||||||
|
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import java.math.RoundingMode;
|
import java.math.RoundingMode;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
import javax.inject.Inject;
|
import javax.inject.Inject;
|
||||||
|
|
||||||
@ -93,14 +92,14 @@ public class ProdRecuperoMaterialeViewModel {
|
|||||||
|
|
||||||
|
|
||||||
private HistoryVersamentoProdULDTO getHistoryElementFromMtbColt(MtbColt mtbColt) {
|
private HistoryVersamentoProdULDTO getHistoryElementFromMtbColt(MtbColt mtbColt) {
|
||||||
List<HistoryVersamentoProdULDTO> filteredItems = Stream.of(this.mUlList.getValue())
|
List<HistoryVersamentoProdULDTO> filteredItems = this.mUlList.getValue().stream()
|
||||||
.filter(x -> Objects.equals(x.getNumColloRif(), mtbColt.getNumCollo()) &&
|
.filter(x -> Objects.equals(x.getNumColloRif(), mtbColt.getNumCollo()) &&
|
||||||
x.getDataColloRif().equals(mtbColt.getDataColloS()) &&
|
x.getDataColloRif().equals(UtilityDate.toLocalDate(mtbColt.getDataColloD())) &&
|
||||||
x.getSerColloRif().equalsIgnoreCase(mtbColt.getSerCollo()) &&
|
x.getSerColloRif().equalsIgnoreCase(mtbColt.getSerCollo()) &&
|
||||||
x.getGestioneRif().equalsIgnoreCase(mtbColt.getGestione()))
|
x.getGestioneRif().equalsIgnoreCase(mtbColt.getGestione()))
|
||||||
.toList();
|
.collect(Collectors.toList());
|
||||||
|
|
||||||
if (filteredItems != null && filteredItems.size() > 0) {
|
if (!filteredItems.isEmpty()) {
|
||||||
return filteredItems.get(0);
|
return filteredItems.get(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2,6 +2,7 @@ package it.integry.integrywmsnative.gest.prod_recupero_materiale.dto;
|
|||||||
|
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import java.math.RoundingMode;
|
import java.math.RoundingMode;
|
||||||
|
import java.time.LocalDate;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@ -11,7 +12,7 @@ import it.integry.integrywmsnative.core.utility.UtilityBigDecimal;
|
|||||||
public class HistoryVersamentoProdULDTO {
|
public class HistoryVersamentoProdULDTO {
|
||||||
|
|
||||||
private String gestione;
|
private String gestione;
|
||||||
private String dataCollo;
|
private LocalDate dataCollo;
|
||||||
private String serCollo;
|
private String serCollo;
|
||||||
private Integer numCollo;
|
private Integer numCollo;
|
||||||
private String segno;
|
private String segno;
|
||||||
@ -28,7 +29,7 @@ public class HistoryVersamentoProdULDTO {
|
|||||||
private String descrizioneArt;
|
private String descrizioneArt;
|
||||||
private String untMis;
|
private String untMis;
|
||||||
private String gestioneRif;
|
private String gestioneRif;
|
||||||
private String dataColloRif;
|
private LocalDate dataColloRif;
|
||||||
private String serColloRif;
|
private String serColloRif;
|
||||||
private Integer numColloRif;
|
private Integer numColloRif;
|
||||||
|
|
||||||
@ -50,11 +51,11 @@ public class HistoryVersamentoProdULDTO {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDataCollo() {
|
public LocalDate getDataCollo() {
|
||||||
return dataCollo;
|
return dataCollo;
|
||||||
}
|
}
|
||||||
|
|
||||||
public HistoryVersamentoProdULDTO setDataCollo(String dataCollo) {
|
public HistoryVersamentoProdULDTO setDataCollo(LocalDate dataCollo) {
|
||||||
this.dataCollo = dataCollo;
|
this.dataCollo = dataCollo;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -203,11 +204,11 @@ public class HistoryVersamentoProdULDTO {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDataColloRif() {
|
public LocalDate getDataColloRif() {
|
||||||
return dataColloRif;
|
return dataColloRif;
|
||||||
}
|
}
|
||||||
|
|
||||||
public HistoryVersamentoProdULDTO setDataColloRif(String dataColloRif) {
|
public HistoryVersamentoProdULDTO setDataColloRif(LocalDate dataColloRif) {
|
||||||
this.dataColloRif = dataColloRif;
|
this.dataColloRif = dataColloRif;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,16 +1,16 @@
|
|||||||
package it.integry.integrywmsnative.gest.prod_recupero_materiale.dto;
|
package it.integry.integrywmsnative.gest.prod_recupero_materiale.dto;
|
||||||
|
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
|
import java.time.LocalDate;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
import it.integry.integrywmsnative.core.model.MtbAart;
|
|
||||||
import it.integry.integrywmsnative.core.utility.UtilityDate;
|
import it.integry.integrywmsnative.core.utility.UtilityDate;
|
||||||
|
|
||||||
public class HistoryVersamentoProdULRestDTO {
|
public class HistoryVersamentoProdULRestDTO {
|
||||||
|
|
||||||
|
|
||||||
private String gestione;
|
private String gestione;
|
||||||
private String dataCollo;
|
private LocalDate dataCollo;
|
||||||
private String serCollo;
|
private String serCollo;
|
||||||
private Integer numCollo;
|
private Integer numCollo;
|
||||||
private String segno;
|
private String segno;
|
||||||
@ -27,7 +27,7 @@ public class HistoryVersamentoProdULRestDTO {
|
|||||||
private String descrizioneArt;
|
private String descrizioneArt;
|
||||||
private String untMis;
|
private String untMis;
|
||||||
private String gestioneRif;
|
private String gestioneRif;
|
||||||
private String dataColloRif;
|
private LocalDate dataColloRif;
|
||||||
private String serColloRif;
|
private String serColloRif;
|
||||||
private Integer numColloRif;
|
private Integer numColloRif;
|
||||||
|
|
||||||
@ -55,11 +55,11 @@ public class HistoryVersamentoProdULRestDTO {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDataCollo() {
|
public LocalDate getDataCollo() {
|
||||||
return dataCollo;
|
return dataCollo;
|
||||||
}
|
}
|
||||||
|
|
||||||
public HistoryVersamentoProdULRestDTO setDataCollo(String dataCollo) {
|
public HistoryVersamentoProdULRestDTO setDataCollo(LocalDate dataCollo) {
|
||||||
this.dataCollo = dataCollo;
|
this.dataCollo = dataCollo;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -208,11 +208,11 @@ public class HistoryVersamentoProdULRestDTO {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDataColloRif() {
|
public LocalDate getDataColloRif() {
|
||||||
return dataColloRif;
|
return dataColloRif;
|
||||||
}
|
}
|
||||||
|
|
||||||
public HistoryVersamentoProdULRestDTO setDataColloRif(String dataColloRif) {
|
public HistoryVersamentoProdULRestDTO setDataColloRif(LocalDate dataColloRif) {
|
||||||
this.dataColloRif = dataColloRif;
|
this.dataColloRif = dataColloRif;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -264,7 +264,7 @@ public class ProdRecuperMaterialeRESTConsumer extends _BaseRESTConsumer {
|
|||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
if (newUlList.size() > 0) {
|
if (!newUlList.isEmpty()) {
|
||||||
List<String> codMarts = Stream.of(newUlList)
|
List<String> codMarts = Stream.of(newUlList)
|
||||||
.map(HistoryVersamentoProdULDTO::getCodMart)
|
.map(HistoryVersamentoProdULDTO::getCodMart)
|
||||||
.withoutNulls()
|
.withoutNulls()
|
||||||
|
|||||||
@ -167,8 +167,8 @@ public class RettificaGiacenzeViewModel {
|
|||||||
this.mArticoloRESTConsumer.searchByBarcode(barcodeProd, mtbAartList -> {
|
this.mArticoloRESTConsumer.searchByBarcode(barcodeProd, mtbAartList -> {
|
||||||
if (onComplete != null) onComplete.run();
|
if (onComplete != null) onComplete.run();
|
||||||
|
|
||||||
if (mtbAartList != null && mtbAartList.size() > 0) {
|
if (mtbAartList != null && !mtbAartList.isEmpty()) {
|
||||||
this.dispatchArts(mtbAartList);
|
this.dispatchArts(mtbAartList, pickData);
|
||||||
} else {
|
} else {
|
||||||
this.sendError(new NoResultFromBarcodeException(barcodeProd));
|
this.sendError(new NoResultFromBarcodeException(barcodeProd));
|
||||||
}
|
}
|
||||||
@ -189,7 +189,7 @@ public class RettificaGiacenzeViewModel {
|
|||||||
.map(x -> (MtbAart) x.getMtbAart())
|
.map(x -> (MtbAart) x.getMtbAart())
|
||||||
.toList();
|
.toList();
|
||||||
|
|
||||||
dispatchArts(mtbAarts);
|
dispatchArts(mtbAarts, null);
|
||||||
}, this::sendError);
|
}, this::sendError);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -199,14 +199,13 @@ public class RettificaGiacenzeViewModel {
|
|||||||
mRettificaGiacenzeRESTConsumer.searchArtInt(queryText, listaArts -> {
|
mRettificaGiacenzeRESTConsumer.searchArtInt(queryText, listaArts -> {
|
||||||
this.sendOnLoadingEnded();
|
this.sendOnLoadingEnded();
|
||||||
|
|
||||||
dispatchArts(listaArts);
|
dispatchArts(listaArts, null);
|
||||||
|
|
||||||
if (onComplete != null) onComplete.run();
|
if (onComplete != null) onComplete.run();
|
||||||
}, this::sendError);
|
}, this::sendError);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void dispatchArts(List<MtbAart> artsList, PickDataDTO pickData) {
|
||||||
private void dispatchArts(List<MtbAart> artsList) {
|
|
||||||
if (artsList == null || artsList.size() == 0) {
|
if (artsList == null || artsList.size() == 0) {
|
||||||
this.sendError(new NoArtsFoundException());
|
this.sendError(new NoArtsFoundException());
|
||||||
return;
|
return;
|
||||||
@ -219,7 +218,7 @@ public class RettificaGiacenzeViewModel {
|
|||||||
.toList();
|
.toList();
|
||||||
|
|
||||||
if (matchRows.size() != 1) {
|
if (matchRows.size() != 1) {
|
||||||
dispatchArt(mtbAart, null);
|
dispatchArt(mtbAart, pickData);
|
||||||
} else {
|
} else {
|
||||||
dispatchRowEdit(matchRows.get(0));
|
dispatchRowEdit(matchRows.get(0));
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user