1b.app
Link copied -

Add products from one process to another (action stopped working again) /shop_order_status_action_add_products_universal

Previously, there was a task https://crm-onebox.com/en/support/business-processes/7639-deystvie-quotdodati-pr... -rabotalo-normalno--shoporderstatusactionaddproductsuniversal/
Also another client wrote https://crm-onebox.com/ua/support/other/8808-ne-peredayutsya-otmechennie-produkt...
In some period of time, the action worked
I also applied the recommendations that Masha wrote
But it stopped working again
Today it was noticed on this process https://baza.cn.ua/admin/customorder/order/47753/edit/
The process was created, but the product was not added to it
The product had to be added manually through the products tab https://baza.cn.ua/admin/customorder/order/47753/products/
In the action settings, there is even a setting "Do not create a process if there are no products to add", that is, logically, if there are no products in the process, it should not even have been creat
Original question is available on version: ru

Answers:


Kupriyan Vladislav Valerievich wrote:
In some period of time, the action worked
I also applied the recommendations that Masha wrote
But it stopped working again
Today it was noticed on this process https://baza.cn.ua/admin/customorder/order/47753/edit/
The process was created, but the product was not added to it
The product had to be added manually through the products tab https://baza.cn.ua/admin/customorder/order/47753/products/
In the action settings, there is even a setting "Do not create a process if there are no products to add", that is, logically, if there are no products in the process, it should not even have been created, but it was created
Everything described can be seen from the history (that the process was created without a product and that the product was added by hand)

To your regret, in the above process, I cannot determine why this happened. I cannot create the Return subprocess again by the procedure, since a check is indicated for earlier adding goods to the return subprocess (and there was already a process). Otherwise, at first glance, the algorithms for further operation of the action are correct.

Kupriyan Vladislav Valerievich wrote:
so please don't ask stupid questions

I tried to help you without questions, but I have to ask - can I remove the above check in the specified action and process and make a second return, or can you provide the original test process of the customer order, where I first try to create a sub-process and the error occurs again?

Kupriyan Vladislav Valerievich wrote:
because you will not get quick answers to them

I ready wait. My main goal here is to help you, no matter how long it takes.

Kupriyan Vladislav Valerievich wrote:
I also ask you not to write in the topic "mere mortals" until the OneBox developers write - as there is a risk that the task will not be solved

If I were you, I would refrain from such statements - the forum is public, and some users may be offended by such statements. There were cases when some clients considered the words "intelligible" - insults.
06.08.2021, 15:00
Original comment available on version: ru

