Class MPaySelectionCheck

    • Constructor Detail

      • MPaySelectionCheck

        public MPaySelectionCheck​(Properties ctx,
                                  int C_PaySelectionCheck_ID,
                                  String trxName)
        Constructor
        Parameters:
        ctx - context
        C_PaySelectionCheck_ID - C_PaySelectionCheck_ID
        trxName - transaction
      • MPaySelectionCheck

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

        public MPaySelectionCheck​(MPaySelectionLine line,
                                  String PaymentRule)
        Create from Line
        Parameters:
        line - payment selection
        PaymentRule - payment rule
      • MPaySelectionCheck

        public MPaySelectionCheck​(MPaySelection ps,
                                  String PaymentRule)
        Create from Pay Selection
        Parameters:
        ps - payment selection
        PaymentRule - payment rule
    • Method Detail

      • getOfPayment

        public static MPaySelectionCheck getOfPayment​(Properties ctx,
                                                      int C_Payment_ID,
                                                      String trxName)
        Get Check for Payment
        Parameters:
        ctx - context
        C_Payment_ID - id
        trxName - transaction
        Returns:
        pay selection check for payment or null
      • createForPayment

        public static MPaySelectionCheck createForPayment​(Properties ctx,
                                                          int C_Payment_ID,
                                                          String trxName)
        Create Check for Payment
        Parameters:
        ctx - context
        C_Payment_ID - id
        trxName - transaction
        Returns:
        pay selection check for payment or null
      • get

        public static MPaySelectionCheck[] get​(int C_PaySelection_ID,
                                               String PaymentRule,
                                               String trxName)
        Get Checks of Payment Selection without check no assignment
        Parameters:
        C_PaySelection_ID - Payment Selection
        PaymentRule - Payment Rule
        trxName - transaction
        Returns:
        array of checks
      • get

        public static MPaySelectionCheck[] get​(int C_PaySelection_ID,
                                               String PaymentRule,
                                               int startDocumentNo,
                                               String trxName)
        Get Checks of Payment Selection
        Parameters:
        C_PaySelection_ID - Payment Selection
        PaymentRule - Payment Rule
        startDocumentNo - start document no
        trxName - transaction
        Returns:
        array of checks
      • confirmPrint

        public static void confirmPrint​(MPaySelectionCheck check,
                                        MPaymentBatch batch)
        Confirm Print for a payment selection check Create Payment the first time
        Parameters:
        check - check
        batch - batch
      • confirmPrint

        public static int confirmPrint​(MPaySelectionCheck[] checks,
                                       MPaymentBatch batch,
                                       boolean createDepositBatch)
        Confirm Print. Create Payments the first time
        Parameters:
        checks - checks
        batch - batch
        createDepositBatch - create deposit batch
        Returns:
        last Document number or 0 if nothing printed
      • confirmPrint

        public static int confirmPrint​(MPaySelectionCheck[] checks,
                                       MPaymentBatch batch)
        Confirm Print. Create Payments the first time
        Parameters:
        checks - checks
        batch - batch
        Returns:
        last Document number or 0 if nothing printed
      • addLine

        public void addLine​(MPaySelectionLine line)
        Add Payment Selection Line
        Parameters:
        line - line
      • getParent

        public MPaySelection getParent()
        Get Parent
        Returns:
        parent
      • isValid

        public boolean isValid()
        Is this a valid Prepared Payment
        Returns:
        true if valid
      • isDirect

        public boolean isDirect()
        Is this a direct Debit or Deposit
        Returns:
        true if direct
      • getPaySelectionLines

        public MPaySelectionLine[] getPaySelectionLines​(boolean requery)
        Get Payment Selection Lines of this check
        Parameters:
        requery - requery
        Returns:
        array of payment selection lines
      • deleteGeneratedDraft

        public static boolean deleteGeneratedDraft​(Properties ctx,
                                                   int C_Payment_ID,
                                                   String trxName)
        Delete Payment Selection when generated as Draft (Print Preview)
        Parameters:
        ctx - context
        C_Payment_ID - id
        trxName - transaction
        Returns: