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 (error != null && error.trim().length() > 0)
|
||||||
{
|
{
|
||||||
if (savepoint != null)
|
if (savepoint != null)
|
||||||
|
{
|
||||||
trx.rollback(savepoint);
|
trx.rollback(savepoint);
|
||||||
|
savepoint = null;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
trx.rollback();
|
trx.rollback();
|
||||||
return error;
|
s_log.info("Error Posting " + doc + " to " + as + " Error: " + error);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (savepoint != null)
|
if (savepoint != null)
|
||||||
|
{
|
||||||
trx.rollback(savepoint);
|
trx.rollback(savepoint);
|
||||||
|
savepoint = null;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
trx.rollback();
|
trx.rollback();
|
||||||
|
|
||||||
|
s_log.info("Error Posting " + doc + " to " + as + " Error: NoDoc");
|
||||||
return "NoDoc";
|
return "NoDoc";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue