Prevent invoices from being modified after signing

Hello!

I’ve found a lot of threads about this, but all of them were quite old, and none solved my doubts.

I want to prevent users from modifying invoices after signing those. I’ve tried adding some of the options I found for Configuration-Other but none of them achieve this: INVOICE_CAN_ALWAYS_BE_EDITED, INVOICE_CAN_NEVER_BE_REMOVED, INVOICE_DISALLOW_REOPEN… No matter what I do, invoices can always be modified. I also tried enabling unalterable files with no luck.

The only way I found to do it is this module, but it’s not updated, and I don’t trust using it: Advanced permissions

Do you have any idea on how to prevent signed invoices from being changed?

Thanks a lot.

Hi @mpractic

I don’t know what you mean by signing but you can try MAIN_USE_ADVANCED_PERMS = 1 and then check your user permissions tab.

Thanks for your response! In the English version of dolibarr the translation reads “Validate.” Sorry, I don’t use the English version, and I didn’t check how the button was labeled in English. By “signed,” I meant “validated” (reviewed, closed, sent to the client, etc.).

“MAIN_USE_ADVANCED_PERMS = 1” doesn’t change anything on the user perms tab (/user/perms.php?id=1) or the groups permissions tab (t/user/group/perms.php?id=5).

Any idea on why?

Thanks.

Which version do you use?

I’m on 19.0.3 and waiting for some modules to update to switch to v20. Using MAIN_USE_ADVANCED_PERMS was one of the solutions mentioned on other posts but after trying it with no luck I thought this was deprecated and didn’t gave it a segon thought.

This is what i see in 19.0.3 with MAIN_USE_ADVANCED_PERMS set to 1

Uncheck both highlighted options and no one could re open an invoice again…

1 Like

I have the multicompany module enabled, and MAIN_USE_ADVANCED_PERMS had to be enabled for every company, not globally for both. I wouldn’t have realized if it weren’t for your image.

Thanks a lot!!