Class MPaySelectionLine

    • Constructor Detail

      • MPaySelectionLine

        public MPaySelectionLine​(Properties ctx,
                                 int C_PaySelectionLine_ID,
                                 String trxName)
        Standard Constructor
        Parameters:
        ctx - context
        C_PaySelectionLine_ID - id
        trxName - transaction
      • MPaySelectionLine

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

        public MPaySelectionLine​(MPaySelection ps,
                                 int Line,
                                 String PaymentRule)
        Parent Constructor
        Parameters:
        ps - parent
        Line - line
        PaymentRule - payment rule
    • Method Detail

      • xsetInvoice

        public void xsetInvoice​(int C_Invoice_ID,
                                boolean isSOTrx,
                                BigDecimal OpenAmt,
                                BigDecimal PayAmt,
                                BigDecimal DiscountAmt)
        Set Invoice Info
        Parameters:
        C_Invoice_ID - invoice
        isSOTrx - sales trx
        PayAmt - payment
        OpenAmt - open
        DiscountAmt - discount
      • setInvoice

        public void setInvoice​(int C_Invoice_ID,
                               boolean isSOTrx,
                               BigDecimal OpenAmt,
                               BigDecimal PayAmt,
                               BigDecimal DiscountAmt,
                               BigDecimal WriteOffAmt)
        Set Invoice Info
        Parameters:
        C_Invoice_ID - invoice
        isSOTrx - sales trx
        PayAmt - payment
        OpenAmt - open
        DiscountAmt - discount
        WriteOffAmt - writeoff
      • getInvoice

        public MInvoice getInvoice()
        Get Invoice
        Returns:
        invoice
      • 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:
        sucess