I’m sure I have seen the setting somewhere in Dolibarr before but I can’t find it at this moment.
I want users to be able to delete invoices only when it is still in draft state. Once it is validated it should not be possible to delete it. Where is this setting?
And following this, I would like users to be able to modify invoices only when they are not validated yet. Because otherwise, a validated order can enter draft mode again when modify is clicked, so it could be deleted anyway. Furthermore, we don’t want to have validated invoices changed after they have been assigned an invoice number.
I’m quite certain I have seen these settings somewhere before!
This is the default behaviour (except you can also delete an invoice if it’s the last one and it was not shipped).
To be able to delete all invoices, option FACTURE_CAN_BE_REMOVED must be set.
Thank you for the quick reply. Great, I must have seen that constant in the code sometime then.
What about modifying a validated invoice? I’m sure this is possible as our users have done this before which I’m not happy with. So would there be some way to prevent users from modifying a validated invoice (and as a consequence pushing it back in draft mode)?
The user that can unvalidate an invoice should have permission also to validate (we suppose user making validate can make error and should be able to rollback its validation). If you want to forget this to a user, user must not have “validate” permission.
Second solution is adding the constant MAIN_USE_ADVANCED_PERMS.
This will add a new permission called “unvalidate invoice”.
Is there a possibility that the facture/invoice, orders can not be changed and deleted after validation?
In our law it is written: The taxable person must not possess or use a computer program or electronic device that allows you to delete, adjust, repair, undo, replace, add, hide, or otherwise modify any record stored in the device or on other media, without the original data retention and any subsequent changes. Taxpayer must ensure display of source data and any changes to the source data, if such changes to occur.
I’m using version 3.5.0 but for some reason I just can’t find option to disable deleting last invoices. I mean last one is still posible to be deleted.
Am I doing something wrong?
Didn’t you say from verison 3.4 that will be optionaly solved?