1b.app
Link copied -

The checkbox for unloading goods to the prom does not work correctly

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
Here is the item
https://prnt.sc/uvmz84
It is available in warehouses other than the selected one.
But sends emptiness
https://prnt.sc/uvmzk0
And should
https://prnt.sc/uvn03w
The logic is that if the product is not available anywhere - Out of stock (empty for promotion)
If there is in the warehouse I need - In stock ( true ) for promotion
If available in warehouses other than the selected one ( false )
How do I enable the checkboxes to do this?
And that is, 2 checkmarks, but in fact they do not work (
Original question is available on version: ru

Answers:

Victoria, for the desired algorithm for calculating availability, you must uncheck the boxes
Instead of false, pass an empty value to the available field
Determine the availability of goods based on the balance in selected warehouses
and check the box
If the goods are available only in other warehouses that are not selected in the action, then instead of being available, send "false", if not anywhere - do not send anything
I updated the settings, now the action works correctly, please check
09.10.2020, 09:29
Original comment available on version: ru

Hello, it seems to be true, but not quite.
http://box.magbaby.ua/media/export/15.xml
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 are absolutely identical, but the top one was NEVER accounted for and was not sold, and the bottom one had operations, although it was not already in stock.
As I understand it, the system checks not the current state of the warehouse, but the general one, I don’t know
Please check if it works like this.
Check the availability of goods in the warehouse (selected in the action)
- If there is - true / finish add. checks, everything, the goods are in stock - leave this value
If the product is not in the selected warehouse - check all warehouses
- If there are other warehouses - write "False"
- If not in other warehouses - we write emptiness "".
If you need product examples, please let me know.
I would like to close this issue already :(
13.10.2020, 11:15
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