IDEMPIERE-3350 Accounting Processor GL postings to "secondary" schema unreliable. Posted not updated after posting completed with error ( it stay as N ).

This commit is contained in:
Heng Sin Low 2017-07-04 15:21:33 +08:00
parent fb35ec9d68
commit d70a8c07f3
1 changed files with 10 additions and 1 deletions

View File

@ -304,18 +304,27 @@ public class DocManager {
if (error != null && error.trim().length() > 0)
{
if (savepoint != null)
{
trx.rollback(savepoint);
savepoint = null;
}
else
trx.rollback();
return error;
s_log.info("Error Posting " + doc + " to " + as + " Error: " + error);
break;
}
}
else
{
if (savepoint != null)
{
trx.rollback(savepoint);
savepoint = null;
}
else
trx.rollback();
s_log.info("Error Posting " + doc + " to " + as + " Error: NoDoc");
return "NoDoc";
}
}