Package org.openbravo.advpaymentmngt.dao
Class AdvPaymentMngtDao
- java.lang.Object
-
- org.openbravo.advpaymentmngt.dao.AdvPaymentMngtDao
-
public class AdvPaymentMngtDao extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AdvPaymentMngtDao.PaymentDirection
-
Field Summary
-
Constructor Summary
Constructors Constructor Description AdvPaymentMngtDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createAPRMReadyPreference()
Create a preference to be able to determine that the instance is ready to use APRM.void
duplicateScheduleDetail(FIN_PaymentScheduleDetail paymentScheduleDetail, BigDecimal writeoffAmount)
void
duplicateScheduleDetail(FIN_PaymentScheduleDetail paymentScheduleDetail, BigDecimal writeoffAmount, BigDecimal debtAmount)
boolean
existsAPRMReadyPreference()
FIN_Payment
getCreditPayment(Organization organization, BusinessPartner businessPartner, BigDecimal amount, Currency currency, boolean isReceipt, Date toDate)
Gets the oldest credit payment for the given parametersFIN_Payment
getCreditPayment(Invoice invoice)
Gets the oldest credit payment for the given invoiceBigDecimal
getCustomerCredit(BusinessPartner bp, boolean isReceipt, Organization Org)
BigDecimal
getCustomerCredit(BusinessPartner bp, boolean isReceipt, Organization Org, Currency currency)
List<FIN_Payment>
getCustomerPaymentsWithCredit(Organization org, BusinessPartner bp, boolean isReceipt)
Returns the list of credit payments for the selected business partner that belongs to the legal entity's natural tree of the given organizationList<FIN_Payment>
getCustomerPaymentsWithCredit(Organization org, BusinessPartner bp, boolean isReceipt, Currency currency)
Returns the list of credit payments for the selected business partner that belongs to the legal entity's natural tree of the given organizationList<FIN_Payment>
getCustomerPaymentsWithUsedCredit(BusinessPartner bp, Boolean isReceipt)
String
getDefaultPaymentMethodId(FIN_FinancialAccount account, boolean paymentIn)
PaymentExecutionProcess
getExecutionProcess(FIN_FinancialAccount account, FIN_PaymentMethod paymentMethod, Boolean receipt)
PaymentExecutionProcess
getExecutionProcess(FIN_Payment payment)
List<FIN_FinancialAccount>
getFilteredFinancialAccounts(String strPaymentMethodId, String strOrgId, String strCurrencyId, AdvPaymentMngtDao.PaymentDirection paymentDirection)
List<FIN_PaymentMethod>
getFilteredPaymentMethods(String strFinancialAccountId, String strOrgId, boolean excludePaymentMethodWithoutAccount, AdvPaymentMngtDao.PaymentDirection paymentDirection)
FinAccPaymentMethod
getFinancialAccountPaymentMethod(FIN_FinancialAccount account, FIN_PaymentMethod paymentMethod)
FIN_FinaccTransaction
getFinancialTransaction(FIN_Payment payment)
List<PaymentExecutionProcessParameter>
getInPaymentExecutionParameters(PaymentExecutionProcess executionProcess)
List<FIN_PaymentScheduleDetail>
getInvoicePendingScheduledPaymentDetails(Invoice invoice)
FIN_FinaccTransaction
getNewFinancialTransaction(Organization organization, FIN_FinancialAccount account, Long line, FIN_Payment payment, String description, Date accountingDate, GLItem glItem, String status, BigDecimal depositAmount, BigDecimal paymentAmount, Project project, Campaign campaing, ABCActivity activity, String transactionType, Date statementDate, Currency paymentCurrency, BigDecimal convertRate, BigDecimal sourceAmount)
FIN_FinaccTransaction
getNewFinancialTransaction(Organization organization, FIN_FinancialAccount account, Long line, FIN_Payment payment, String description, Date accountingDate, GLItem glItem, String status, BigDecimal depositAmount, BigDecimal paymentAmount, Project project, Campaign campaing, ABCActivity activity, String transactionType, Date statementDate, Currency paymentCurrency, BigDecimal convertRate, BigDecimal sourceAmount, BusinessPartner businessPartner, Product product, SalesRegion salesRegion)
FIN_FinaccTransaction
getNewFinancialTransaction(Organization organization, FIN_FinancialAccount account, Long line, FIN_Payment payment, String description, Date accountingDate, GLItem glItem, String status, BigDecimal depositAmount, BigDecimal paymentAmount, Project project, Campaign campaing, ABCActivity activity, String transactionType, Date statementDate, Currency paymentCurrency, BigDecimal convertRate, BigDecimal sourceAmount, BusinessPartner businessPartner, Product product, SalesRegion salesRegion, UserDimension1 user1, UserDimension2 user2, Costcenter costcenter)
FIN_Payment
getNewPayment(boolean isReceipt, Organization organization, DocumentType docType, String strPaymentDocumentNo, BusinessPartner businessPartner, FIN_PaymentMethod paymentMethod, FIN_FinancialAccount finAccount, String strPaymentAmount, Date paymentDate, String referenceNo)
FIN_Payment
getNewPayment(boolean isReceipt, Organization organization, DocumentType docType, String strPaymentDocumentNo, BusinessPartner businessPartner, FIN_PaymentMethod paymentMethod, FIN_FinancialAccount finAccount, String strPaymentAmount, Date paymentDate, String referenceNo, Currency paymentCurrency, BigDecimal finTxnConvertRate, BigDecimal finTxnAmount)
FIN_Payment
getNewPayment(boolean isReceipt, Organization organization, DocumentType docType, String strPaymentDocumentNo, BusinessPartner businessPartner, FIN_PaymentMethod paymentMethod, FIN_FinancialAccount finAccount, String strPaymentAmount, Date paymentDate, String referenceNo, Currency paymentCurrency, BigDecimal finTxnConvertRate, BigDecimal finTxnAmount, String paymentId)
FIN_PaymentDetail
getNewPaymentDetail(FIN_Payment payment, FIN_PaymentScheduleDetail paymentScheduleDetail, BigDecimal paymentDetailAmount, BigDecimal writeoffAmount, boolean isRefund, GLItem glitem)
FIN_PaymentDetail
getNewPaymentDetail(FIN_Payment payment, FIN_PaymentScheduleDetail paymentScheduleDetail, BigDecimal paymentDetailAmount, BigDecimal writeoffAmount, boolean isRefund, GLItem glitem, boolean doFlush, String paymentId)
FIN_PaymentPropDetail
getNewPaymentProposalDetail(Organization organization, FIN_PaymentProposal paymentProposal, FIN_PaymentScheduleDetail paymentScheduleDetail, BigDecimal amount, BigDecimal writeoffamount, GLItem glitem)
PaymentRun
getNewPaymentRun(String sourceType, PaymentExecutionProcess executionProcess, Organization organization)
PaymentRunParameter
getNewPaymentRunParameter(PaymentRun paymentRun, PaymentExecutionProcessParameter parameter, String value)
PaymentRunPayment
getNewPaymentRunPayment(PaymentRun paymentRun, FIN_Payment payment)
FIN_PaymentSchedule
getNewPaymentSchedule(Client client, Organization organization, Invoice invoice, Order order, Currency currency, Date dueDate, FIN_PaymentMethod paymentMethod, BigDecimal amount)
Creates a new payment scheduleFIN_PaymentScheduleDetail
getNewPaymentScheduleDetail(Organization organization, BigDecimal amount)
FIN_PaymentScheduleDetail
getNewPaymentScheduleDetail(Organization organization, BigDecimal amount, String paymentId)
FIN_PaymentScheduleDetail
getNewPaymentScheduleDetail(Organization organization, BigDecimal amount, BusinessPartner businessPartner, Product product, Project project, Campaign campaign, ABCActivity activity, SalesRegion salesRegion)
Returns a new FIN_PaymentScheduleDetail for the given accounting dimensionsFIN_PaymentScheduleDetail
getNewPaymentScheduleDetail(Organization organization, BigDecimal amount, BusinessPartner businessPartner, Product product, Project project, Campaign campaign, ABCActivity activity, SalesRegion salesRegion, Costcenter costCenter, UserDimension1 user1, UserDimension2 user2)
Returns a new FIN_PaymentScheduleDetail for the given accounting dimensionsFIN_PaymentScheduleDetail
getNewPaymentScheduleDetail(FIN_PaymentSchedule invoicePS, FIN_PaymentSchedule orderPS, BigDecimal amount, BigDecimal writeOff, FIN_PaymentDetail paymentDetail)
Creates a new payment schedule detail taking info from provided payment scheduleFIN_Reconciliation
getNewReconciliation(Organization org, FIN_FinancialAccount account, String documentNo, DocumentType docType, Date dateTo, Date statementDate, BigDecimal startingBalance, BigDecimal endingBalance, String docStatus)
<T extends BaseOBObject>
TgetObject(Class<T> t, String strId)
List<FIN_PaymentPropDetail>
getOrderedPaymentProposalDetails(FIN_PaymentProposal paymentProposal)
List<FIN_PaymentScheduleDetail>
getOrderPendingScheduledPaymentDetails(Order order)
List<FIN_Payment>
getPayExecRowCount(String organizationId, String paymentMethodId, String financialAccountId, Date dateFrom, Date dateTo, int offset, int pageSize, String strOrderByProperty, String strAscDesc, boolean isReceipt)
This method returns list of Payments that are in Awaiting Execution status and filtered by the following parameters.List<FIN_Payment>
getPaymentProposalPayments(FIN_PaymentProposal paymentProposal)
List<FIN_Payment>
getPendingExecutionPayments(String strInvoiceId)
List<APRMPendingPaymentFromInvoice>
getPendingPayments()
boolean
hasNotDeferredExecutionProcess(FIN_FinancialAccount account, FIN_PaymentMethod paymentMethod, Boolean isReceipt)
boolean
isAutomatedExecutionPayment(FIN_FinancialAccount account, FIN_PaymentMethod paymentMethod, boolean isReceipt)
boolean
isAutomaticExecutionProcess(PaymentExecutionProcess executionProcess)
boolean
isPaymentBeingExecuted(FIN_Payment payment)
boolean
isPaymentMadeStatus(String paymentStatus)
Returns true in case the provided status of the payment has already recognized the amount as paidvoid
removeFromExecutionPending(FIN_Payment payment)
void
removePaymentSchedule(FIN_PaymentSchedule fin_PaymentSchedule)
Deletes from database a given fin_payment_schedule rowvoid
removePaymentScheduleDetail(FIN_PaymentScheduleDetail fin_PaymentScheduleDetail)
Removes a payment schedule detail row from databasevoid
setPaymentExecuting(FIN_Payment payment, boolean executing)
-
-
-
Field Detail
-
PAYMENT_STATUS_AWAITING_EXECUTION
public final String PAYMENT_STATUS_AWAITING_EXECUTION
- See Also:
- Constant Field Values
-
PAYMENT_STATUS_CANCELED
public final String PAYMENT_STATUS_CANCELED
- See Also:
- Constant Field Values
-
PAYMENT_STATUS_PAYMENT_CLEARED
public final String PAYMENT_STATUS_PAYMENT_CLEARED
- See Also:
- Constant Field Values
-
PAYMENT_STATUS_DEPOSIT_NOT_CLEARED
public final String PAYMENT_STATUS_DEPOSIT_NOT_CLEARED
- See Also:
- Constant Field Values
-
PAYMENT_STATUS_PAYMENT_MADE
public final String PAYMENT_STATUS_PAYMENT_MADE
- See Also:
- Constant Field Values
-
PAYMENT_STATUS_AWAITING_PAYMENT
public final String PAYMENT_STATUS_AWAITING_PAYMENT
- See Also:
- Constant Field Values
-
PAYMENT_STATUS_WITHDRAWAL_NOT_CLEARED
public final String PAYMENT_STATUS_WITHDRAWAL_NOT_CLEARED
- See Also:
- Constant Field Values
-
PAYMENT_STATUS_PAYMENT_RECEIVED
public final String PAYMENT_STATUS_PAYMENT_RECEIVED
- See Also:
- Constant Field Values
-
-
Method Detail
-
getObject
public <T extends BaseOBObject> T getObject(Class<T> t, String strId)
-
getInvoicePendingScheduledPaymentDetails
public List<FIN_PaymentScheduleDetail> getInvoicePendingScheduledPaymentDetails(Invoice invoice)
-
getOrderPendingScheduledPaymentDetails
public List<FIN_PaymentScheduleDetail> getOrderPendingScheduledPaymentDetails(Order order)
-
getNewPayment
public FIN_Payment getNewPayment(boolean isReceipt, Organization organization, DocumentType docType, String strPaymentDocumentNo, BusinessPartner businessPartner, FIN_PaymentMethod paymentMethod, FIN_FinancialAccount finAccount, String strPaymentAmount, Date paymentDate, String referenceNo)
-
getNewPayment
public FIN_Payment getNewPayment(boolean isReceipt, Organization organization, DocumentType docType, String strPaymentDocumentNo, BusinessPartner businessPartner, FIN_PaymentMethod paymentMethod, FIN_FinancialAccount finAccount, String strPaymentAmount, Date paymentDate, String referenceNo, Currency paymentCurrency, BigDecimal finTxnConvertRate, BigDecimal finTxnAmount)
-
getNewPayment
public FIN_Payment getNewPayment(boolean isReceipt, Organization organization, DocumentType docType, String strPaymentDocumentNo, BusinessPartner businessPartner, FIN_PaymentMethod paymentMethod, FIN_FinancialAccount finAccount, String strPaymentAmount, Date paymentDate, String referenceNo, Currency paymentCurrency, BigDecimal finTxnConvertRate, BigDecimal finTxnAmount, String paymentId)
-
getNewPaymentDetail
public FIN_PaymentDetail getNewPaymentDetail(FIN_Payment payment, FIN_PaymentScheduleDetail paymentScheduleDetail, BigDecimal paymentDetailAmount, BigDecimal writeoffAmount, boolean isRefund, GLItem glitem)
-
getNewPaymentDetail
public FIN_PaymentDetail getNewPaymentDetail(FIN_Payment payment, FIN_PaymentScheduleDetail paymentScheduleDetail, BigDecimal paymentDetailAmount, BigDecimal writeoffAmount, boolean isRefund, GLItem glitem, boolean doFlush, String paymentId)
-
getNewPaymentScheduleDetail
public FIN_PaymentScheduleDetail getNewPaymentScheduleDetail(Organization organization, BigDecimal amount, String paymentId)
-
getNewPaymentScheduleDetail
public FIN_PaymentScheduleDetail getNewPaymentScheduleDetail(Organization organization, BigDecimal amount)
-
getNewPaymentScheduleDetail
public FIN_PaymentScheduleDetail getNewPaymentScheduleDetail(Organization organization, BigDecimal amount, BusinessPartner businessPartner, Product product, Project project, Campaign campaign, ABCActivity activity, SalesRegion salesRegion, Costcenter costCenter, UserDimension1 user1, UserDimension2 user2)
Returns a new FIN_PaymentScheduleDetail for the given accounting dimensions- Parameters:
organization
-amount
-businessPartner
- accounting dimensionproduct
- accounting dimensionproject
- accounting dimensioncampaign
- accounting dimensionactivity
- accounting dimensionsalesRegion
- accounting dimensioncostCenter
- accounting dimensionuser1
- accounting dimensionuser2
- accounting dimension
-
getNewPaymentScheduleDetail
public FIN_PaymentScheduleDetail getNewPaymentScheduleDetail(Organization organization, BigDecimal amount, BusinessPartner businessPartner, Product product, Project project, Campaign campaign, ABCActivity activity, SalesRegion salesRegion)
Returns a new FIN_PaymentScheduleDetail for the given accounting dimensions- Parameters:
organization
-amount
-businessPartner
- accounting dimensionproduct
- accounting dimensionproject
- accounting dimensioncampaign
- accounting dimensionactivity
- accounting dimensionsalesRegion
- accounting dimension
-
getNewPaymentSchedule
public FIN_PaymentSchedule getNewPaymentSchedule(Client client, Organization organization, Invoice invoice, Order order, Currency currency, Date dueDate, FIN_PaymentMethod paymentMethod, BigDecimal amount)
Creates a new payment schedule
-
getNewPaymentScheduleDetail
public FIN_PaymentScheduleDetail getNewPaymentScheduleDetail(FIN_PaymentSchedule invoicePS, FIN_PaymentSchedule orderPS, BigDecimal amount, BigDecimal writeOff, FIN_PaymentDetail paymentDetail)
Creates a new payment schedule detail taking info from provided payment schedule
-
getNewPaymentProposalDetail
public FIN_PaymentPropDetail getNewPaymentProposalDetail(Organization organization, FIN_PaymentProposal paymentProposal, FIN_PaymentScheduleDetail paymentScheduleDetail, BigDecimal amount, BigDecimal writeoffamount, GLItem glitem)
-
getFinancialTransaction
public FIN_FinaccTransaction getFinancialTransaction(FIN_Payment payment)
-
getNewFinancialTransaction
public FIN_FinaccTransaction getNewFinancialTransaction(Organization organization, FIN_FinancialAccount account, Long line, FIN_Payment payment, String description, Date accountingDate, GLItem glItem, String status, BigDecimal depositAmount, BigDecimal paymentAmount, Project project, Campaign campaing, ABCActivity activity, String transactionType, Date statementDate, Currency paymentCurrency, BigDecimal convertRate, BigDecimal sourceAmount)
-
getNewFinancialTransaction
public FIN_FinaccTransaction getNewFinancialTransaction(Organization organization, FIN_FinancialAccount account, Long line, FIN_Payment payment, String description, Date accountingDate, GLItem glItem, String status, BigDecimal depositAmount, BigDecimal paymentAmount, Project project, Campaign campaing, ABCActivity activity, String transactionType, Date statementDate, Currency paymentCurrency, BigDecimal convertRate, BigDecimal sourceAmount, BusinessPartner businessPartner, Product product, SalesRegion salesRegion)
-
getNewFinancialTransaction
public FIN_FinaccTransaction getNewFinancialTransaction(Organization organization, FIN_FinancialAccount account, Long line, FIN_Payment payment, String description, Date accountingDate, GLItem glItem, String status, BigDecimal depositAmount, BigDecimal paymentAmount, Project project, Campaign campaing, ABCActivity activity, String transactionType, Date statementDate, Currency paymentCurrency, BigDecimal convertRate, BigDecimal sourceAmount, BusinessPartner businessPartner, Product product, SalesRegion salesRegion, UserDimension1 user1, UserDimension2 user2, Costcenter costcenter)
-
getNewReconciliation
public FIN_Reconciliation getNewReconciliation(Organization org, FIN_FinancialAccount account, String documentNo, DocumentType docType, Date dateTo, Date statementDate, BigDecimal startingBalance, BigDecimal endingBalance, String docStatus)
-
getNewPaymentRun
public PaymentRun getNewPaymentRun(String sourceType, PaymentExecutionProcess executionProcess, Organization organization)
-
getNewPaymentRunPayment
public PaymentRunPayment getNewPaymentRunPayment(PaymentRun paymentRun, FIN_Payment payment)
-
getNewPaymentRunParameter
public PaymentRunParameter getNewPaymentRunParameter(PaymentRun paymentRun, PaymentExecutionProcessParameter parameter, String value)
-
duplicateScheduleDetail
public void duplicateScheduleDetail(FIN_PaymentScheduleDetail paymentScheduleDetail, BigDecimal writeoffAmount)
-
duplicateScheduleDetail
public void duplicateScheduleDetail(FIN_PaymentScheduleDetail paymentScheduleDetail, BigDecimal writeoffAmount, BigDecimal debtAmount)
-
removePaymentSchedule
public void removePaymentSchedule(FIN_PaymentSchedule fin_PaymentSchedule)
Deletes from database a given fin_payment_schedule row
-
removePaymentScheduleDetail
public void removePaymentScheduleDetail(FIN_PaymentScheduleDetail fin_PaymentScheduleDetail)
Removes a payment schedule detail row from database
-
getOrderedPaymentProposalDetails
public List<FIN_PaymentPropDetail> getOrderedPaymentProposalDetails(FIN_PaymentProposal paymentProposal)
-
getFilteredPaymentMethods
public List<FIN_PaymentMethod> getFilteredPaymentMethods(String strFinancialAccountId, String strOrgId, boolean excludePaymentMethodWithoutAccount, AdvPaymentMngtDao.PaymentDirection paymentDirection)
-
getDefaultPaymentMethodId
public String getDefaultPaymentMethodId(FIN_FinancialAccount account, boolean paymentIn)
-
getFilteredFinancialAccounts
public List<FIN_FinancialAccount> getFilteredFinancialAccounts(String strPaymentMethodId, String strOrgId, String strCurrencyId, AdvPaymentMngtDao.PaymentDirection paymentDirection)
-
getFinancialAccountPaymentMethod
public FinAccPaymentMethod getFinancialAccountPaymentMethod(FIN_FinancialAccount account, FIN_PaymentMethod paymentMethod)
-
isAutomatedExecutionPayment
public boolean isAutomatedExecutionPayment(FIN_FinancialAccount account, FIN_PaymentMethod paymentMethod, boolean isReceipt)
-
hasNotDeferredExecutionProcess
public boolean hasNotDeferredExecutionProcess(FIN_FinancialAccount account, FIN_PaymentMethod paymentMethod, Boolean isReceipt)
-
getExecutionProcess
public PaymentExecutionProcess getExecutionProcess(FIN_Payment payment)
-
getExecutionProcess
public PaymentExecutionProcess getExecutionProcess(FIN_FinancialAccount account, FIN_PaymentMethod paymentMethod, Boolean receipt)
-
isAutomaticExecutionProcess
public boolean isAutomaticExecutionProcess(PaymentExecutionProcess executionProcess)
-
getInPaymentExecutionParameters
public List<PaymentExecutionProcessParameter> getInPaymentExecutionParameters(PaymentExecutionProcess executionProcess)
-
getPaymentProposalPayments
public List<FIN_Payment> getPaymentProposalPayments(FIN_PaymentProposal paymentProposal)
-
getPayExecRowCount
public List<FIN_Payment> getPayExecRowCount(String organizationId, String paymentMethodId, String financialAccountId, Date dateFrom, Date dateTo, int offset, int pageSize, String strOrderByProperty, String strAscDesc, boolean isReceipt)
This method returns list of Payments that are in Awaiting Execution status and filtered by the following parameters.- Parameters:
organizationId
- OrganizationpaymentMethodId
- Payment Method used for the payment.financialAccountId
- Financial Account used for the payment.dateFrom
- Optional. Filters payments made after the specified date.dateTo
- Optional. Filters payments made before the specified date.offset
- Starting register number.pageSize
- Limited the max number of results.strOrderByProperty
- Property used for ordering the results.strAscDesc
- if true order by asc, if false order by descisReceipt
- if true sales, if false purchase- Returns:
- Filtered Payment list.
-
getPendingExecutionPayments
public List<FIN_Payment> getPendingExecutionPayments(String strInvoiceId)
-
setPaymentExecuting
public void setPaymentExecuting(FIN_Payment payment, boolean executing)
-
isPaymentBeingExecuted
public boolean isPaymentBeingExecuted(FIN_Payment payment)
-
removeFromExecutionPending
public void removeFromExecutionPending(FIN_Payment payment)
-
getPendingPayments
public List<APRMPendingPaymentFromInvoice> getPendingPayments()
-
getCustomerCredit
public BigDecimal getCustomerCredit(BusinessPartner bp, boolean isReceipt, Organization Org)
-
getCustomerCredit
public BigDecimal getCustomerCredit(BusinessPartner bp, boolean isReceipt, Organization Org, Currency currency)
-
getCustomerPaymentsWithCredit
public List<FIN_Payment> getCustomerPaymentsWithCredit(Organization org, BusinessPartner bp, boolean isReceipt)
Returns the list of credit payments for the selected business partner that belongs to the legal entity's natural tree of the given organization
-
getCustomerPaymentsWithCredit
public List<FIN_Payment> getCustomerPaymentsWithCredit(Organization org, BusinessPartner bp, boolean isReceipt, Currency currency)
Returns the list of credit payments for the selected business partner that belongs to the legal entity's natural tree of the given organization
-
getCustomerPaymentsWithUsedCredit
public List<FIN_Payment> getCustomerPaymentsWithUsedCredit(BusinessPartner bp, Boolean isReceipt)
-
existsAPRMReadyPreference
public boolean existsAPRMReadyPreference()
-
createAPRMReadyPreference
public void createAPRMReadyPreference()
Create a preference to be able to determine that the instance is ready to use APRM.
-
getCreditPayment
public FIN_Payment getCreditPayment(Organization organization, BusinessPartner businessPartner, BigDecimal amount, Currency currency, boolean isReceipt, Date toDate)
Gets the oldest credit payment for the given parameters- Parameters:
organization
-businessPartner
-amount
-currency
-isReceipt
-toDate
-- Returns:
- if exists, returns the credit payment, else returns null
-
getCreditPayment
public FIN_Payment getCreditPayment(Invoice invoice)
Gets the oldest credit payment for the given invoice- Parameters:
invoice
-- Returns:
- if exists, returns the credit payment, else returns null
-
isPaymentMadeStatus
public boolean isPaymentMadeStatus(String paymentStatus)
Returns true in case the provided status of the payment has already recognized the amount as paid
-
-