Is there any way to track deleted lines of transac...
# suitescript
m
Is there any way to track deleted lines of transactions? I don't care if we need to write UserEvent but I don't know how to track the delete lines in UserEvent. I would appreciate if somebody can help me on this?
b
use the oldRecord
m
Do you think using that I can get the old GL entires
Like this on GL Entries
of purchase order
b
you can probably get the old one doing a search beforeSubmit or the new ones doing a search afterSubmit
m
do I need to use search in beforeSubmit or afterSubmit. How do i compare the lines with search any idea?
b
during beforeSubmit, the record has not been saved to the database yet
so a search or query would get the original gl data for the transaction
similarly, a search or query during afterSubmit would get the new gl data for the transaction, since it has been saved to the database
you may want to consider a Custom GL Lines Plug-in for gl related work
though im not sure if it would help if you dont actually want to modify the gl
m
OK, great good idea, Thanks @battk