exception handling processIt on ImportInvoice.java
This commit is contained in:
parent
1bcf538411
commit
f0b5dc0592
|
@ -644,7 +644,11 @@ public class ImportInvoice extends SvrProcess
|
||||||
{
|
{
|
||||||
if (invoice != null)
|
if (invoice != null)
|
||||||
{
|
{
|
||||||
invoice.processIt(m_docAction);
|
if (!invoice.processIt(m_docAction)) {
|
||||||
|
log.warning("Invoice Process Failed: " + invoice + " - " + invoice.getProcessMsg());
|
||||||
|
throw new IllegalStateException("Invoice Process Failed: " + invoice + " - " + invoice.getProcessMsg());
|
||||||
|
|
||||||
|
}
|
||||||
invoice.saveEx();
|
invoice.saveEx();
|
||||||
}
|
}
|
||||||
// Group Change
|
// Group Change
|
||||||
|
@ -740,7 +744,11 @@ public class ImportInvoice extends SvrProcess
|
||||||
}
|
}
|
||||||
if (invoice != null)
|
if (invoice != null)
|
||||||
{
|
{
|
||||||
invoice.processIt (m_docAction);
|
if(!invoice.processIt (m_docAction)) {
|
||||||
|
log.warning("Invoice Process Failed: " + invoice + " - " + invoice.getProcessMsg());
|
||||||
|
throw new IllegalStateException("Invoice Process Failed: " + invoice + " - " + invoice.getProcessMsg());
|
||||||
|
|
||||||
|
}
|
||||||
invoice.saveEx();
|
invoice.saveEx();
|
||||||
}
|
}
|
||||||
rs.close();
|
rs.close();
|
||||||
|
|
Loading…
Reference in New Issue