Martin, an idea, not tested, if I understand you correctly you're trying
to print automatically the invoice on the same Process_Invoice workflow.
So, what if instead of printing on that workflow you create a new
workflow with type "Document Value" that is triggered when completing
the invoice - I think those workflows are triggered after commit, so in
theory it must work.
Hi Martin, new idea.
What about the attached ReportStarterTrx.patch
Not tested, but I think that way it sets the transaction for jasper to use the transaction of the workflow.
Regards,
Carlos Ruiz
Hi Martin, new idea.
What about the attached ReportStarterTrx.patch
Not tested, but I think that way it sets the transaction for jasper to use the transaction of the workflow.
Regards,
Carlos Ruiz
You could call the commit within the jasper report.
--
It would rise problems if you do some post-process that requires a full rollback on failure.
But, I guess is not your case, printing the report means that is the last step of your workflow and if printed it must not be rolled back after.
Yes, committing before starting the report can also work without changes to actual core.
--
You received this message because you are subscribed to the Google Groups "iDempiere" group.
To unsubscribe from this group and stop receiving emails from it, send an email to idempiere+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/idempiere/7062e2a4-6d75-bae2-6033-1eb6ab12383f%40gmail.com.