CoreBOSBB
How to put invoice record in read only after special condition - Printable Version

+- CoreBOSBB (https://discussions.corebos.org)
+-- Forum: Support (https://discussions.corebos.org/forumdisplay.php?fid=17)
+--- Forum: Administrator Support (https://discussions.corebos.org/forumdisplay.php?fid=8)
+--- Thread: How to put invoice record in read only after special condition (/showthread.php?tid=2301)



How to put invoice record in read only after special condition - geraldbigot - 04-14-2022

Hi,
I need to add new feature to my crm due to accounting demand :
How to put an invoice record in "Read only" after changing invoice status to a specific value ?
I was looking for such function in workflows but not found.
Gérald


RE: How to put invoice record in read only after special condition - rslemer - 04-14-2022

Hi
I think you can do that using Business map
Look documentation --> https://discussions.corebos.org/documentation/doku.php?id=en:adminmanual:businessmappings:record_access_control&s[]=business&s[]=map&s[]=record&s[]=access


RE: How to put invoice record in read only after special condition - joebordes - 04-14-2022

I agree with Ranieri, RAC should work. Have a look also at the archive record pattern explained here:

https://blog.corebos.org/blog/archiverecordpattern

that should work too.

Let us know how it goes.


RE: How to put invoice record in read only after special condition - geraldbigot - 04-14-2022

Thank you for your 2 advices.
I will look at it to adapt it to my case.

Gérald


RE: How to put invoice record in read only after special condition - geraldbigot - 04-15-2022

(04-14-2022, 04:28 PM)geraldbigot Wrote: Thank you for your 2 advices.
I will look at it to adapt it to my case.

Gérald

Joe's idea seems more easy to me.
I have succeeded with this solution but : what about administrator user ?
I mean, if we have an accounting control, no one could modify an invoice, even admin user.

Is there any settings to make invoice record totally "read only"

Gérald


RE: How to put invoice record in read only after special condition - joebordes - 04-15-2022

no, there isn't. especially considering that an admin can easily get access to the database itself and go directly there to do anything they want

I have this sort of question in planning. My idea is to send the information to immudb or an immutable table in ClickHouse and permit consultation and comparison with the data in MySQL. Not difficult to do but still a bit far away.