2014-05-02 14:26 GMT+02:00 Cédric Krier <cedric.kr...@b2ck.com>:
> Hi,
>
> I'm starting to develop a module that will extend the account_payment
> module. The goal of this extension is to generate account move when a
> payment is succeeded between the receivable/payable account to a
> temporary/waiting account. The idea is to have the state of the invoices,
> the party payable/receivable amounts etc. correct during the execution
> of the payment (which means until the statement is received).
> This will be helpful for business where there could be a long time
> between the sent of the payment order and the reception of statement.
>
> So here is the design:
>
>     - Add clearing account and clearing journal on Payment Journal.
>     - On succeed, create an account move if a line is set on the
>       payment. If possible the account move lines will be reconciled
>       with the line of the payment. This will also use all previous
>       payments succeeded on this same line.
>     - A new transition from succeeded to failed and from failed to succeeded
>       will be added to fix mistakes.
>     - On fail, if a clearing move exists, it will be deleted or cancel
>       depending of the state. Something similar to the cancel of an
>       invoice.

Sounds good to me.

-- 
Albert Cervera i Areny
Tel. 93 553 18 03
@albertnan
www.NaN-tic.com

Reply via email to