Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I179 web content #187

Merged
merged 19 commits into from
Apr 4, 2019
Prev Previous commit
Next Next commit
Added "size" to Item in Android.
  • Loading branch information
oktay-sen committed Mar 29, 2019
commit d9d3fd4906c9d9e169ae1d46ab3e2d69ed05a558
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ class AddToCartDialog(val activity: WarehouseActivity, val item: Item): Dialog(a
item.position,
Integer.parseInt(quantity.text.toString()).toDouble(),
item.unit,
item.price
item.price,
item.size
)
addToCart(context, cartItem)
activity.refreshItems()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ class Item (
val position: Position? = null,
val quantity: Double? = null,
val unit: String? = null,
val price: Double = 0.0
val price: Double = 0.0,
val size: String? = null
) {
companion object {
fun fromString(str: String) = Gson().fromJson(str, Item::class.java)
Expand Down