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
FieldsModifier and TypeFieldDescriptionprotected BigDecimalprotected Stringprotected Stringprotected Integerprotected static final CLoggerLoggerprotected MPaymentBatchPayment Batchprotected intUsed Bank Accountprotected intPayment Selectionprotected MPaySelectionCheck[]Payment Informationprotected PaymentExportprotected StringExport Class for Bank Accountprotected intWindow Noprotected Stringprotected Integerprotected Double -
Constructor Summary
Constructors -
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 booleangetChecks(String PaymentRule, BigDecimal startDocumentNo, AtomicReference<ValueNamePair> error, String trxName) Get Checksprotected intInstantiate 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 amountvoidloadPaySelectInfo(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
-