Class MDunningRunLine

    • Constructor Detail

      • MDunningRunLine

        public MDunningRunLine​(Properties ctx,
                               int C_DunningRunLine_ID,
                               String trxName)
        Standarc Constructor
        Parameters:
        ctx - ctx
        C_DunningRunLine_ID - id
        trxName - transaction
      • MDunningRunLine

        public MDunningRunLine​(Properties ctx,
                               ResultSet rs,
                               String trxName)
        Load Constructor
        Parameters:
        ctx - context
        rs - result set
        trxName - transaction
      • MDunningRunLine

        public MDunningRunLine​(MDunningRunEntry parent)
        Parent Constructor
        Parameters:
        parent - parent
    • Method Detail

      • getInvoice

        public MInvoice getInvoice()
        Get Invoice
        Returns:
        Returns the invoice.
      • setInvoice

        public void setInvoice​(MInvoice invoice)
        Set Invoice
        Parameters:
        invoice - The invoice to set.
      • setInvoice

        public void setInvoice​(int C_Invoice_ID,
                               int C_Currency_ID,
                               BigDecimal GrandTotal,
                               BigDecimal Open,
                               BigDecimal FeeAmount,
                               int DaysDue,
                               boolean IsInDispute,
                               int TimesDunned,
                               int DaysAfterLast)
        Set Invoice
        Parameters:
        C_Invoice_ID -
        C_Currency_ID -
        GrandTotal -
        Open -
        FeeAmount -
        DaysDue -
        IsInDispute -
        TimesDunned -
        DaysAfterLast - not used
      • setFee

        public void setFee​(int C_Currency_ID,
                           BigDecimal FeeAmount)
        Set Fee
        Parameters:
        C_Currency_ID -
        FeeAmount -
      • getPayment

        public MPayment getPayment()
        Get Payment
        Returns:
        Returns the payment.
      • setPayment

        public void setPayment​(int C_Payment_ID,
                               int C_Currency_ID,
                               BigDecimal PayAmt,
                               BigDecimal OpenAmt)
        Set Payment
        Parameters:
        C_Payment_ID -
        C_Currency_ID -
        PayAmt -
        OpenAmt -
      • getC_CurrencyFrom_ID

        public int getC_CurrencyFrom_ID()
        Get Currency From (Invoice/Payment)
        Returns:
        Returns the Currency From
      • getC_CurrencyTo_ID

        public int getC_CurrencyTo_ID()
        Get Currency To from Parent
        Returns:
        Returns the Currency To
      • beforeSave

        protected boolean beforeSave​(boolean newRecord)
        Before Save
        Overrides:
        beforeSave in class PO
        Parameters:
        newRecord - new
        Returns:
        true
      • afterSave

        protected boolean afterSave​(boolean newRecord,
                                    boolean success)
        After Save
        Overrides:
        afterSave in class PO
        Parameters:
        newRecord - new
        success - success
        Returns:
        success
      • afterDelete

        protected boolean afterDelete​(boolean success)
        After Delete
        Overrides:
        afterDelete in class PO
        Parameters:
        success - success
        Returns:
        success