In Quickbooks there is a feature that locks old invoices. Can we implement the same in Deco so after certain period no one except admin can change a closed order.
We ran into 2 situations that made me realize the need for this feature.
1. Sales person went back to an old order trying to fix something and didn't realize that it created a refund for the customer, I caught this 15 days later and couldn't remember what the original order was
2. I was trying to copy an old order to create a new repeat order. had to answer a phone call in the middle and forgot that I had not created a copy yet and accidentally started making quantity changes to the original order. Right after I hit save, i realized the blunder I made. A lock feature would have prevented that.
Even for Admin there should be some safety so even I cannot accidentally make that mistake
I like the Archive idea and yes the ability to be able to copy archive order must not disappear. As for time line I think it makes most sense to have this option in the settings page. I personally would prefer 30 days after the order is closed and shipped but I can see others wanting to have their own preference.
What about setting this as a user selectable option. The user (admin) can select to turn on or off the cron job and set the number of days an order has to be closed, paid, and shipped before it locks it. Of course have it so an admin can unlock the job and make edits if needed.