Merge branch 'feature/RefactoringGestioneColli' into master-beta
All checks were successful
WMS - Android (New)/pipeline/head This commit looks good
All checks were successful
WMS - Android (New)/pipeline/head This commit looks good
This commit is contained in:
@@ -10,8 +10,8 @@ apply plugin: 'com.google.gms.google-services'
|
||||
|
||||
android {
|
||||
|
||||
def appVersionCode = 509
|
||||
def appVersionName = '1.46.21'
|
||||
def appVersionCode = 510
|
||||
def appVersionName = '1.46.22'
|
||||
|
||||
signingConfigs {
|
||||
release {
|
||||
|
||||
@@ -189,9 +189,9 @@ public class OrdiniUscitaElencoFragment extends BaseFragment implements ITitledF
|
||||
this.initMtbGrupsCache();
|
||||
this.initJtbComtCache();
|
||||
|
||||
mAppliedFilterViewModel.init(data);
|
||||
|
||||
// this.refreshList(data, null);
|
||||
handler.post(() -> {
|
||||
mAppliedFilterViewModel.init(data);
|
||||
});
|
||||
|
||||
this.onLoadingEnded();
|
||||
} catch (Exception e) {
|
||||
|
||||
@@ -44,7 +44,7 @@ public class OrdiniUscitaElencoFiltroViewModel {
|
||||
|
||||
public void init(List<OrdiniUscitaElencoDTO> initialList) {
|
||||
this.initialOrderList = initialList;
|
||||
this.currentFilteredOrderList.postValue(this.initialOrderList);
|
||||
applyAllTests();
|
||||
}
|
||||
|
||||
public MutableLiveData<List<OrdiniUscitaElencoDTO>> getMutableFilteredOrderList() {
|
||||
@@ -173,7 +173,7 @@ public class OrdiniUscitaElencoFiltroViewModel {
|
||||
) {
|
||||
returnList = this.initialOrderList;
|
||||
} else {
|
||||
Stream<OrdiniUscitaElencoDTO> tmpStream = Stream.of(this.initialOrderList)
|
||||
java.util.stream.Stream<OrdiniUscitaElencoDTO> tmpStream = this.initialOrderList.stream()
|
||||
.filter(x ->
|
||||
(currentNumOrdsPredicate.get() == null || (currentNumOrdsPredicate.get().test(x))) &&
|
||||
(currentClientePredicate.get() == null || (currentClientePredicate.get().test(x))) &&
|
||||
|
||||
@@ -323,7 +323,7 @@ public class ProdRientroMerceOrderListFragment extends Fragment {
|
||||
String testataOrdString = "N° " + x.getNumOrd();
|
||||
listModel.setDescription(testataOrdString);
|
||||
|
||||
listModel.setSubDescription(x.getDescrizioneProd());
|
||||
listModel.setSubDescription(x.getCodProd() + " - " + x.getDescrizioneProd());
|
||||
|
||||
listModel.setRightDescription(x.getCodJcom() != null ? (x.getDescCommessa() + " (" + x.getCodJcom() + ")") : "");
|
||||
|
||||
|
||||
@@ -1761,7 +1761,7 @@ public class SpedizioneViewModel {
|
||||
|
||||
var duplicatedMtbColts = this.validateTheUdsToBeDuplicated(generatedMtbColts);
|
||||
|
||||
if (duplicatedMtbColts != null) {
|
||||
if (duplicatedMtbColts != null && !duplicatedMtbColts.isEmpty()) {
|
||||
generatedMtbColts.addAll(duplicatedMtbColts);
|
||||
}
|
||||
|
||||
@@ -2047,7 +2047,10 @@ public class SpedizioneViewModel {
|
||||
if (mTestateOrdini != null) {
|
||||
for (MtbColt mtbColt : mtbColtList) {
|
||||
mTestateOrdini.stream()
|
||||
.filter(x -> x.getNumOrd().equals(mtbColt.getNumOrd()) && x.getDataOrd().isEqual(mtbColt.getDataOrdLD()) && x.getGestioneEnum() == mtbColt.getGestioneEnum())
|
||||
.filter(x ->
|
||||
x.getNumOrd().equals(mtbColt.getNumOrd()) &&
|
||||
x.getDataOrd().isEqual(mtbColt.getDataOrdLD()) &&
|
||||
x.getGestioneEnum() == mtbColt.getGestioneEnum())
|
||||
.forEach(x -> x.setExistCollo(true));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -189,9 +189,26 @@
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@{view.currentOrder.codProd}"
|
||||
android:textAppearance="@style/AppTheme.NewMaterial.Text.ExtraSmall"
|
||||
android:textStyle="bold"
|
||||
android:textAllCaps="true"
|
||||
tools:text="Codice prodotto"/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@{view.currentOrder.descrizioneProd}"
|
||||
android:textAppearance="@style/AppTheme.NewMaterial.Text.Small"
|
||||
tools:text="Descrizione prodotto"/>
|
||||
|
||||
<androidx.appcompat.widget.LinearLayoutCompat
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="8dp"
|
||||
android:weightSum="2">
|
||||
|
||||
<androidx.appcompat.widget.LinearLayoutCompat
|
||||
|
||||
Reference in New Issue
Block a user