[BUGFIX] Risolto bug riguardo il picking corretto dei lotti dalle UL di Spedizione
This commit is contained in:
parent
768f60d57c
commit
6ce64c071f
@ -145,10 +145,6 @@ public class MainListVenditaAdapter extends RecyclerView.Adapter<MainListVendita
|
||||
//mOnGroupSelected.run(mDataset.get(finalPosition));
|
||||
});
|
||||
|
||||
final View existColloView = ordineView.findViewById(R.id.exist_collo);
|
||||
|
||||
// existColloView.setAlpha(ordine.isExistCollo() ? 1 : 0);
|
||||
|
||||
|
||||
TextView testataOrdTextView = ordineView.findViewById(R.id.vendita_main_list_group_item_container_testata_ord);
|
||||
String testataOrdString = String.format(mContext.getString(R.string.ord_ven_testata), String.valueOf(ordine.getNumero()), UtilityDate.formatDate(ordine.getData(), UtilityDate.COMMONS_DATE_FORMATS.DMY_HUMAN));
|
||||
|
||||
@ -655,18 +655,23 @@ public class VenditaOrdineInevasoViewModel implements IOnColloClosedCallback, IO
|
||||
if(!anyMatch) {
|
||||
matchPickingObjectByArt.remove(i);
|
||||
i--;
|
||||
} else if(matchWithPartitaMag.size() == 1){
|
||||
MtbColr matchRow = matchWithPartitaMag.get(0);
|
||||
} else {
|
||||
|
||||
PickingObjectDTO.PickData pickData = new PickingObjectDTO.PickData()
|
||||
.setBatchLot(matchRow.getPartitaMag())
|
||||
.setDataScad(matchRow.getDataScadPartitaD())
|
||||
.setNumCnf(matchRow.getNumCnf())
|
||||
.setQtaCnf(matchRow.getQtaCnf())
|
||||
.setQtaTot(matchRow.getQtaCol())
|
||||
.setSourceMtbColt(scannedUL);
|
||||
for(int k = 0; k < matchWithPartitaMag.size(); k++) {
|
||||
|
||||
tmpPickObj.setTempPickData(pickData);
|
||||
|
||||
MtbColr matchRow = matchWithPartitaMag.get(k);
|
||||
|
||||
PickingObjectDTO.PickData pickData = new PickingObjectDTO.PickData()
|
||||
.setBatchLot(matchRow.getPartitaMag())
|
||||
.setDataScad(matchRow.getDataScadPartitaD())
|
||||
.setNumCnf(matchRow.getNumCnf())
|
||||
.setQtaCnf(matchRow.getQtaCnf())
|
||||
.setQtaTot(matchRow.getQtaCol())
|
||||
.setSourceMtbColt(scannedUL);
|
||||
|
||||
tmpPickObj.setTempPickData(pickData);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -677,9 +682,10 @@ public class VenditaOrdineInevasoViewModel implements IOnColloClosedCallback, IO
|
||||
List<MtbColr> matchWithColloRow = Stream.of(scannedUL.getMtbColr())
|
||||
.filter(x -> x.getCodMart().equalsIgnoreCase(tmpPickObj.getCodMart())).toList();
|
||||
|
||||
if(matchWithColloRow.size() == 1){
|
||||
MtbColr matchRow = matchWithColloRow.get(0);
|
||||
for(int k = 0; k < matchWithColloRow.size(); k++) {
|
||||
|
||||
|
||||
MtbColr matchRow = matchWithColloRow.get(k);
|
||||
PickingObjectDTO.PickData pickData = new PickingObjectDTO.PickData()
|
||||
.setBatchLot(matchRow.getPartitaMag())
|
||||
.setDataScad(matchRow.getDataScadPartitaD())
|
||||
|
||||
@ -2,67 +2,51 @@
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="8dp">
|
||||
|
||||
|
||||
<View
|
||||
android:id="@+id/empty_view"
|
||||
android:layout_width="6dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_alignBottom="@id/vendita_main_list_group_item_container_root"/>
|
||||
<CheckBox
|
||||
android:id="@+id/vendita_main_list_group_item_container_checkBox"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/vendita_main_list_group_item_container_root"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingStart="2dp"
|
||||
android:paddingEnd="8dp"
|
||||
android:paddingTop="8dp"
|
||||
android:paddingBottom="8dp"
|
||||
android:layout_toEndOf="@id/empty_view">
|
||||
android:layout_toRightOf="@id/vendita_main_list_group_item_container_checkBox"
|
||||
android:layout_alignParentEnd="true">
|
||||
|
||||
|
||||
<CheckBox
|
||||
android:id="@+id/vendita_main_list_group_item_container_checkBox"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<RelativeLayout
|
||||
<TextView
|
||||
android:id="@+id/vendita_main_list_group_item_container_testata_data_cons"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_toEndOf="@id/vendita_main_list_group_item_container_checkBox"
|
||||
android:layout_alignParentEnd="true">
|
||||
android:text="Cons 07 nov 2018"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:textColor="#000" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/vendita_main_list_group_item_container_testata_data_cons"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Cons 07 nov 2018"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:textColor="#000" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/vendita_main_list_group_item_container_testata_ord"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Ord. Ven. 39 del 27 ott 2017"
|
||||
android:ellipsize="end"
|
||||
android:maxLines="1"
|
||||
android:textColor="#000"
|
||||
android:layout_alignParentStart="true"
|
||||
android:layout_toStartOf="@id/vendita_main_list_group_item_container_testata_data_cons"/>
|
||||
<TextView
|
||||
android:id="@+id/vendita_main_list_group_item_container_testata_ord"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Ord. Ven. 39 del 27 ott 2017"
|
||||
android:ellipsize="end"
|
||||
android:maxLines="1"
|
||||
android:textColor="#000"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_toLeftOf="@id/vendita_main_list_group_item_container_testata_data_cons"/>
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/vendita_main_list_group_item_container_clienti_ord"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/vendita_main_list_group_item_container_testata_ord"
|
||||
android:orientation="vertical">
|
||||
</LinearLayout>
|
||||
</RelativeLayout>
|
||||
<LinearLayout
|
||||
android:id="@+id/vendita_main_list_group_item_container_clienti_ord"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/vendita_main_list_group_item_container_testata_ord"
|
||||
android:orientation="vertical">
|
||||
</LinearLayout>
|
||||
</RelativeLayout>
|
||||
|
||||
|
||||
|
||||
|
||||
</RelativeLayout>
|
||||
Loading…
x
Reference in New Issue
Block a user