Compare commits

...

6 Commits

Author SHA1 Message Date
1c9d9bfc8f Merge branch 'feature/RefactoringGestioneColli' into master-beta
Some checks failed
WMS - Android (New)/pipeline/head There was a failure building this commit
2025-12-09 16:17:26 +01:00
3614192ea9 Merge branch 'develop' into feature/RefactoringGestioneColli 2025-12-09 16:15:51 +01:00
4d01a52590 Finish v1.50.01(550) 2025-12-09 16:15:28 +01:00
638e8650ee Finish v1.50.01(550)
Some checks failed
WMS - Android (New)/pipeline/head There was a failure building this commit
2025-12-09 16:15:27 +01:00
36061faeeb -> v1.50.01 (550) 2025-12-09 16:15:19 +01:00
83a183c5a6 Fix chiudiUl accettazioneOrdine 2025-12-09 16:14:21 +01:00
5 changed files with 29 additions and 14 deletions

View File

@@ -11,8 +11,8 @@ apply plugin: 'com.google.gms.google-services'
android {
def appVersionCode = 549
def appVersionName = '1.50.00'
def appVersionCode = 550
def appVersionName = '1.50.01'
signingConfigs {
release {

View File

@@ -817,7 +817,13 @@ public class AccettazioneOrdiniPickingActivity extends BaseActivity implements A
this.mViewModel.resetMatchedRows();
return;
}
PickedQuantityDTO pickedQuantityDTO = new PickedQuantityDTO().setNumCnf(resultDTO.getNumCnf()).setQtaCnf(resultDTO.getQtaCnf()).setQtaTot(resultDTO.getQtaTot()).setPartitaMag(resultDTO.getPartitaMag()).setDataScad(resultDTO.getDataScad());
PickedQuantityDTO pickedQuantityDTO = new PickedQuantityDTO()
.setNumCnf(resultDTO.getNumCnf())
.setQtaCnf(resultDTO.getQtaCnf())
.setQtaTot(resultDTO.getQtaTot())
.setPartitaMag(resultDTO.getPartitaMag())
.setDataScad(resultDTO.getDataScad())
.setShouldCloseLu(resultDTO.isShouldCloseLu());
onComplete.run(pickedQuantityDTO, pickedQuantityDTO.isShouldCloseLu());
})
.show(getSupportFragmentManager(), "tag");

View File

@@ -13,7 +13,9 @@ import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.atomic.AtomicReference;
import java.util.stream.Collectors;
import javax.inject.Inject;
@@ -767,22 +769,24 @@ public class AccettazioneOrdiniPickingViewModel {
if (!shouldDelete)
return;
this.sendOnLoadingStarted();
this.sendOnLoadingStarted();
var deleteUDCRowRequest = new DeleteUDCRowRequestDTO()
.setMtbColrToDelete(mtbColrToDelete);
var deleteUDCRowRequest = new DeleteUDCRowRequestDTO()
.setMtbColrToDelete(mtbColrToDelete);
this.mColliCaricoRESTConsumer.deleteUDCRow(deleteUDCRowRequest,
() -> {
Optional<PickingObjectDTO> pickingObjectDTO = Stream.of(this.mPickingList.getValue())
.filter(x -> Stream.of(x.getWithdrawMtbColrs()).anyMatch(y -> y == mtbColrToDelete))
.findSingle();
this.mColliCaricoRESTConsumer.deleteUDCRow(deleteUDCRowRequest,
() -> {
Optional<PickingObjectDTO> pickingObjectDTO = Stream.of(this.mPickingList.getValue())
.filter(x -> Stream.of(x.getWithdrawMtbColrs()).anyMatch(y -> y == mtbColrToDelete))
.findSingle();
if (pickingObjectDTO.isPresent()) {
pickingObjectDTO.get().getWithdrawMtbColrs().remove(mtbColrToDelete);
}
if (pickingObjectDTO.isPresent()) {
pickingObjectDTO.get().getWithdrawMtbColrs().remove(mtbColrToDelete);
}
handler.post(() -> {
this.mCurrentMtbColt.getMtbColr().remove(mtbColrToDelete);
});
this.resetMatchedRows();
this.sendOnRowSaved();

View File

@@ -54,6 +54,8 @@ public class ListaBancaliViewModel {
}
public List<MtbColt> fillMtbColtWithMtbColr(List<MtbColt> mtbColts, boolean onlyResiduo) throws Exception {
if (mtbColts == null || mtbColts.isEmpty()) return mtbColts;
List<String> ssccList = mtbColts.stream()
.map(MtbColt::getBarcodeUl)
.collect(Collectors.toUnmodifiableList());

View File

@@ -9,6 +9,8 @@
<import type="it.integry.integrywmsnative.core.utility.data.UntMisUtils" />
<import type="it.integry.integrywmsnative.core.utility.data.MtbColrUtils" />
<import type="android.view.View" />
<variable
name="item"
type="it.integry.integrywmsnative.core.model.MtbColr" />
@@ -52,6 +54,7 @@
android:layout_marginStart="6dp"
android:clickable="false"
android:focusable="false"
android:visibility="@{item.getPartitaMag() != null ? View.VISIBLE : View.GONE}"
app:layout_constraintBaseline_toBaselineOf="@id/articolo_textview"
app:layout_constraintStart_toEndOf="@id/articolo_textview"
app:text='@{"Lotto: " + item.partitaMag}'