Class PaymentWorker
java.lang.Object
org.apache.ofbiz.accounting.payment.PaymentWorker
Worker methods for Payments
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<Map<String,
GenericValue>> getPartyPaymentMethodValueMaps
(Delegator delegator, String partyId) static List<Map<String,
GenericValue>> getPartyPaymentMethodValueMaps
(Delegator delegator, String partyId, Boolean showOld) static GenericValue
getPaymentAddress
(Delegator delegator, String partyId) static BigDecimal
getPaymentApplied
(Delegator delegator, String paymentId) Method to return the total amount of an payment which is applied to a paymentstatic BigDecimal
getPaymentApplied
(Delegator delegator, String paymentId, Boolean actual) static BigDecimal
getPaymentApplied
(GenericValue payment) Method to return the total amount of an payment which is applied to a paymentstatic BigDecimal
getPaymentApplied
(GenericValue payment, Boolean actual) Method to return the total amount of a payment which is applied to a paymentstatic BigDecimal
getPaymentAppliedAmount
(Delegator delegator, String paymentApplicationId) Method to return the amount applied converted to the currency of paymentgetPaymentMethodAndRelated
(ServletRequest request, String partyId) static BigDecimal
getPaymentNotApplied
(Delegator delegator, String paymentId) static BigDecimal
getPaymentNotApplied
(Delegator delegator, String paymentId, Boolean actual) static BigDecimal
getPaymentNotApplied
(GenericValue payment) static BigDecimal
getPaymentNotApplied
(GenericValue payment, Boolean actual) static BigDecimal
getPaymentsTotal
(List<GenericValue> payments) Returns the total from a list of Payment entities
-
Method Details
-
getPartyPaymentMethodValueMaps
-
getPartyPaymentMethodValueMaps
-
getPaymentMethodAndRelated
-
getPaymentAddress
-
getPaymentsTotal
Returns the total from a list of Payment entities- Parameters:
payments
- List of Payment GenericValue items- Returns:
- total payments as BigDecimal
-
getPaymentApplied
Method to return the total amount of an payment which is applied to a payment- Parameters:
delegator
- the delegatorpaymentId
- paymentId of the Payment- Returns:
- the applied total as BigDecimal
-
getPaymentApplied
-
getPaymentAppliedAmount
Method to return the amount applied converted to the currency of payment- Parameters:
paymentApplicationId
- the payment application id- Returns:
- appliedAmount the applied amount as BigDecimal
-
getPaymentApplied
Method to return the total amount of an payment which is applied to a payment- Parameters:
payment
- GenericValue object of the Payment- Returns:
- the applied total as BigDecimal in the currency of the payment
-
getPaymentApplied
Method to return the total amount of a payment which is applied to a payment- Parameters:
payment
- GenericValue object of the Paymentactual
- false for currency of the payment, true for the actual currency- Returns:
- the applied total as BigDecimal in the currency of the payment
-
getPaymentNotApplied
-
getPaymentNotApplied
-
getPaymentNotApplied
-
getPaymentNotApplied
public static BigDecimal getPaymentNotApplied(Delegator delegator, String paymentId, Boolean actual)
-