dolibarr-tasktrack
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dolibarr-tasktrack] [Task #548] Add global discount on quotes, orders a


From: Doliforge
Subject: [Dolibarr-tasktrack] [Task #548] Add global discount on quotes, orders and invoices
Date: Mon, 18 Nov 2013 16:42:08 +0100

Doliforge
Is this email not displaying correctly?
update email preferences.

Add global discount on quotes, orders and invoices

Latest modifications

2013-11-18 16:42 (Europe/Madrid)
Then, at this moment(3.4 version) is impossible put a global discount in customer invoice?

Is a bug? or is deliberate? and we should not expect it to do ever.

Answer now

Snapshot

 Details
Submitted on:  2012-09-19 15:26 Submitted by:  Maxime Kohlhaas (atm-maxime)
Last Modified On:  2013-08-26 08:54 
Summary:  Add global discount on quotes, orders and invoices
Description:  After searching trough the forum and wiki, i didn't find any feature request regarding this functionality. The discount system works fine today but only line per line, and even with a relative discount defined on the customer, it applies on each line. I think this will be a good feature to be able to apply a global discount and have the total calculated including the discount.
Priority:  1 - Lowest Open to Any Developer:  No
Subproject:  Core (internal) Assigned to (multiple):  None
Planned for version:   
 Status
Start Date:  - End Date:  -
Completion (0-100%):  0 Status:  Closed

Comments

Santiago Garcia Peña 2013-11-18 16:42
Then, at this moment(3.4 version) is impossible put a global discount in customer invoice?

Is a bug? or is deliberate? and we should not expect it to do ever.
Laurent Destailleur 2013-03-08 10:08
"Why prevent user from creating a negative line ?"

Answer is easy. It is a regression bug.
Adding negative line should not be allowed ONLY onto invoices (that use absolute discount instead, reason is to be able to track all discount to match legal accountancy rules).

For other element, there is no reason to restrict negative lines since there are converted into global discount when element is converted into invoice. I fix this.
Maxime Kohlhaas 2013-03-08 09:18
Ok I understand. No special fields to deal with global discount.
Discount can be relative to a line (%). OK
Discount can be added as a negative line by using the discount functionnality on customer. OK
Why prevent user from creating a negative line ?

In 3.2, if I added a negative line on my propal, which was possible, it was automatically converted to a customer discount when closing the propal.
Today, if I create a customer discount and use it in a propal, after creating an invoice from the propal I have my discount in the invoice but still available on the customer too.
Laurent Destailleur 2013-03-07 17:27
Problem is really more complicated than adding fields.
Because, we have to report and dispatch amount into acountancy code in a future. Adding a discount that is not on line will make accountancy headhache. A global discount is already addressed with the feature "Discounts of thirdparty", but it is not a relative.
If you want to add a negative line, you must use this feature.

There is also a relative discount already available. And this % is applied on each line. Ités added on each line, but it's same than having discount globally. And using this way of working keep compatibility to make accountancy line by line (what we need for a lot of reason, stock value calculation, vat calculation, and future accountancy dispatch system).
Maxime Kohlhaas 2013-03-07 15:06
I'm back on this subject because in the 3.4, it seems that adding a line with a negative value does not work anymore. So we need a solution to add global discount.
Maxime Kohlhaas 2012-09-19 15:28
How I think this could work :
Add 2 new fields on quotes, orders and invoices (discount_value and discount_type (% or amount)).
Change the total calculation to include the global discount.
Change the PDF output to ad a value below the total showing the discount value and type and the new total HT.

I may be forgetting things, so please feel free to add comments on this feature :)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]