good quantity auto adjust

Frontend: update_quantity added, good quantity deducts at the time of
the order placement.