1b.app
Link copied -

For some reason, the additional field of the product / zalishok25 was not recalculated

Here is the product https://baza.cn.ua/admin/shop/products/64565/edit/
The product has an additional field "Surplus"
This field is currently set to 1
Although it should be 0
According to the automation which is here https://baza.cn.ua/admin/products/action/update/edit/
Title "Change the value behind the formula and write in the indicated field (Zalishok)"
It says that in the additional field "Surplus" writes the remainder
It should write when the table is updated
And it should have been after this order was made https://baza.cn.ua/admin/customorder/order/50007/edit/
Everything works for other products.
For example, here is an order https://baza.cn.ua/admin/customorder/order/50018/edit/
It contains goods https://baza.cn.ua/admin/shop/products/65420/edit/
In the product in the field "Overage" = 0
Looking at history https://baza.cn.ua/admin/shop/products/65420/history/?userid=&systemchange=1...
Original question is available on version: ru

Answers:

Most likely, automation for the product worked before the goods were out of stock
You can always use the "Run Automation by Process Products" action to trigger product automation in a process
03.09.2021, 17:20
Original comment available on version: ru

Куприян Владислав Валерьевич
Baza.cn.ua / Integrator (FOP Kupriyan)

Maria
OneBox production
Employee wrote:
Most likely, automation for the product worked before the goods were out of stock

1. And how could this happen, if, in fact, automation by product is just launched as a result of the write-off of the product, that is, the product is written off, then the product table is updated (to recalculate the availability field in the warehouse), and at the moment of recalculation, automation starts , that is, I don’t understand how this could happen, it’s absolutely illogical, since automation is a consequence of writing off
2. Also looking at the history https://baza.cn.ua/admin/shop/products/64565/history/?userid=&systemchange=1... not I can understand how it happened that in fact the zalishok25 field is when it is needed and signed up for 2021-09-02 12:58:12 = 0
But for some reason, it was = 1 in the field, that is, the history recorded a change from 1 to 0, but in fact the value 1 remained in the field, you clicked save today and I see the history recorded a change from 1 to 0, why does such an illogical thing come out?
03.09.2021, 22:12
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