Fix su creazione nuova UDS nel caso in cui non è presente la data cons

This commit is contained in:
Giuseppe Scorrano 2023-02-24 16:02:19 +01:00
parent 72ebf8f135
commit 9b1a00d09c
2 changed files with 3 additions and 3 deletions

View File

@ -1193,7 +1193,7 @@ public class SpedizioneViewModel {
public void createNewLU(Integer customNumCollo, String customSerCollo, Runnable onComplete) {
final List<CreateUDSRequestOrderDTO> orders = Stream.of(this.mTestateOrdini)
.map(x -> new CreateUDSRequestOrderDTO()
.setDataCons(UtilityDate.toLocalDate(x.getDataConsD()))
.setDataCons(x.getDataConsD() != null ? UtilityDate.toLocalDate(x.getDataConsD()) : null)
.setDataOrd(UtilityDate.toLocalDate(x.getDataOrdD()))
.setGestione(x.getGestione())
.setNumOrd(x.getNumOrd()))

View File

@ -77,7 +77,7 @@
android:layout_height="wrap_content"
tools:text="Cod Jcom"
android:layout_alignParentEnd="true"
android:layout_below="@id/right_descrizione"
android:layout_below="@id/descrizione"
style="@style/AppTheme.NewMaterial.Text.Small" />
<androidx.appcompat.widget.AppCompatTextView
@ -89,7 +89,7 @@
android:paddingEnd="6dp"
tools:text="TextView"
style="@style/AppTheme.NewMaterial.Text.Small"
android:layout_below="@+id/right_descrizione"
android:layout_below="@+id/descrizione"
android:layout_toStartOf="@id/right_sub_descrizione"/>
</RelativeLayout>