refs #4021 Cambiado quantity a printedStickers
This commit is contained in:
parent
258c4d134b
commit
86c51e4e99
|
@ -178,9 +178,9 @@ class PackagingCountFragment(
|
|||
viewModel.entry_addFromBuy(
|
||||
getDataInt("ENTRYID"), item = item.id!!.toInt(),
|
||||
(if (getData("ENTRYTYPE") == "Rec") {
|
||||
(item.quantity!!.plus(customDialogInput.getValue().toInt()))
|
||||
(item.printedStickers!!.plus(customDialogInput.getValue().toInt()))
|
||||
} else {
|
||||
item.quantity!!.plus(customDialogInput.getValue().toInt() * -1)
|
||||
item.printedStickers!!.plus(customDialogInput.getValue().toInt() * -1)
|
||||
}) as Number
|
||||
)
|
||||
customDialog.cancel()
|
||||
|
|
|
@ -11,9 +11,11 @@ data class Supplier(
|
|||
class SupplierList(
|
||||
var list: List<Supplier> = listOf()
|
||||
)
|
||||
|
||||
class EntryList(
|
||||
var list: List<EntrySalix> = listOf()
|
||||
)
|
||||
|
||||
class itemSupplierList(
|
||||
var list: List<ItemSupplier> = listOf()
|
||||
)
|
||||
|
@ -23,6 +25,7 @@ data class ItemSupplier(
|
|||
var name: String? = null,
|
||||
var quantity: Int = 0,
|
||||
var quantityTotal: Int = 0,
|
||||
var printedStickers: Int = 0,
|
||||
var buy: Int? = null,
|
||||
var isError: Boolean = false,
|
||||
var errorMessage: String? = null
|
||||
|
|
|
@ -69,7 +69,7 @@
|
|||
android:layout_marginLeft="@dimen/pasilleros_margin_main_menu"
|
||||
android:layout_weight="1.25"
|
||||
android:layout_gravity="center"
|
||||
android:text="@{Integer.toString(item.quantity)}"
|
||||
android:text="@{Integer.toString(item.printedStickers)}"
|
||||
android:textColor="@color/verdnatura_white"
|
||||
android:textSize="@dimen/h8"
|
||||
android:visibility="visible"
|
||||
|
|
Loading…
Reference in New Issue