Hi all,
I have a piece of code to create free text invoice and post it, it works perfectly fine when I run it from job, but when I try doing it from a class I am getting an error "The state of the source document or source document line could not be updated." . I have already generate full CIL , tried to untick cil check box. restarted AOS and cleared sys last value. None of these seems to work.
Wondering if someone has come across a similar issue and have been able to fix it.