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:
parent
fb35ec9d68
commit
d70a8c07f3
|
@ -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";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue