public static BigDecimal paidToDate(int p_C_Invoice_ID,int p_C_Currency_ID,int p_MultiplierAP,Timestamp DateAcct) throws SQLException {
  if (p_C_Invoice_ID == 0 || p_C_Currency_ID == 0)   return null;
  BigDecimal MultiplierAP=new BigDecimal((double)p_MultiplierAP);
  if (p_MultiplierAP == 0)   MultiplierAP=Adempiere.ONE;
  int C_ConversionType_ID=0;
  BigDecimal paymentAmt=allocatedAmtToDate(p_C_Invoice_ID,p_C_Currency_ID,C_ConversionType_ID,MultiplierAP,DateAcct);
  return Currency.round(paymentAmt,p_C_Currency_ID,null);
}

public static BigDecimal paidToDate ( int p_C_Invoice_ID , int p_C_Currency_ID , int p_MultiplierAP , Timestamp DateAcct ) throws SQLException { if ( p_C_Invoice_ID == 0 || p_C_Currency_ID == 0 ) return null ; BigDecimal MultiplierAP = new BigDecimal ( ( double ) p_MultiplierAP ) ; if ( p_MultiplierAP == 0 ) MultiplierAP = Adempiere . ONE ; int C_ConversionType_ID = 0 ; BigDecimal paymentAmt = allocatedAmtToDate ( p_C_Invoice_ID , p_C_Currency_ID , C_ConversionType_ID , MultiplierAP , DateAcct ) ; return Currency . round ( paymentAmt , p_C_Currency_ID , null ) ; }
get invoice paid ( allocated ) amount . - invoicepaid
