View source | Discuss this page | Page history | Printable version   
Toolbox
Main Page
Upload file
What links here
Recent changes
Help

PDF Books
Add page
Show collection (0 pages)
Collections help

Search

Projects/AdvPaymentMngt/Technical Documentation LinkCreditPayment

This article is protected against manual editing because it is automatically generated from Openbravo meta-data. Learn more about writing and translating such documents.
Padlock.png

This document is outdated. The project has been improved since the document definition.

Contents

Purpose of the project

The purpose of this project is to develop a new enhancement to the Advanced Payables and Receivables module.

Currently when a credit payment is used in one or more payments, there is no direct link between them. This project will create the infrastructure for associating these payments, allowing the user to track the places where the credit payment has been used.

This project is associated with the feature request #18343

Development

For developing this feature request, it will be necessary to modify Core and the Advanced Payables and Receivables module.

Changes in Core

A new table, called FIN_PAYMENT_CREDIT, will be created. This table is in charge of saving the relationship between the credit payments and the payment that consumes them.


Column Name Data Type Nullable
FIN_PAYMENT_CREDIT_ID (Primary key) VARCHAR2(32 BYTE) No
AD_CLIENT_ID VARCHAR2(32 BYTE) No
AD_ORG_ID VARCHAR2(32 BYTE) No
CREATED DATE No
CREATEDBY VARCHAR2(32 BYTE) No
UPDATED DATE No
UPDATEDBY VARCHAR2(32 BYTE) No
ISACTIVE CHAR(1 BYTE) Yes
FIN_PAYMENT_ID VARCHAR2(32 BYTE) No
FIN_PAYMENT_ID_USED VARCHAR2(32 BYTE) No
AMOUNT NUMBER No
C_CURRENCY_ID VARCHAR2(32 BYTE) No

This table will be associated with a new tab called Used Credit displayed in the Payment In and Payment Out windows. In case of payment that has used credit, this tab will display the credit payments consumed. Several credit payments can be consumed for a single payment, that's why we use a table instead of a field inside the Payment In/Out windows.

In case the user would want to know in which payments a concrete credit payment has been used, he can use the Linked Items feature inside the Payment In/Out window of the credit payment.


Changes in Advanced Payables and Receivables module

When processing a payment, the new Used Credit tab will be populate in case one or more credit payment has been used in the processed payment.

In case of reactivating or voiding a payment that has used credit payments, the previous relationships to the credit payments will be cleaned.

Aprm link credit.png

The Java class in charge of the Processing Payments logic is the org.openbravo.advpaymentmngt.process.FIN_PaymentProcess:

Retrieved from "http://wiki.openbravo.com/wiki/Projects/AdvPaymentMngt/Technical_Documentation_LinkCreditPayment"

This page has been accessed 633 times. This page was last modified on 21 November 2011, at 17:50. Content is available under Creative Commons Attribution-ShareAlike 2.5 Spain License.