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:
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" />
|
<module name="WMS.app" />
|
||||||
<option name="ANDROID_RUN_CONFIGURATION_SCHEMA_VERSION" value="1" />
|
<option name="ANDROID_RUN_CONFIGURATION_SCHEMA_VERSION" value="1" />
|
||||||
<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" />
|
||||||
|
|||||||
@@ -11,8 +11,8 @@ apply plugin: 'com.google.gms.google-services'
|
|||||||
|
|
||||||
android {
|
android {
|
||||||
|
|
||||||
def appVersionCode = 542
|
def appVersionCode = 543
|
||||||
def appVersionName = '1.48.02'
|
def appVersionName = '1.48.03'
|
||||||
|
|
||||||
signingConfigs {
|
signingConfigs {
|
||||||
release {
|
release {
|
||||||
|
|||||||
@@ -764,12 +764,11 @@ public class SpedizioneActivity extends BaseActivity implements SpedizioneViewMo
|
|||||||
executorService.execute(() -> {
|
executorService.execute(() -> {
|
||||||
try {
|
try {
|
||||||
this.mViewmodel.processBarcodeDTO(data);
|
this.mViewmodel.processBarcodeDTO(data);
|
||||||
|
this.onLoadingEnded();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
onError(e);
|
onError(e);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
this.onLoadingEnded();
|
|
||||||
};
|
};
|
||||||
|
|
||||||
public void addExtraItem() {
|
public void addExtraItem() {
|
||||||
|
|||||||
@@ -860,7 +860,7 @@ public class SpedizioneViewModel {
|
|||||||
if (mEnableGiacenza) {
|
if (mEnableGiacenza) {
|
||||||
|
|
||||||
pickingList
|
pickingList
|
||||||
.forEach(pickingObjectDTO -> {
|
.parallelStream().forEach(pickingObjectDTO -> {
|
||||||
if (pickingObjectDTO.getMtbColts().stream()
|
if (pickingObjectDTO.getMtbColts().stream()
|
||||||
.anyMatch(x ->
|
.anyMatch(x ->
|
||||||
Objects.equals(x.getNumCollo(), scannedUL.getNumCollo()) &&
|
Objects.equals(x.getNumCollo(), scannedUL.getNumCollo()) &&
|
||||||
@@ -874,7 +874,10 @@ public class SpedizioneViewModel {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Controllo se nel collo ho degli articoli che corrispondono per codice / taglia / colore / lotto
|
//Controllo se nel collo ho degli articoli che corrispondono per codice / taglia / colore / lotto
|
||||||
scannedUL.getMtbColr().stream().filter(x -> !UtilityString.isNullOrEmpty(x.getCodMart())).forEach(x -> {
|
scannedUL.getMtbColr()
|
||||||
|
.parallelStream()
|
||||||
|
.filter(x -> !UtilityString.isNullOrEmpty(x.getCodMart()))
|
||||||
|
.forEach(x -> {
|
||||||
|
|
||||||
for (PickingObjectDTO pickingObject : pickingList) {
|
for (PickingObjectDTO pickingObject : pickingList) {
|
||||||
//Da verificare se il controllo per partita deve essere sempre effettuato
|
//Da verificare se il controllo per partita deve essere sempre effettuato
|
||||||
@@ -1004,7 +1007,8 @@ public class SpedizioneViewModel {
|
|||||||
(x.getPartitaMag() == null || x.getMtbPartitaMag().getDataScad() == null ||
|
(x.getPartitaMag() == null || x.getMtbPartitaMag().getDataScad() == null ||
|
||||||
UtilityDate.getNow().isBefore(x.getMtbPartitaMag().getDataScad())))
|
UtilityDate.getNow().isBefore(x.getMtbPartitaMag().getDataScad())))
|
||||||
|
|
||||||
.map(x -> new PartitaCommessaDTO() {{
|
.map(x -> new PartitaCommessaDTO() {
|
||||||
|
{
|
||||||
setCodJcom(x.getCodJcom());
|
setCodJcom(x.getCodJcom());
|
||||||
setPartitaMag(x.getPartitaMag());
|
setPartitaMag(x.getPartitaMag());
|
||||||
setDataScad(x.getMtbPartitaMag() != null ? x.getMtbPartitaMag().getDataScad() : null);
|
setDataScad(x.getMtbPartitaMag() != null ? x.getMtbPartitaMag().getDataScad() : null);
|
||||||
|
|||||||
@@ -35,18 +35,18 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
|
|
||||||
<TextView
|
<com.google.android.material.chip.Chip
|
||||||
android:id="@+id/incoming_label"
|
android:id="@+id/incoming_label"
|
||||||
style="@style/TextAppearance.Material3.TitleMedium"
|
|
||||||
android:background="@drawable/badge_round_corner"
|
|
||||||
android:backgroundTint="@color/gray_200"
|
|
||||||
android:textAllCaps="true"
|
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:gravity="center_horizontal"
|
|
||||||
android:layout_gravity="center_horizontal"
|
android:layout_gravity="center_horizontal"
|
||||||
android:paddingHorizontal="12dp"
|
style="@style/TextAppearance.Material3.TitleMedium"
|
||||||
android:text="In arrivo" />
|
android:text="In arrivo"
|
||||||
|
android:textAllCaps="true"
|
||||||
|
android:clickable="false"
|
||||||
|
android:focusable="false"
|
||||||
|
app:chipStrokeWidth="0dp"
|
||||||
|
android:paddingHorizontal="12dp" />
|
||||||
|
|
||||||
|
|
||||||
<androidx.recyclerview.widget.RecyclerView
|
<androidx.recyclerview.widget.RecyclerView
|
||||||
@@ -59,19 +59,19 @@
|
|||||||
tools:itemCount="1"
|
tools:itemCount="1"
|
||||||
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" />
|
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" />
|
||||||
|
|
||||||
|
<com.google.android.material.chip.Chip
|
||||||
<TextView
|
|
||||||
android:id="@+id/available_label"
|
android:id="@+id/available_label"
|
||||||
style="@style/TextAppearance.Material3.TitleMedium"
|
|
||||||
android:textAllCaps="true"
|
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:background="@drawable/badge_round_corner"
|
|
||||||
android:backgroundTint="@color/gray_200"
|
|
||||||
android:layout_gravity="center_horizontal"
|
android:layout_gravity="center_horizontal"
|
||||||
|
style="@style/TextAppearance.Material3.TitleMedium"
|
||||||
|
android:text="In giacenza"
|
||||||
|
android:textAllCaps="true"
|
||||||
|
android:clickable="false"
|
||||||
|
android:focusable="false"
|
||||||
|
app:chipStrokeWidth="0dp"
|
||||||
android:layout_marginTop="8dp"
|
android:layout_marginTop="8dp"
|
||||||
android:paddingHorizontal="12dp"
|
android:paddingHorizontal="12dp" />
|
||||||
android:text="In giacenza" />
|
|
||||||
|
|
||||||
<androidx.recyclerview.widget.RecyclerView
|
<androidx.recyclerview.widget.RecyclerView
|
||||||
android:id="@+id/available_list"
|
android:id="@+id/available_list"
|
||||||
|
|||||||
@@ -73,8 +73,7 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center_horizontal"
|
android:layout_gravity="center_horizontal"
|
||||||
android:gravity="center_horizontal"
|
android:gravity="center_horizontal"
|
||||||
android:text="@string/free_picking_suggestion_1"
|
android:text="@string/free_picking_suggestion_1" />
|
||||||
android:textColor="@android:color/black" />
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
@@ -87,14 +86,13 @@
|
|||||||
app:layout_constraintTop_toBottomOf="@id/free_picking__suggestion_1__guideline_top"
|
app:layout_constraintTop_toBottomOf="@id/free_picking__suggestion_1__guideline_top"
|
||||||
app:visibility="@{view.thereIsAnOpenULWithoutRows}">
|
app:visibility="@{view.thereIsAnOpenULWithoutRows}">
|
||||||
|
|
||||||
<androidx.appcompat.widget.AppCompatTextView
|
<TextView
|
||||||
style="@style/TextAppearance.Material3.HeadlineSmall"
|
style="@style/TextAppearance.Material3.HeadlineSmall"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_gravity="center_horizontal"
|
android:layout_gravity="center_horizontal"
|
||||||
android:gravity="center_horizontal"
|
android:gravity="center_horizontal"
|
||||||
android:text="@string/free_picking_suggestion_2"
|
android:text="@string/free_picking_suggestion_2"/>
|
||||||
android:textColor="@android:color/black"/>
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -47,7 +47,6 @@
|
|||||||
android:ellipsize="end"
|
android:ellipsize="end"
|
||||||
android:maxLines="1"
|
android:maxLines="1"
|
||||||
android:text="@{mtbColr.getDescrizione()}"
|
android:text="@{mtbColr.getDescrizione()}"
|
||||||
android:textColor="@android:color/black"
|
|
||||||
android:textSize="16sp"
|
android:textSize="16sp"
|
||||||
app:layout_constraintEnd_toStartOf="@id/qta_guideline"
|
app:layout_constraintEnd_toStartOf="@id/qta_guideline"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
|||||||
Reference in New Issue
Block a user