public boolean apply(int C_Invoice_ID){
  MInvoice invoice=new MInvoice(getCtx(),C_Invoice_ID,get_TrxName());
  if (invoice == null || invoice.get_ID() == 0) {
    log.log(Level.SEVERE,"apply - Not valid C_Invoice_ID=" + C_Invoice_ID);
    return false;
  }
  return apply(invoice);
}

public boolean apply ( int C_Invoice_ID ) { MInvoice invoice = new MInvoice ( getCtx ( ) , C_Invoice_ID , get_TrxName ( ) ) ; if ( invoice == null || invoice . get_ID ( ) == 0 ) { log . log ( Level . SEVERE , "apply - Not valid C_Invoice_ID=" + C_Invoice_ID ) ; return false ; } return apply ( invoice ) ; }
apply payment term to invoice -
