Class MAllocationLine

    • Constructor Detail

      • MAllocationLine

        public MAllocationLine​(Properties ctx,
                               int C_AllocationLine_ID,
                               String trxName)
        Standard Constructor
        Parameters:
        ctx - context
        C_AllocationLine_ID - id
        trxName - name
      • MAllocationLine

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

        public MAllocationLine​(MAllocationHdr parent)
        Parent Constructor
        Parameters:
        parent - parent
      • MAllocationLine

        public MAllocationLine​(MAllocationHdr parent,
                               BigDecimal Amount,
                               BigDecimal DiscountAmt,
                               BigDecimal WriteOffAmt,
                               BigDecimal OverUnderAmt)
        Parent Constructor
        Parameters:
        parent - parent
        Amount - amount
        DiscountAmt - optional discount
        WriteOffAmt - optional write off
        OverUnderAmt - over/underpayment
    • Method Detail

      • getParent

        public MAllocationHdr getParent()
        Get Parent
        Returns:
        parent
      • setParent

        protected void setParent​(MAllocationHdr parent)
        Set Parent
        Parameters:
        parent - parent
      • setDocInfo

        public void setDocInfo​(int C_BPartner_ID,
                               int C_Order_ID,
                               int C_Invoice_ID)
        Set Document Info
        Parameters:
        C_BPartner_ID - partner
        C_Order_ID - order
        C_Invoice_ID - invoice
      • setPaymentInfo

        public void setPaymentInfo​(int C_Payment_ID,
                                   int C_CashLine_ID)
        Set Payment Info
        Parameters:
        C_Payment_ID - payment
        C_CashLine_ID - cash line
      • getInvoice

        public MInvoice getInvoice()
        Get Invoice
        Returns:
        invoice or null
      • beforeSave

        protected boolean beforeSave​(boolean newRecord)
        Before Save
        Overrides:
        beforeSave in class PO
        Parameters:
        newRecord -
        Returns:
        save
      • beforeDelete

        protected boolean beforeDelete()
        Before Delete
        Overrides:
        beforeDelete in class PO
        Returns:
        true if reversed
      • processIt

        protected int processIt​(boolean reverse)
        Process Allocation (does not update line). - Update and Link Invoice/Payment/Cash
        Parameters:
        reverse - if true allocation is reversed
        Returns:
        C_BPartner_ID