I need to set up somehow a way to let my users duplicate one invoice (with all the invoice lines) 24 times.
I´m trying to think about a solution but I cannot figure out how to solve this.
Does anyone know how can this be done?
Thanks a lot.
Have you looked into list shifter plugin? To run a workflow N times.
No, I actually saw on your post several times but I did not know that plugin could do such a thing.
Let´s take a look.
Thanks a lot @vini_brito!
Also possible to use Schedule workflow and run it 24 times.
(You create a thing “Clone”: processed, requested. When user click clone, this set requested to 24 and processed to 0 and send to Schedule API Workflow. The API Workflow Clone the item, make a change to current “Clone” item: processed: this clone processed +1 and Schedule Api workflow only When processed < requested.
Wow this could work.
Let´s try it out.
I´ve just remembered that it does not have to be always 24 times. I need to let the user to duplicate up to 24 times but it can be lower than 24. Will this work as well?
Thanks a lot @Jici
Yes because you will set requested = input value
I´ve just figured another situation:
When a user creates for example the next 6 invoices, and then he modifies the second duplicate. We should ask if the modification only affects to the current invoice or to the another 4 one´s that comes from the first duplicated invoice. If he says to affect the next duplicated ones, we need to update them also.
So we can say something like: “Hey this invoice has 4 more that comes from duplicated one, do you want us to update those 4 or just this one?”
Maybe we should put in that clone thing the invoice (the one that has been duplicated) unique id?
So I´m figuring that we might need to track somehow that the duplicated ones comes from what invoice.
Hope it makes sense.
Thanks a lot.
It’s more complicated. Will user always edit the master one?.. If yes, I suggest you to have a master invoice app and when user create clone, this create thing in a different app and all item will be linked to the master. Then you can update related clone if needed. This may be easier to find original one like this. You can also use a field and type to know which one is original or clone.
Hehe seems like more complicated to me also.
I´m thinking about maybe having the master invoice unique id saved in the duplicated ones so when the user tries to edit the duplicated ones, we do a search for to that unique id, and then we know that the newer invoices with the “duplicated invoice id” field can be updated with new values.
If the user asks to update the newer duplicated invoices, we will first delete the duplicated ones and then create a duplicate of the current one that we´re trying to modify.
For example: a user tries to edit the next invoice prior to the master one.
- We ask the user when hitting the save button if he wants to update the newer ones because the current invoice comes from a duplicated one.
- If he says yes, we can rest hehe.
- If he says that he wants to updated the newer ones. We would delete all the duplicated ones first and then duplicate again but this time we´ll be duplicating the current invoice.
Hope makes sense.
I´ve looked at it but that plugin is so extensive.
Do you mind telling me where to start?
Thanks a lot!
Hehe thanks a lot I´m actually watching the video right now.
I´ve done this but the server hits maximum capacity every time.
Is this possible via List Shifter plugin?
Do you have any suggestions @keith ?
Thanks a lot