Class FIN_PaymentProcess
- java.lang.Object
-
- org.openbravo.advpaymentmngt.process.FIN_PaymentProcess
-
-
Field Summary
Fields Modifier and Type Field Description BigDecimal
ZERO
-
Fields inherited from interface org.openbravo.scheduling.Process
COMPLETE, ERROR, EXECUTION_ID, KILLED, MISFIRED, PREVENT_CONCURRENT_EXECUTIONS, PROCESS_ID, PROCESS_NAME, PROCESSING, SCHEDULED, SUCCESS, SYSTEM_RESTART, UNSCHEDULED
-
-
Constructor Summary
Constructors Constructor Description FIN_PaymentProcess()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static void
doProcessPayment(FIN_Payment payment, String strAction, Boolean isPosOrder, String paymentDate, String comingFrom)
Deprecated.static void
doProcessPayment(FIN_Payment payment, String strAction, String paymentDate, String comingFrom)
void
execute(ProcessBundle bundle)
boolean
getDocumentConfirmation(ConnectionProvider conn, String strRecordId)
static void
linkCreditPayment(FIN_Payment newPayment, BigDecimal usedAmount, FIN_Payment creditPayment)
static int
removePaymentProposalLines(FIN_PaymentScheduleDetail psd)
Removes the Payment Proposal Lines linked to the Payment Schedule Detail.
-
-
-
Field Detail
-
ZERO
public BigDecimal ZERO
-
-
Method Detail
-
execute
public void execute(ProcessBundle bundle) throws Exception
-
doProcessPayment
public static void doProcessPayment(FIN_Payment payment, String strAction, String paymentDate, String comingFrom) throws OBException
- Throws:
OBException
-
doProcessPayment
@Deprecated public static void doProcessPayment(FIN_Payment payment, String strAction, Boolean isPosOrder, String paymentDate, String comingFrom) throws OBException
Deprecated.- Throws:
OBException
-
linkCreditPayment
public static void linkCreditPayment(FIN_Payment newPayment, BigDecimal usedAmount, FIN_Payment creditPayment)
-
getDocumentConfirmation
public boolean getDocumentConfirmation(ConnectionProvider conn, String strRecordId)
-
removePaymentProposalLines
public static int removePaymentProposalLines(FIN_PaymentScheduleDetail psd)
Removes the Payment Proposal Lines linked to the Payment Schedule Detail. If the payment proposal is already processed, the record is unprocessed first, then affected lines are deleted, and finally it gets back to processed status. This is done to avoid trigger validation errors. A common scenario where you want to delete a payment proposal line is when the payment schedule detail has been deleted- Parameters:
psd
- Payment Schedule Detail- Returns:
- number of Payment Proposal Lines removed
-
-