• Hi,

    Issue description:
    A Product’s stock quantity is 5.78, admin creates a new order from POS with the qty selected as 5.78, order is created successfully and the stock is now showing 1.7763568394003E-15 instead of 0 (available stock(5.78)-new order qty(5.78) should be 0)

    Outcome:
    Due to this, website frontend still shows the product(I guess since available qty is still > 0 but customers unable to add to cart since stock < 0. But when doing add to cart, website throws the error “You cannot add that amount of {{productname}} to the cart because there is not enough stock(1.7763568394003E-15 remaining)“.

    What could be done to solve this?

    Thnaks.

    • This topic was modified 3 years, 9 months ago by intelcoders.
  • The topic ‘Decimal Qty conversion error’ is closed to new replies.