Finish v1.40.20(437)
This commit is contained in:
commit
e7d06c9752
@ -10,8 +10,8 @@ apply plugin: 'com.google.gms.google-services'
|
|||||||
|
|
||||||
android {
|
android {
|
||||||
|
|
||||||
def appVersionCode = 435
|
def appVersionCode = 437
|
||||||
def appVersionName = '1.40.18'
|
def appVersionName = '1.40.20'
|
||||||
|
|
||||||
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_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_SLASH);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
public String getSerCollo() {
|
public String getSerCollo() {
|
||||||
return serCollo;
|
return serCollo;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user