Куприян Владислав Валерьевич
Baza.cn.ua / Integrator (FOP Kupriyan)
1. Here I have created a test order https://baza.cn.ua/admin/customorder/order/48166/edit/
In the order, I tried to make a return for this product 62600 (code)
Confirmed that nothing was added
Here is a subprocess https://baza.cn.ua/admin/customorder/order/48168/edit/ (I deleted it)
There are no products
Try to understand this order (test)
I added 2 items to my order.
The second product with the code 61036 (there are 2 of them, maybe try to choose 1 piece first and make a return and check)
Also I did another test
Before ordering above, I made this order https://baza.cn.ua/admin/customorder/order/48163/edit/ (the order was marked deleted)
For this order, I tried to make a return at the initial stage and everything worked out
Everything worked as it should
Made a return 1 https://baza.cn.ua/admin/customorder/order/48164/edit/
And return 2 https://baza.cn.ua/admin/customorder/order/48165/edit/
After that, I realized that the problems begin when the goods have already been shipped and therefore I have already created the following test order (which is higher https://baza.cn.ua/admin/customorder/order/48166/edit/ )
Perhaps when you do tests on it, everything will also work there, since I returned the goods there
In general, try and understand
2. During testing, I ran into an old bug
In progress https://baza.cn.ua/admin/customorder/order/48166/edit/
The system was transferred to the same stage twice
See the story "Viconano → Turn the goods to the warehouse → Turn the goods to the warehouse → Turn the costi"
That is, twice transferred to the stage "Turn the goods to the warehouse"
Please see why the system makes such a gross error and correct
As a result, there is some kind of nonsense in the remnants and breaks
Here is the product https://baza.cn.ua/admin/shop/products/62600/storage/
Show that there are 2 returns in a row for the process 48166
The same trouble for the product https://baza.cn.ua/admin/shop/products/61036/storage/ from the same order
10.08.2021, 15:21
Original comment available on version: ru


Kupriyan Vladislav Valerievich wrote:
1. Here I have created a test order https://baza.cn.ua/admin/customorder/order/48166/edit/
In the order, I tried to make a return for this product 62600 (code)
Confirmed that nothing was added
Here is a subprocess https://baza.cn.ua/admin/customorder/order/48168/edit/ (I deleted it)
There are no products
Try to understand this order (test)
I added 2 items to my order.
The second product with the code 61036 (there are 2 of them, maybe try to choose 1 piece first and make a return and check)
Also I did another test
Before ordering above, I made this order https://baza.cn.ua/admin/customorder/order/48163/edit/ (the order was marked deleted)
For this order, I tried to make a return at the initial stage and everything worked out
Everything worked as it should
Made a return 1 https://baza.cn.ua/admin/customorder/order/48164/edit/
And return 2 https://baza.cn.ua/admin/customorder/order/48165/edit/
After that, I realized that the problems begin when the goods have already been shipped and therefore I have already created the following test order (which is higher https://baza.cn.ua/admin/customorder/order/48166/edit/ )
Perhaps when you do tests on it, everything will also work there, since I returned the goods there
In general, try and understand

Actually, I specifically asked for a test process, where I personally for the first time will create a subprocess (initial data) and poprinchu what adds / does not add
Instead you did it all on your own again
I repeat my request - make me the original test process, where leave only the action to create a return subprocess - so that I do it personally, put the prints I need

Kupriyan Vladislav Valerievich wrote:
2. During testing, I ran into an old bug
In progress https://baza.cn.ua/admin/customorder/order/48166/edit/
The system was transferred to the same stage twice
See the story "Viconano → Turn the goods to the warehouse → Turn the goods to the warehouse → Turn the costi"
That is, twice transferred to the stage "Turn the goods to the warehouse"
Please see why the system makes such a gross error and correct
As a result, there is some kind of nonsense in the remnants and breaks
Here is the product https://baza.cn.ua/admin/shop/products/62600/storage/
Show that there are 2 returns in a row for the process 48166
The same trouble for the product https://baza.cn.ua/admin/shop/products/61036/storage/ from the same order

Create a separate topic and they will consider it there
I will not consider all your questions within the framework of one topic, no matter how much you would like it.
16.08.2021, 16:39
Original comment available on version: ru

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

Tyndyk Maxim Vadimovich
OneBox production wrote:
Actually, I specifically asked for a test process, where I personally for the first time will create a subprocess (initial data) and poprinchu what adds / does not add
Instead you did it all on your own again
I repeat my request - make me the original test process, where leave only the action to create a return subprocess - so that I do it personally, put the prints I need

I spent a lot of time trying to track down the problem and created a lot of test orders, but here's the bummer, everything worked fine, as it should
I took different goods and perverted in different ways, I thought that everything was OK and closed the task
But here again there was a return and a return was created https://baza.cn.ua/admin/customorder/order/48949/edit/
And in this process, the system did not add the product, I had to add the product through the products tab
1. Please take the time to figure out the problem (it's not normal when the system crashes randomly)
2. Why do non-logical things happen that it is worth setting up not to create a process if there are no products, but at the same time the system creates a process without products?
All confirmations of words can be easily viewed from the history, please look in the code there is a place for adding goods, I think there is a bottleneck where this problem occurs
22.08.2021, 14:59
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