Class MPaymentTerm

    • Constructor Detail

      • MPaymentTerm

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

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

      • getSchedule

        public MPaySchedule[] getSchedule​(boolean requery)
        Get Payment Schedule
        Parameters:
        requery - if true re-query
        Returns:
        array of schedule
      • validate

        public String validate()
        Validate Payment Term and Schedule
        Returns:
        Validation Message @OK@ or error
      • apply

        public boolean apply​(int C_Invoice_ID)
        Apply Payment Term to Invoice -
        Parameters:
        C_Invoice_ID - invoice
        Returns:
        true if payment schedule is valid
      • apply

        public boolean apply​(MInvoice invoice)
        Apply Payment Term to Invoice
        Parameters:
        invoice - invoice
        Returns:
        true if payment schedule is valid
      • applyOrder

        public boolean applyOrder​(int C_Order_ID)
        Apply Payment Term to Order -
        Parameters:
        C_Order_ID - order
        Returns:
        true if payment schedule is valid
      • applyOrder

        public boolean applyOrder​(MOrder order)
        Apply Payment Term to Order
        Parameters:
        order - order
        Returns:
        true if payment schedule is valid
      • beforeSave

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