1b.app
Link copied -

When mass changing processes, it gives the error "Unable to reserve an item in stock"

Here https://baza.cn.ua/admin/customorder/order/?filtershowprocess=&filterdeliver... &filterclientid[0]=&filterauthorid=&filtermanagerid=&workflowid[0]=12&filterdeletedid=&filternovaposhtastatus=&filtersumfrom=&filtersumto=&ok=1&searchLine=
I select all 8 processes and want to tag them http://prntscr.com/u41nzi
As a result, I get the error http://prntscr.com/u41opo
Refers to process *#20309
But it is not clear where this process is for reservation, if the goods have already been shipped through it and there are no reservation actions when saving
If I do the same operation only with this process, then everything is OK
Original question is available on version: ru

Answers:

Vladislav, I just tested using the algorithm that you described in the technical specification and I did not have this error:
https://prnt.sc/u43dcj
https://prnt.sc/u43dh3
22.08.2020, 20:25
Original comment available on version: ru

Куприян Владислав Валерьевич
Baza.cn.ua / Integrator (FOP Kupriyan)
yes it works there
Here is a new example
Here https://baza.cn.ua/admin/customorder/order/?filtershowprocess=&filterdeliver... &filterclientid[0]=&filterauthorid=&filtermanagerid=&workflowid[0]=12&filterdeletedid=&filternovaposhtastatus=&filtersumfrom=&filtersumto=&ok=1&searchLine=
Chose 5 first orders and got an error http://prntscr.com/u44d4j
22.08.2020, 21:37
Original comment available on version: ru

At the process stage, at the time of the mass change, there is an item reservation action "Reserve process contents in stock", which cannot reserve an item that is not in stock and generates an error. The action is triggered when the process is saved (bulk change=save). To prevent the reservation action from triggering when the process is saved, set its setting to "Run action only when entering a stage".
22.08.2020, 22:06
Original comment available on version: ru

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

Bodyako Dmitry wrote:
At the process stage at the time of the mass change, the item reservation action is "Reserve the contents of the process in the warehouse"

1. On my screen, which I gave earlier http://prntscr.com/u4cbja, it can be seen that the order is at the "Completed" stage, at this stage there is no action "Reserve the contents of the process in the warehouse" why did you receive a message on this order?

Bodyako Dmitry wrote:
which cannot reserve a product that is out of stock and gives an error

2. Somehow I don’t understand the logic, I have an order, I go to the stage at which the action “Reserve the contents of the process in the warehouse” is set, there are such settings http://prntscr.com/u4cd5v, that is, when switching, the system reserves the goods for this order , if the reserve is not possible, then the system simply will not skip, that is, after moving to this stage, the goods are already in reserve for this order, and now the question is why the system issues this message if it has already made a reserve for the current order?
23.08.2020, 11:08
Original comment available on version: ru

If you give a test example on which you can repeat this (and after providing it, you don’t need to immediately change it so that I don’t see the error), I can more accurately say from which action / procedure this error occurs.
23.08.2020, 22:14
Original comment available on version: ru

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

Bodyako Dmitry wrote:
If you give a test example on which you can repeat this (and after providing it, you don’t need to immediately change it so that I don’t see the error), I can more accurately say from which action / procedure this error occurs.

Here is an example for two goods 08-23+00%3A00%3A00&filternumber=&filtername=&filterproductid=&filterproductname=&filterclientid[0]=&filterauthorid=&filtermanagerid=&workflowid[0]=12&statusid[0]=67&statusid[1]=69&statusid[2]=77&statusid[3]= 78&statusid[4]=103&statusid[5]=115&statusid[6]=116&statusid[7]=117&statusid[8]=118&statusid[9]=119&filterdeletedid=&filternovaposhtastatus=&filtersumfrom=&filtersumto=&ok=1&searchLine=
Mass change gives error http://prntscr.com/u4tfnv
24.08.2020, 11:07
Original comment available on version: ru

Try now to repeat the error, I made changes to the code
24.08.2020, 12:42
Original comment available on version: ru

Куприян Владислав Валерьевич
Baza.cn.ua / Integrator (FOP Kupriyan)
Yes, it's working fine now, thanks.
24.08.2020, 13:14
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