Greeting Mr. @mwogi
I solved this problem as follows:
1- Create a table that contains the changes that occur in the tables(Stock Entry, Delivery Note and Sales invoice).
2- Create a trigger when (insert, update, delete).
But when docstates = 1 (submitted status) trigger not fired
And when docstates = 0 (saved status) trigger fired
I can’t understand what exactly is the problem