I have posted the code in this thread… The availability OF A LOCATION is changing in the ONLINE dashboard/ POS for a sku. The issue is…
- A PRODUCT HAS 100 units available in Location #1… 50 units in Location #2 and 20 Units In Location #3. and 0 units in Location #4. Thus, the product is in the Dashboard (on the website and the POS) is available in 4 locations… with a total qty of 170.
- We post a QTY change on an SKU via the API to this product to SELL(REMOVE) or RESTOCK (ADD) 1 unit from Location #1 so it goes from 100 to 99.
- The issue is… after that post… the SKU IS NO LONGER available in Location #2, #3 or #4 in the POS.
THUS, EVENTHOUGH THERE is a QTY of this SKU available in 3 of the 4 locations… after we make a post to change the qty of a location, the AVAILABILITY of that SKU in a location is also changing with no actions from us at all. This is, OF COURSE, causing a problem on our Square POS and the online Dashboard.
The code we are using has been posted here.
What are we doing wrong to have the availability change when it should not be changed at all.