# Mobile client puts the value 1 to zero price products

**URL:** <https://forum.sambapos.com/t/mobile-client-puts-the-value-1-to-zero-price-products/18001>\
**Category:** V5 Question\
**Created:** [August 12, 2018, 3:42pm UTC](https://forum.sambapos.com/t/mobile-client-puts-the-value-1-to-zero-price-products/18001 "2018-08-12T15:42:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![webcomunica](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/w/e19b73/32.png) [@webcomunica](https://forum.sambapos.com/u/webcomunica)\
**Post date:** [August 12, 2018, 3:42pm UTC](https://forum.sambapos.com/t/mobile-client-puts-the-value-1-to-zero-price-products/18001/1 "2018-08-12T15:42:28Z")

</div>

Hello everyone, can someone help me?

In the menu of one of my clients I had some products with a price of zero, in PCs everything works perfectly.

But in the mobile client to those products puts the value 1 by default, someone knows why?

Thank you

---

<div class="post-metadata">

**Author:** ![webcomunica](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/w/e19b73/32.png) [@webcomunica](https://forum.sambapos.com/u/webcomunica)\
**Post date:** [August 12, 2018, 3:55pm UTC](https://forum.sambapos.com/t/mobile-client-puts-the-value-1-to-zero-price-products/18001/2 "2018-08-12T15:55:11Z")

</div>

I answer auto, when **updating the sambapos in the PC** all solved.

I hope that someone will help you in the future.

Greetings.

---

<div class="post-metadata">

**Author:** ![QMcKay](https://forum.sambapos.com/user_avatar/forum.sambapos.com/qmckay/32/27925_2.png) [@QMcKay](https://forum.sambapos.com/u/QMcKay)\
**Post date:** [August 20, 2018, 4:45pm UTC](https://forum.sambapos.com/t/mobile-client-puts-the-value-1-to-zero-price-products/18001/3 "2018-08-20T16:45:26Z")

</div>

AFAIK, this is a bug in GraphQL, @emre

I had to build a workaround in QMX to fix this.

---

<div class="post-metadata">

**Author:** ![emre](https://forum.sambapos.com/user_avatar/forum.sambapos.com/emre/32/39073_2.png) [@emre](https://forum.sambapos.com/u/emre)\
**Post date:** [August 20, 2018, 5:41pm UTC](https://forum.sambapos.com/t/mobile-client-puts-the-value-1-to-zero-price-products/18001/4 "2018-08-20T17:41:15Z")

</div>

@QMcKay I recently reviewed it and I’m pretty sure there is no bug here. `quantity` is an optional field in graphql and by default you shouldn’t set a value so it gets processed as 1 by default. If you set specifically 1 or any other value it processed as quantity for regular products and price for zero priced products. In next update we’ll also have a setting called “enforceQuantity”. When set to true quantity parameter is always set to quantity for all products.

Edit: Here we have a related post [SambaPOS 5.2.11 Beta Release](https://forum.sambapos.com/t/sambapos-5-2-11-beta-release/17991/61)
