1b.app
Link copied -

Incorrectly uploads data to prom (availability)

There was a task
https://crm-onebox.com/en/support/business-processes/1951-ne-verno-rabotaet-deys...
It was answered, but it still does not work to the end
There is an action
http://box.magbaby.ua/admin/auto/action/hour/edit/
https://prnt.sc/uvm8q6
There is a setting
https://prnt.sc/uvm9av
Accordingly, if the goods are in warehouses other than the selected ones, you need to send false
See there are 2 products
This
http://box.magbaby.ua/admin/shop/products/22372/edit/
it is shown as - out of stock and in the unloading it looks like "available="" - that's right, everything is correct
And here is a product that is also not in any warehouse
http://box.magbaby.ua/admin/shop/products/22779/edit/
But it is in the download as available=false , although it should be available="" - so that it says out of stock
We noticed that it passes as available=false, even if the product is not available, if it had some operations in the warehouse
That is, the goods
Original question is available on version: ru

Answers:

you apparently did not make a screen from the 1st action in which the goods specified by you are unloaded
because the checkbox Determine the availability of goods based on the balance in the selected warehouses was unchecked in it
I turned it on and everything unloaded as you described
15.10.2020, 20:47
Original comment available on version: ru

No, it doesn't work right :(
Now either in stock or out of stock
No status - on order
Product example here
http://box.magbaby.ua/admin/shop/products/4503/edit/
It is in other warehouses, but it is not in the main one, it should be false
and now it's just out of stock.
http://joxi.ru/V2VONOyCK10NbA
Please, this issue has been dragging on for 2 weeks, help me solve it.
16.10.2020, 10:40
Original comment available on version: ru


Ryabovol Victoria
Client wrote:
No, it doesn't work correctly :(Now it is either in stock or out of stock No status - on order An example of a product here http://box.magbaby.ua/admin/shop/products/4503/edit/ It is in other warehouses, but it is not on the main one, it should be false, but now it's just out of stock http://joxi.ru/V2VONOyCK10NbA Please, this issue has been dragging on for 2 weeks, help solve it.

Good afternoon
found a bug in the code
corrected check
17.10.2020, 01:45
Original comment available on version: ru

Please join the conversation. If you have something to say - please write a comment. You will need a mobile phone and an SMS code for identification to enter. Log in and comment