exception handling processIt on ExpenseAPInvoice.java
This commit is contained in:
parent
bf4464cb9e
commit
4f5cefbff2
|
@ -212,7 +212,11 @@ public class ExpenseAPInvoice extends SvrProcess
|
||||||
if (invoice == null)
|
if (invoice == null)
|
||||||
return;
|
return;
|
||||||
invoice.setDocAction(DocAction.ACTION_Prepare);
|
invoice.setDocAction(DocAction.ACTION_Prepare);
|
||||||
invoice.processIt(DocAction.ACTION_Prepare);
|
if (!invoice.processIt(DocAction.ACTION_Prepare)) {
|
||||||
|
log.warning("Invoice Process Failed: " + invoice + " - " + invoice.getProcessMsg());
|
||||||
|
throw new IllegalStateException("Invoice Process Failed: " + invoice + " - " + invoice.getProcessMsg());
|
||||||
|
|
||||||
|
}
|
||||||
if (!invoice.save())
|
if (!invoice.save())
|
||||||
new IllegalStateException("Cannot save Invoice");
|
new IllegalStateException("Cannot save Invoice");
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in New Issue