[EMAIL PROTECTED] wrote:
I believe that this simple-method should be moved to a java routine surrounded by a begin/commit (can it be done in simple-method?) and a second routine should be written to decrement it in case of an exception before the Invoice record is committed.
This doesn't really have anything to do with the simple-method implementation, which is a fine way to go. It probably has to do with how the service definitions are setup and how the services are called. Chances are this is mistakenly setup to run in a different transaction than the rest of the invoice creation. I can't really fit this in with other priorities right now, so if no one responds with a fix soon the best action is probably to file an issue in Jira and hopefully it will be fixed by the time you need it... -David
