Package org.compiere.apps.form
Class PayPrint
java.lang.Object
org.compiere.apps.form.PayPrint
- Direct Known Subclasses:
WPayPrint
Form to Print and Export payment.
-
Field Summary
Modifier and TypeFieldDescriptionprotected BigDecimal
protected String
protected String
protected Integer
protected static final CLogger
Loggerprotected MPaymentBatch
Payment Batchprotected int
Used Bank Accountprotected int
Payment Selectionprotected MPaySelectionCheck[]
Payment Informationprotected PaymentExport
protected String
Export Class for Bank Accountprotected int
Window Noprotected String
protected Integer
protected Double
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateCheckDocuments
(int startDocumentNo, String paymentRule) Create PDF documents (usually check) from pay selection check recordsCreate Remittance Documents (PDF) from pay selection check recordsprotected boolean
getChecks
(String PaymentRule, BigDecimal startDocumentNo, AtomicReference<ValueNamePair> error, String trxName) Get Checksprotected int
Instantiate payment export serviceloadPaymentRule
(int C_PaySelection_ID) Get payment rules that's applicable to a pay selection recordloadPaymentRuleInfo
(int C_PaySelection_ID, String PaymentRule) PaymentRule changed - get next DocumentNo, No of Payments and total pay amountvoid
loadPaySelectInfo
(int C_PaySelection_ID) Load pay selection (C_PaySelection) details (bank info, balance and payment export class)
-
Field Details
-
m_WindowNo
protected int m_WindowNoWindow No -
m_C_BankAccount_ID
protected int m_C_BankAccount_IDUsed Bank Account -
m_PaymentExportClass
Export Class for Bank Account -
m_C_PaySelection_ID
protected int m_C_PaySelection_IDPayment Selection -
m_checks
Payment Information -
m_batch
Payment Batch -
log
Logger -
bank
-
currency
-
balance
-
m_PaymentExport
-
noPayments
-
documentNo
-
sumPayments
-
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
Get payment rules that's applicable to a pay selection record- Parameters:
C_PaySelection_ID
-- Returns:
- list of applicable payment rules
-
loadPaymentRuleInfo
PaymentRule changed - get next DocumentNo, No of Payments and total pay amount- Parameters:
C_PaySelection_ID
-PaymentRule
-- Returns:
- error message (if any)
-
loadPaymentExportClass
Instantiate payment export service- Parameters:
err
- error message buffer- Returns:
- 0 if loaded fine, -1 if failed to load
-
createCheckDocuments
Create PDF documents (usually check) from pay selection check records- Parameters:
startDocumentNo
-paymentRule
-- Returns:
- list of PDF documents
- Throws:
Exception
-
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 RulestartDocumentNo
-error
-trxName
-- Returns:
- true if payments were created
-