Finish v1.36.03(396)
This commit is contained in:
commit
95bc3031df
@ -10,8 +10,8 @@ apply plugin: 'com.google.gms.google-services'
|
|||||||
|
|
||||||
android {
|
android {
|
||||||
|
|
||||||
def appVersionCode = 394
|
def appVersionCode = 396
|
||||||
def appVersionName = '1.36.01'
|
def appVersionName = '1.36.03'
|
||||||
|
|
||||||
signingConfigs {
|
signingConfigs {
|
||||||
release {
|
release {
|
||||||
|
|||||||
@ -13,6 +13,7 @@ import javax.inject.Singleton;
|
|||||||
import it.integry.integrywmsnative.core.expansion.RunnableArgs;
|
import it.integry.integrywmsnative.core.expansion.RunnableArgs;
|
||||||
import it.integry.integrywmsnative.core.model.JtbComt;
|
import it.integry.integrywmsnative.core.model.JtbComt;
|
||||||
import it.integry.integrywmsnative.core.utility.UtilityQuery;
|
import it.integry.integrywmsnative.core.utility.UtilityQuery;
|
||||||
|
import it.integry.integrywmsnative.core.utility.UtilityString;
|
||||||
|
|
||||||
@Singleton
|
@Singleton
|
||||||
public class CommessaRESTConsumer extends _BaseRESTConsumer {
|
public class CommessaRESTConsumer extends _BaseRESTConsumer {
|
||||||
@ -26,6 +27,8 @@ public class CommessaRESTConsumer extends _BaseRESTConsumer {
|
|||||||
|
|
||||||
public void getJtbComts(List<String> itemsToFind, RunnableArgs<List<JtbComt>> onComplete, RunnableArgs<Exception> onFailed) {
|
public void getJtbComts(List<String> itemsToFind, RunnableArgs<List<JtbComt>> onComplete, RunnableArgs<Exception> onFailed) {
|
||||||
var whereCondMap = Stream.of(itemsToFind)
|
var whereCondMap = Stream.of(itemsToFind)
|
||||||
|
.withoutNulls()
|
||||||
|
.filter(x -> !UtilityString.isNullOrEmpty(x))
|
||||||
.map(x -> {
|
.map(x -> {
|
||||||
HashMap<String, Object> vars = new HashMap<>();
|
HashMap<String, Object> vars = new HashMap<>();
|
||||||
vars.put("cod_jcom", x);
|
vars.put("cod_jcom", x);
|
||||||
@ -33,6 +36,11 @@ public class CommessaRESTConsumer extends _BaseRESTConsumer {
|
|||||||
})
|
})
|
||||||
.toList();
|
.toList();
|
||||||
|
|
||||||
|
if(whereCondMap.isEmpty()) {
|
||||||
|
onComplete.run(new ArrayList<>());
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
var whereCond = " WHERE " + UtilityQuery.concatFieldListInWhereCond(whereCondMap);
|
var whereCond = " WHERE " + UtilityQuery.concatFieldListInWhereCond(whereCondMap);
|
||||||
|
|
||||||
Type typeOfObjectsList = new TypeToken<ArrayList<JtbComt>>() {}.getType();
|
Type typeOfObjectsList = new TypeToken<ArrayList<JtbComt>>() {}.getType();
|
||||||
|
|||||||
@ -371,11 +371,23 @@ public class AccettazioneOrdiniPickingViewModel {
|
|||||||
this.sendOnInfoAggiuntiveRequest((additionalNotes, tCol) -> {
|
this.sendOnInfoAggiuntiveRequest((additionalNotes, tCol) -> {
|
||||||
|
|
||||||
final List<CreateUDCRequestOrderDTO> orders = Stream.of(this.mOrders)
|
final List<CreateUDCRequestOrderDTO> orders = Stream.of(this.mOrders)
|
||||||
.map(x -> new CreateUDCRequestOrderDTO()
|
.map(x -> {
|
||||||
.setDataCons(x.getDataConsD() != null ? UtilityDate.toLocalDate(x.getDataConsD()) : null)
|
final CreateUDCRequestOrderDTO createUDCRequestOrderDTO = new CreateUDCRequestOrderDTO()
|
||||||
.setDataOrd(UtilityDate.toLocalDate(x.getDataD()))
|
.setDataCons(x.getDataConsD() != null ? UtilityDate.toLocalDate(x.getDataConsD()) : null)
|
||||||
.setGestione(x.getGestioneEnum() == GestioneEnum.PRODUZIONE ? GestioneEnum.LAVORAZIONE.getText() : x.getGestione())
|
.setDataOrd(UtilityDate.toLocalDate(x.getDataD()))
|
||||||
.setNumOrd(x.getNumero()))
|
.setNumOrd(x.getNumero());
|
||||||
|
|
||||||
|
if(x.getGestioneEnum() == GestioneEnum.PRODUZIONE) {
|
||||||
|
if(x.isOrdTrasf())
|
||||||
|
createUDCRequestOrderDTO.setGestione(GestioneEnum.ACQUISTO.getText());
|
||||||
|
else
|
||||||
|
createUDCRequestOrderDTO.setGestione(GestioneEnum.LAVORAZIONE.getText());
|
||||||
|
} else {
|
||||||
|
createUDCRequestOrderDTO.setGestione(x.getGestione());
|
||||||
|
}
|
||||||
|
|
||||||
|
return createUDCRequestOrderDTO;
|
||||||
|
})
|
||||||
.toList();
|
.toList();
|
||||||
|
|
||||||
final CreateUDCRequestDTO createUDCRequestDTO = new CreateUDCRequestDTO()
|
final CreateUDCRequestDTO createUDCRequestDTO = new CreateUDCRequestDTO()
|
||||||
|
|||||||
@ -65,7 +65,7 @@ public class DialogSelectDocInfoViewModel extends ViewModel {
|
|||||||
if (val.getGestioneDoc().equalsIgnoreCase("T")) {
|
if (val.getGestioneDoc().equalsIgnoreCase("T")) {
|
||||||
return forn.getTipoAnag().equalsIgnoreCase("D") &&
|
return forn.getTipoAnag().equalsIgnoreCase("D") &&
|
||||||
forn.getGestioneAnag().equalsIgnoreCase(
|
forn.getGestioneAnag().equalsIgnoreCase(
|
||||||
val.getGestione().equalsIgnoreCase("V") ? "V" : "A"
|
val.getGestione().equalsIgnoreCase("V") ? "V" : "L"
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
return forn.getTipoAnag().equalsIgnoreCase("F");
|
return forn.getTipoAnag().equalsIgnoreCase("F");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user