Fix su creazione nuova UDS nel caso in cui non è presente la data cons
This commit is contained in:
parent
72ebf8f135
commit
9b1a00d09c
@ -1193,7 +1193,7 @@ public class SpedizioneViewModel {
|
|||||||
public void createNewLU(Integer customNumCollo, String customSerCollo, Runnable onComplete) {
|
public void createNewLU(Integer customNumCollo, String customSerCollo, Runnable onComplete) {
|
||||||
final List<CreateUDSRequestOrderDTO> orders = Stream.of(this.mTestateOrdini)
|
final List<CreateUDSRequestOrderDTO> orders = Stream.of(this.mTestateOrdini)
|
||||||
.map(x -> new CreateUDSRequestOrderDTO()
|
.map(x -> new CreateUDSRequestOrderDTO()
|
||||||
.setDataCons(UtilityDate.toLocalDate(x.getDataConsD()))
|
.setDataCons(x.getDataConsD() != null ? UtilityDate.toLocalDate(x.getDataConsD()) : null)
|
||||||
.setDataOrd(UtilityDate.toLocalDate(x.getDataOrdD()))
|
.setDataOrd(UtilityDate.toLocalDate(x.getDataOrdD()))
|
||||||
.setGestione(x.getGestione())
|
.setGestione(x.getGestione())
|
||||||
.setNumOrd(x.getNumOrd()))
|
.setNumOrd(x.getNumOrd()))
|
||||||
|
|||||||
@ -77,7 +77,7 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
tools:text="Cod Jcom"
|
tools:text="Cod Jcom"
|
||||||
android:layout_alignParentEnd="true"
|
android:layout_alignParentEnd="true"
|
||||||
android:layout_below="@id/right_descrizione"
|
android:layout_below="@id/descrizione"
|
||||||
style="@style/AppTheme.NewMaterial.Text.Small" />
|
style="@style/AppTheme.NewMaterial.Text.Small" />
|
||||||
|
|
||||||
<androidx.appcompat.widget.AppCompatTextView
|
<androidx.appcompat.widget.AppCompatTextView
|
||||||
@ -89,7 +89,7 @@
|
|||||||
android:paddingEnd="6dp"
|
android:paddingEnd="6dp"
|
||||||
tools:text="TextView"
|
tools:text="TextView"
|
||||||
style="@style/AppTheme.NewMaterial.Text.Small"
|
style="@style/AppTheme.NewMaterial.Text.Small"
|
||||||
android:layout_below="@+id/right_descrizione"
|
android:layout_below="@+id/descrizione"
|
||||||
android:layout_toStartOf="@id/right_sub_descrizione"/>
|
android:layout_toStartOf="@id/right_sub_descrizione"/>
|
||||||
|
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user