Dolibarr ERP & CRM » Bugs » bug #1022 Bad marge calculation into credit notesAnonymous user
2013-10-07 01:22
Answer now
Snapshot Details |
Last Modified On: | 2013-10-05 17:16 | | Submitted by: | Juanjo Menent (simnandez) |
Submitted on: | 2013-08-05 17:29 | |
Summary: | Bad marge calculation into credit notes |
Description: | If we make a credit note with a product line, the marge calculation is bad |
Step to reproduce bug: | Make a invoice with a product line (Price 100 €, cost 50€, we have 50€ margin )
If we make a credit note with this product, the marge screen is (Price -100, cost 50, marge -150) and it should be (Price -100, cost 50, marge -50) |
Version: | 3.4.0 | | Category: | Module: Margins |
Severity: | 5 - Major | | OS Type/Version: | |
PHP version: | | | Database type and version: | |
Status |
Status: | Closed | | Assigned to: | Christophe Battarel (cbattarel) |
Resolution: | Fixed | |
Comments- billiga br?llopskl?nningarbr 2013-10-07 01:22
- Enjoyed reading through this, very good stuff, appreciate it.
- Christophe Battarel 2013-10-05 17:16
- no response at my question, so i let the cost as positive on the margin display resume on documents, but i display it as negative on margin reports so the totals are ok.
all is merged on 3.4.1 - Christophe Battarel 2013-09-25 11:03
- i am still wondering if cost should be positive or negative in case of credit note; i'm fixing the same on the margin reports screens and here i print the cost as negative because there are totalizations
- Christophe Battarel 2013-09-24 17:52
- fixed on develop branch (https://github.com/Dolibarr/dolibarr/pull/1245/files)
- Juanjo Menent 2013-09-16 10:01
- Dolibarr know if the article was returned if we put in the credit note the article, I not agree with Marcos.
- Christophe Battarel 2013-09-15 19:32
- Juanjo, do you agree with Marcos statement ? if so, can i close this issue ?
- Marcos García 2013-08-31 13:37
- I think the calculation is OK. Think that 150 is the actual loss for the company. It does not make sense to take the product cost as an incoming. Dolibarr doesn't know if the article was returned or not.
|
|