Sistemata untMis in RecuperaUL.
Sistemato diacod in Rettifica Giacenze. Rimosso testo "Evasi" nelle liste di arts.
This commit is contained in:
parent
3329c27974
commit
f0f03b4de1
BIN
.idea/caches/build_file_checksums.ser
generated
BIN
.idea/caches/build_file_checksums.ser
generated
Binary file not shown.
@ -103,7 +103,7 @@ public class Converters {
|
|||||||
|
|
||||||
|
|
||||||
final DecimalFormat decimalFormat = new DecimalFormat();
|
final DecimalFormat decimalFormat = new DecimalFormat();
|
||||||
decimalFormat.setMaximumFractionDigits(2);
|
decimalFormat.setMaximumFractionDigits(3);
|
||||||
decimalFormat.setDecimalFormatSymbols(otherSymbols);
|
decimalFormat.setDecimalFormatSymbols(otherSymbols);
|
||||||
|
|
||||||
Pair<BindableFloat, TextWatcherAdapter> pair = (Pair) view.getTag(R.id.bound_observable);
|
Pair<BindableFloat, TextWatcherAdapter> pair = (Pair) view.getTag(R.id.bound_observable);
|
||||||
|
|||||||
@ -123,7 +123,7 @@ public class MtbColr extends EntityBase implements Parcelable {
|
|||||||
numCnf = new BigDecimal(in.readFloat());
|
numCnf = new BigDecimal(in.readFloat());
|
||||||
}
|
}
|
||||||
|
|
||||||
in.readParcelable(MtbAart.class.getClassLoader());
|
mtbAart = in.readParcelable(MtbAart.class.getClassLoader());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@ -139,7 +139,7 @@ public class MtbColt extends EntityBase implements Parcelable {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
in.readTypedList(mtbColr, MtbColr.CREATOR);
|
in.readList(mtbColr, MtbColr.class.getClassLoader());
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -228,7 +228,7 @@ public class MtbColt extends EntityBase implements Parcelable {
|
|||||||
dest.writeFloat(altezzaCm.floatValue());
|
dest.writeFloat(altezzaCm.floatValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
dest.writeTypedList(mtbColr);
|
dest.writeList(mtbColr);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@ -70,7 +70,7 @@ public class ListaBancaliActivity extends AppCompatActivity {
|
|||||||
// Make sure the request was successful
|
// Make sure the request was successful
|
||||||
if (resultCode == RESULT_OK) {
|
if (resultCode == RESULT_OK) {
|
||||||
|
|
||||||
// MtbColt recoveredMtbColt = data.getParcelableExtra("key");
|
MtbColt recoveredMtbColt = data.getParcelableExtra("key");
|
||||||
|
|
||||||
|
|
||||||
this.setResult(RESULT_OK, data);
|
this.setResult(RESULT_OK, data);
|
||||||
|
|||||||
@ -290,6 +290,7 @@ public class RettificaGiacenzeViewModel implements IRecyclerItemClicked<MtbColr>
|
|||||||
qtaDto.setQtaTot(mtbAart.getQtaCnf());
|
qtaDto.setQtaTot(mtbAart.getQtaCnf());
|
||||||
|
|
||||||
qtaDto.setQtaDaEvadere(new BigDecimal(-1));
|
qtaDto.setQtaDaEvadere(new BigDecimal(-1));
|
||||||
|
qtaDto.setQtaDisponibile(new BigDecimal(-1));
|
||||||
|
|
||||||
qtaDto.setCanPartitaMagBeChanged(true);
|
qtaDto.setCanPartitaMagBeChanged(true);
|
||||||
qtaDto.setCanDataScadBeChanged(true);
|
qtaDto.setCanDataScadBeChanged(true);
|
||||||
|
|||||||
@ -459,7 +459,7 @@ public class DialogInputQuantity {
|
|||||||
if (!quantityDTO.blockedQtaTot.get()) {
|
if (!quantityDTO.blockedQtaTot.get()) {
|
||||||
|
|
||||||
quantityDTO.qtaTotNotificationEnabled = false;
|
quantityDTO.qtaTotNotificationEnabled = false;
|
||||||
quantityDTO.qtaTot.set((float) Math.round(quantityDTO.qtaCnf.get(true) * quantityDTO.numCnf.get(true) * 100) / 100);
|
quantityDTO.qtaTot.set((float) Math.round(quantityDTO.qtaCnf.get(true) * quantityDTO.numCnf.get(true) * 1000) / 1000);
|
||||||
quantityDTO.qtaTotNotificationEnabled = true;
|
quantityDTO.qtaTotNotificationEnabled = true;
|
||||||
|
|
||||||
|
|
||||||
@ -467,9 +467,9 @@ public class DialogInputQuantity {
|
|||||||
|
|
||||||
quantityDTO.qtaCnfNotificationEnabled = false;
|
quantityDTO.qtaCnfNotificationEnabled = false;
|
||||||
if(quantityDTO.numCnf.get(true) != 0) {
|
if(quantityDTO.numCnf.get(true) != 0) {
|
||||||
quantityDTO.qtaCnf.set((float) Math.round(quantityDTO.qtaTot.get(true) / quantityDTO.numCnf.get(true) * 100) / 100);
|
quantityDTO.qtaCnf.set((float) Math.round(quantityDTO.qtaTot.get(true) / quantityDTO.numCnf.get(true) * 1000) / 1000);
|
||||||
} else {
|
} else {
|
||||||
quantityDTO.qtaCnf.set((float) Math.round(quantityDTO.qtaTot.get(true) / 1 * 100) / 100);
|
quantityDTO.qtaCnf.set((float) Math.round(quantityDTO.qtaTot.get(true) / 1 * 1000) / 1000);
|
||||||
}
|
}
|
||||||
quantityDTO.qtaCnfNotificationEnabled = true;
|
quantityDTO.qtaCnfNotificationEnabled = true;
|
||||||
|
|
||||||
@ -494,7 +494,7 @@ public class DialogInputQuantity {
|
|||||||
if (!quantityDTO.blockedQtaTot.get()) {
|
if (!quantityDTO.blockedQtaTot.get()) {
|
||||||
|
|
||||||
quantityDTO.qtaTotNotificationEnabled = false;
|
quantityDTO.qtaTotNotificationEnabled = false;
|
||||||
quantityDTO.qtaTot.set((float) Math.round(quantityDTO.qtaCnf.get(true) * quantityDTO.numCnf.get(true) * 100) / 100);
|
quantityDTO.qtaTot.set((float) Math.round(quantityDTO.qtaCnf.get(true) * quantityDTO.numCnf.get(true) * 1000) / 1000);
|
||||||
quantityDTO.qtaTotNotificationEnabled = true;
|
quantityDTO.qtaTotNotificationEnabled = true;
|
||||||
|
|
||||||
} else if (!quantityDTO.blockedNumDiCnf.get()) {
|
} else if (!quantityDTO.blockedNumDiCnf.get()) {
|
||||||
@ -529,7 +529,7 @@ public class DialogInputQuantity {
|
|||||||
if(!quantityDTO.blockedQtaPerCnf.get()){
|
if(!quantityDTO.blockedQtaPerCnf.get()){
|
||||||
|
|
||||||
quantityDTO.qtaCnfNotificationEnabled = false;
|
quantityDTO.qtaCnfNotificationEnabled = false;
|
||||||
quantityDTO.qtaCnf.set((float) Math.round(quantityDTO.qtaTot.get(true) / quantityDTO.numCnf.get(true) *100)/100);
|
quantityDTO.qtaCnf.set((float) Math.round(quantityDTO.qtaTot.get(true) / quantityDTO.numCnf.get(true) *1000)/1000);
|
||||||
quantityDTO.qtaCnfNotificationEnabled = true;
|
quantityDTO.qtaCnfNotificationEnabled = true;
|
||||||
|
|
||||||
} else if(!quantityDTO.blockedNumDiCnf.get()) {
|
} else if(!quantityDTO.blockedNumDiCnf.get()) {
|
||||||
|
|||||||
@ -49,13 +49,13 @@
|
|||||||
android:orientation="horizontal"
|
android:orientation="horizontal"
|
||||||
android:gravity="right">
|
android:gravity="right">
|
||||||
|
|
||||||
<TextView
|
<!--<TextView-->
|
||||||
android:layout_width="wrap_content"
|
<!--android:layout_width="wrap_content"-->
|
||||||
android:layout_height="wrap_content"
|
<!--android:layout_height="wrap_content"-->
|
||||||
android:textStyle="bold"
|
<!--android:textStyle="bold"-->
|
||||||
android:textColor="@color/green_700"
|
<!--android:textColor="@color/green_700"-->
|
||||||
style="@android:style/TextAppearance.Medium"
|
<!--style="@android:style/TextAppearance.Medium"-->
|
||||||
android:text="@string/dispatched"/>
|
<!--android:text="@string/dispatched"/>-->
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/accettazione_ordine_inevaso_main_list_group_item_qta_evasa"
|
android:id="@+id/accettazione_ordine_inevaso_main_list_group_item_qta_evasa"
|
||||||
|
|||||||
@ -12,22 +12,28 @@
|
|||||||
type="it.integry.integrywmsnative.core.model.MtbAart"/>
|
type="it.integry.integrywmsnative.core.model.MtbAart"/>
|
||||||
</data>
|
</data>
|
||||||
|
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:orientation="vertical"
|
||||||
android:paddingTop="8dp"
|
android:paddingTop="8dp"
|
||||||
android:paddingBottom="8dp">
|
android:paddingBottom="8dp">
|
||||||
|
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/linearLayout"
|
android:id="@+id/linearLayout"
|
||||||
android:layout_width="0dp"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent">
|
app:layout_constraintStart_toStartOf="parent">
|
||||||
|
|
||||||
|
|
||||||
|
<RelativeLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content">
|
||||||
|
|
||||||
|
|
||||||
<androidx.appcompat.widget.AppCompatTextView
|
<androidx.appcompat.widget.AppCompatTextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
@ -37,12 +43,24 @@
|
|||||||
android:textStyle="bold"
|
android:textStyle="bold"
|
||||||
tools:text="COD MART" />
|
tools:text="COD MART" />
|
||||||
|
|
||||||
|
<androidx.appcompat.widget.AppCompatTextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="@{mtbAart.diacod}"
|
||||||
|
android:textColor="@color/red_600"
|
||||||
|
android:textSize="14sp"
|
||||||
|
android:textStyle="bold"
|
||||||
|
android:visibility="@{UtilityString.isNullOrEmpty(mtbAart.diacod) ? View.INVISIBLE : View.VISIBLE}"
|
||||||
|
android:layout_alignParentEnd="true"
|
||||||
|
tools:text="DIACOD"/>
|
||||||
|
</RelativeLayout>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:ellipsize="end"
|
android:ellipsize="end"
|
||||||
android:maxLines="2"
|
|
||||||
android:text="@{mtbAart.descrizioneEstesa}"
|
android:text="@{mtbAart.descrizioneEstesa}"
|
||||||
android:textColor="@android:color/black"
|
android:textColor="@android:color/black"
|
||||||
android:textSize="16sp"
|
android:textSize="16sp"
|
||||||
@ -87,5 +105,5 @@
|
|||||||
|
|
||||||
</RelativeLayout>-->
|
</RelativeLayout>-->
|
||||||
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</LinearLayout>
|
||||||
</layout>
|
</layout>
|
||||||
@ -96,7 +96,7 @@
|
|||||||
android:paddingTop="2dp"
|
android:paddingTop="2dp"
|
||||||
android:paddingRight="6dp"
|
android:paddingRight="6dp"
|
||||||
android:paddingBottom="2dp"
|
android:paddingBottom="2dp"
|
||||||
android:text="@{UtilityNumber.decimalToString(checkableMtbColr.mtbColr.getQtaCol()) + `\n` + checkableMtbColr.mtbColr.getUntMis()}"
|
android:text="@{UtilityNumber.decimalToString(checkableMtbColr.mtbColr.getQtaCol()) + (checkableMtbColr.mtbColr.mtbAart != null && !UtilityString.isNullOrEmpty(checkableMtbColr.mtbColr.mtbAart.untMis) ? `\n` + checkableMtbColr.mtbColr.mtbAart.untMis : ``)}"
|
||||||
android:textSize="16sp"
|
android:textSize="16sp"
|
||||||
android:textColor="@android:color/white"
|
android:textColor="@android:color/white"
|
||||||
android:textStyle="bold"
|
android:textStyle="bold"
|
||||||
|
|||||||
@ -22,6 +22,8 @@
|
|||||||
|
|
||||||
<import type="android.graphics.Color" />
|
<import type="android.graphics.Color" />
|
||||||
|
|
||||||
|
<import type="it.integry.integrywmsnative.core.utility.UtilityString" />
|
||||||
|
|
||||||
</data>
|
</data>
|
||||||
|
|
||||||
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
|
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
@ -39,15 +41,28 @@
|
|||||||
android:layout_height="wrap_content">
|
android:layout_height="wrap_content">
|
||||||
|
|
||||||
<androidx.appcompat.widget.AppCompatTextView
|
<androidx.appcompat.widget.AppCompatTextView
|
||||||
|
android:id="@+id/dialog_title_text"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:ellipsize="end"
|
android:ellipsize="end"
|
||||||
android:text='@{(viewmodel.codArtFor != null ? viewmodel.codArtFor : viewmodel.mtbAart.codMart) + (viewmodel.batchLot != null ? " (" + viewmodel.batchLot + ")" : "") }'
|
android:text='@{viewmodel.mtbAart.codMart + (!UtilityString.isNullOrEmpty(viewmodel.batchLot) ? " (" + viewmodel.batchLot + ")" : "") }'
|
||||||
android:textColor="#000"
|
android:textColor="@color/colorPrimary"
|
||||||
android:textSize="18sp"
|
android:textSize="18sp"
|
||||||
android:textStyle="bold"
|
android:textStyle="bold"
|
||||||
tools:text="AV25D200010B"/>
|
tools:text="AV25D200010B"/>
|
||||||
|
|
||||||
|
<androidx.appcompat.widget.AppCompatTextView
|
||||||
|
android:layout_below="@id/dialog_title_text"
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:ellipsize="end"
|
||||||
|
android:text='@{!UtilityString.isNullOrEmpty(viewmodel.mtbAart.diacod) ? viewmodel.mtbAart.diacod : ""}'
|
||||||
|
android:textColor="@color/red_600"
|
||||||
|
android:textSize="16sp"
|
||||||
|
android:textStyle="bold"
|
||||||
|
android:visibility="@{UtilityString.isNullOrEmpty(viewmodel.mtbAart.diacod) ? View.GONE : View.VISIBLE}"
|
||||||
|
tools:text="DIACOD HERE"/>
|
||||||
|
|
||||||
<androidx.appcompat.widget.AppCompatTextView
|
<androidx.appcompat.widget.AppCompatTextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
@ -74,12 +89,12 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
|
|
||||||
<androidx.appcompat.widget.AppCompatTextView
|
<!--<androidx.appcompat.widget.AppCompatTextView-->
|
||||||
android:layout_width="wrap_content"
|
<!--android:layout_width="wrap_content"-->
|
||||||
android:layout_height="wrap_content"
|
<!--android:layout_height="wrap_content"-->
|
||||||
android:text="@string/description"
|
<!--android:text="@string/description"-->
|
||||||
android:textSize="16sp"
|
<!--android:textSize="16sp"-->
|
||||||
tools:text="Descrizione" />
|
<!--tools:text="Descrizione" />-->
|
||||||
|
|
||||||
<androidx.appcompat.widget.AppCompatTextView
|
<androidx.appcompat.widget.AppCompatTextView
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
|
|||||||
@ -80,7 +80,7 @@
|
|||||||
android:paddingTop="2dp"
|
android:paddingTop="2dp"
|
||||||
android:paddingRight="6dp"
|
android:paddingRight="6dp"
|
||||||
android:paddingBottom="2dp"
|
android:paddingBottom="2dp"
|
||||||
android:text="@{UtilityNumber.decimalToString(mtbColr.getQtaCol()) + `\n` + mtbColr.getUntMis()}"
|
android:text="@{UtilityNumber.decimalToString(mtbColr.getQtaCol()) + (mtbColr.mtbAart != null && !UtilityString.isNullOrEmpty(mtbColr.mtbAart.untMis) ? `\n` + mtbColr.mtbAart.untMis : ``)}"
|
||||||
android:textSize="16sp"
|
android:textSize="16sp"
|
||||||
android:textColor="@android:color/white"
|
android:textColor="@android:color/white"
|
||||||
android:textStyle="bold"
|
android:textStyle="bold"
|
||||||
|
|||||||
@ -80,7 +80,7 @@
|
|||||||
android:paddingTop="2dp"
|
android:paddingTop="2dp"
|
||||||
android:paddingRight="6dp"
|
android:paddingRight="6dp"
|
||||||
android:paddingBottom="2dp"
|
android:paddingBottom="2dp"
|
||||||
android:text="@{UtilityNumber.decimalToString(mtbColr.getQtaCol()) + `\n` + mtbColr.getUntMis()}"
|
android:text="@{UtilityNumber.decimalToString(mtbColr.getQtaCol()) + (mtbColr.mtbAart != null && !UtilityString.isNullOrEmpty(mtbColr.mtbAart.untMis) ? `\n` + mtbColr.mtbAart.untMis : ``)}"
|
||||||
android:textSize="16sp"
|
android:textSize="16sp"
|
||||||
android:textColor="@android:color/white"
|
android:textColor="@android:color/white"
|
||||||
android:textStyle="bold"
|
android:textStyle="bold"
|
||||||
|
|||||||
@ -49,13 +49,13 @@
|
|||||||
android:orientation="horizontal"
|
android:orientation="horizontal"
|
||||||
android:gravity="right">
|
android:gravity="right">
|
||||||
|
|
||||||
<TextView
|
<!--<TextView-->
|
||||||
android:layout_width="wrap_content"
|
<!--android:layout_width="wrap_content"-->
|
||||||
android:layout_height="wrap_content"
|
<!--android:layout_height="wrap_content"-->
|
||||||
android:textStyle="bold"
|
<!--android:textStyle="bold"-->
|
||||||
android:textColor="@color/green_700"
|
<!--android:textColor="@color/green_700"-->
|
||||||
style="@android:style/TextAppearance.Medium"
|
<!--style="@android:style/TextAppearance.Medium"-->
|
||||||
android:text="@string/dispatched"/>
|
<!--android:text="@string/dispatched"/>-->
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/vendita_ordine_inevaso_main_list_group_item_qta_evasa"
|
android:id="@+id/vendita_ordine_inevaso_main_list_group_item_qta_evasa"
|
||||||
|
|||||||
@ -29,7 +29,7 @@ dependencies {
|
|||||||
implementation fileTree(include: ['*.jar'], dir: 'libs')
|
implementation fileTree(include: ['*.jar'], dir: 'libs')
|
||||||
// google
|
// google
|
||||||
implementation 'androidx.cardview:cardview:1.0.0'
|
implementation 'androidx.cardview:cardview:1.0.0'
|
||||||
implementation 'com.google.android.material:material:1.1.0-alpha01'
|
implementation 'com.google.android.material:material:1.1.0-alpha02'
|
||||||
implementation 'androidx.appcompat:appcompat:1.1.0-alpha01'
|
implementation 'androidx.appcompat:appcompat:1.1.0-alpha01'
|
||||||
testImplementation 'junit:junit:4.12'
|
testImplementation 'junit:junit:4.12'
|
||||||
androidTestImplementation 'androidx.test:runner:1.1.1'
|
androidTestImplementation 'androidx.test:runner:1.1.1'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user