account-invoicing icon indicating copy to clipboard operation
account-invoicing copied to clipboard

New Module: Total Discount on Invoice

Open agent-z28 opened this issue 5 years ago • 5 comments

Hello we have a module called total_discount. It provides the possibility to add a total discount on invoice / sale.order. The result have been accepted by EDEKA / REWE and so on. Is there any specific reason why i cant find a module about this? If anyone is interested we can provide this module.

agent-z28 avatar Jun 11 '19 10:06 agent-z28

@sbidoul you were working in a module for this, isn't it?

The problem with discounts in totals is the accounting part. First thing is: the aim for the total discount is an early payment discount or any other concept?

pedrobaeza avatar Jun 11 '19 11:06 pedrobaeza

Yes we have the propper solution for the accounting part. As said, we have neglected with big players, since they only accept it one way. finally we have it like they expect it. It's just a default discount, ontop of the bill, that has been contracted with the client.

agent-z28 avatar Jun 11 '19 11:06 agent-z28

Can you indicate more details about how it's done for proper documentation (this can be later used in the README of the module)?

pedrobaeza avatar Jun 11 '19 11:06 pedrobaeza

It sounds quite simple, the basic concept is:

We create a discount invoice line with the (negativ) amount. then we have a new O2M that is being used in the view and report. invoice_line_without_discount = fields.One2many('account.invoice.line', 'invoice_id', 'Invoice Lines', domain=[('is_discount_line','=',False)]) in the invoice line we have a discount product with the propper account (configureable)

We have had like 20 diffrent use cases with rounding issues only this one fullfilled it.

agent-z28 avatar Jun 11 '19 11:06 agent-z28

There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. If you want this issue to never become stale, please ask a PSC member to apply the "no stale" label.

github-actions[bot] avatar Sep 18 '22 12:09 github-actions[bot]