Package org.compiere.util
Class GenericPaymentExport
java.lang.Object
org.compiere.util.GenericPaymentExport
- All Implemented Interfaces:
PaymentExport
Generic Payment Export.
Sample implementation of Payment Export Interface - brought here from MPaySelectionCheck
Sample implementation of Payment Export Interface - brought here from MPaySelectionCheck
- Author:
- Jorg Janke Contributors: Carlos Ruiz - GlobalQSS - FR 3132033 - Make payment export class configurable per bank
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintexportToFile(MPaySelectionCheck[] checks, boolean depositBatch, String paymentRule, File file, StringBuffer err) Export to FileGet the content type from plugin e.g.booleanDefault if supportsDepositBatch is true and supportsSeparateBooking is trueGet the filename prefix from plugin e.g.Get the filename suffix from plugin e.g. ".xml"booleanPlugin supports deposit batchbooleanPlugin supports booking payments separate on bank statement (no deposit batch)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.compiere.util.PaymentExport
exportToFile
-
Constructor Details
-
GenericPaymentExport
public GenericPaymentExport()
-
-
Method Details
-
exportToFile
public int exportToFile(MPaySelectionCheck[] checks, boolean depositBatch, String paymentRule, File file, StringBuffer err) Export to File- Specified by:
exportToFilein interfacePaymentExport- Parameters:
checks- array of checksdepositBatch- book the payments as single positionpaymentRule- selected payment rulefile- file to export checks- Returns:
- number of lines
-
getFilenamePrefix
Description copied from interface:PaymentExportGet the filename prefix from plugin e.g. "SEPA-Credit-Transfer-"- Specified by:
getFilenamePrefixin interfacePaymentExport- Returns:
- prefix for filename
-
getFilenameSuffix
Description copied from interface:PaymentExportGet the filename suffix from plugin e.g. ".xml"- Specified by:
getFilenameSuffixin interfacePaymentExport- Returns:
- suffix for filename
-
getContentType
Description copied from interface:PaymentExportGet the content type from plugin e.g. "text/xml" or "text/csv"- Specified by:
getContentTypein interfacePaymentExport- Returns:
- content type delivered to browser
-
supportsDepositBatch
public boolean supportsDepositBatch()Description copied from interface:PaymentExportPlugin supports deposit batch- Specified by:
supportsDepositBatchin interfacePaymentExport- Returns:
- true if supported
-
supportsSeparateBooking
public boolean supportsSeparateBooking()Description copied from interface:PaymentExportPlugin supports booking payments separate on bank statement (no deposit batch)- Specified by:
supportsSeparateBookingin interfacePaymentExport- Returns:
- true if supported
-
getDefaultDepositBatch
public boolean getDefaultDepositBatch()Description copied from interface:PaymentExportDefault if supportsDepositBatch is true and supportsSeparateBooking is true- Specified by:
getDefaultDepositBatchin interfacePaymentExport- Returns:
- true if deposit batch should be selected on default, false if deposit batch should not be selected
-