Class PayPrint

java.lang.Object
org.compiere.apps.form.PayPrint
Direct Known Subclasses:
WPayPrint

public class PayPrint extends Object
Form to Print and Export payment.
  • Field Details

    • m_WindowNo

      protected int m_WindowNo
      Window No
    • m_C_BankAccount_ID

      protected int m_C_BankAccount_ID
      Used Bank Account
    • m_PaymentExportClass

      protected String m_PaymentExportClass
      Export Class for Bank Account
    • m_C_PaySelection_ID

      protected int m_C_PaySelection_ID
      Payment Selection
    • m_checks

      protected MPaySelectionCheck[] m_checks
      Payment Information
    • m_batch

      protected MPaymentBatch m_batch
      Payment Batch
    • log

      protected static final CLogger log
      Logger
    • bank

      protected String bank
    • currency

      protected String currency
    • balance

      protected BigDecimal balance
    • m_PaymentExport

      protected PaymentExport m_PaymentExport
    • noPayments

      protected String noPayments
    • documentNo

      protected Integer documentNo
    • sumPayments

      protected Double sumPayments
    • printFormatId

      protected Integer printFormatId
  • Constructor Details

    • PayPrint

      public PayPrint()
  • Method Details

    • loadPaySelectInfo

      public void loadPaySelectInfo(int C_PaySelection_ID)
      Load pay selection (C_PaySelection) details (bank info, balance and payment export class)
      Parameters:
      C_PaySelection_ID -
    • loadPaymentRule

      public ArrayList<ValueNamePair> loadPaymentRule(int C_PaySelection_ID)
      Get payment rules that's applicable to a pay selection record
      Parameters:
      C_PaySelection_ID -
      Returns:
      list of applicable payment rules
    • loadPaymentRuleInfo

      public String loadPaymentRuleInfo(int C_PaySelection_ID, String PaymentRule)
      PaymentRule changed - get next DocumentNo, No of Payments and total pay amount
      Parameters:
      C_PaySelection_ID -
      PaymentRule -
      Returns:
      error message (if any)
    • loadPaymentExportClass

      protected int loadPaymentExportClass(StringBuffer err)
      Instantiate payment export service
      Parameters:
      err - error message buffer
      Returns:
      0 if loaded fine, -1 if failed to load
    • createCheckDocuments

      protected List<File> createCheckDocuments(int startDocumentNo, String paymentRule) throws Exception
      Create PDF documents (usually check) from pay selection check records
      Parameters:
      startDocumentNo -
      paymentRule -
      Returns:
      list of PDF documents
      Throws:
      Exception
    • createRemittanceDocuments

      protected List<File> createRemittanceDocuments()
      Create Remittance Documents (PDF) from pay selection check records
      Returns:
      list of Remittance documents
    • getChecks

      protected boolean getChecks(String PaymentRule, BigDecimal startDocumentNo, AtomicReference<ValueNamePair> error, String trxName)
      Get Checks
      Parameters:
      PaymentRule - Payment Rule
      startDocumentNo -
      error -
      trxName -
      Returns:
      true if payments were created