Skip to content

Converging financial / cash discount modules for v15.0 #462

Open
@grindtildeath

Description

@grindtildeath

Following discussions on OCA/account-financial-tools#1040 it would be great to work together on providing a single module for v15.0 to provide discounts on early payments.

At the moment we have following modules either merged or in the process of being migrated to v14.0:

To avoid duplicating work, it would be great to converge all the modules together for v15.0.

I can mostly talk about account_financial_discount since it's the module we did and is used in prod for a while at one of our biggest customers. Here are what we have in this module.

  • Configuration of discount per payment term
  • Storage of discount information on the account.move.line linked to the payment term
  • Multicurrency
  • Support automatic write-offs in the "Register payment" wizard for single and multiple invoices
  • Support automatic write-offs from the bank statements in the reconciliation widget.

Last two points are the "critical" ones in the sense that:

  • supplier invoices are usually paid using "Register payment" to generate account.payment and be able to export a SEPA file.
  • customer invoices are usually paid and reconciled directly from bank statement lines after importation of CAMT files.

This module of course has its limitations, (stated here https://github.com/OCA/account-financial-tools/pull/1040/files#diff-427ccfc78b333e526364e3533ee8a1b7635cfc7c0145ffc9f36c0f6b8b653d2dR35-R45 for v13.0) and as the reconciliation widget was moved to enterprise for v14.0 I'm not finished with migrating it (although I'll be soon able to open a PR with full support of register payments).

From what I've seen about the other modules:

  • account_cash_discount_payment relies on account_payment_order
  • account_cash_discount_base doesn't depend on account_payment_order, but having discount information stored on the account.move instead of account.move.line linked to payment term doesn't help to use the reconciliation widget.
  • account_payment_term_discount provides similar features but the scope is smaller from what I've seen

@sbidoul @pedrobaeza @max3903 @dreispt you're welcome to join the discussion.

Metadata

Metadata

Assignees

No one assigned

    Labels

    no staleUse this label to prevent the automated stale action from closing this PR/Issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions