Dolibarr ERP & CRM » Bugs » bug #804
Not increasing stock when deleting an invoiceDernières modifications
Répondre
État Détails |
Submitted by: | Marcos García (marcosgdf) | | Submitted on: | 07/04/2013 19:43 |
Last Modified On: | 17/04/2013 21:56 | | Dolibarr version: | 3.3.1 |
PHP version: | | | Database type and version: | |
OS Type/Version: | | | Category: | Module Stock |
Severity: | 8 | |
Summary: | Not increasing stock when deleting an invoice |
Description: | If we make an invoice with product A, product A stock is decreased, if we modify the invoice, product A stock is increased. But if we validate the invoice and then we delete the invoice, the stock is not increased |
Step to reproduce bug: | 1. Create product A
2. Create warehouse A1
3. Set a stock of 10 units of product A in warehouse A1
4. Create a client thirdparty
5. Make an invoice with 1 unit of product A
6. Validate it.
7. Check stock, it should be 9 units
8. Modify the invoice
9. Check stock, it should be 10 units
10. Validate it
11. Delete the invoice
12. Check stock, it should be 10 units but it is 9 units |
Etat |
Resolution: | Later | | Assigned to: | HENRY Florian (fhenry) |
Status: | Closed | |
Commentaires- HENRY Florian 17/04/2013 22:05
- I'm ok with the analysis, but in this case it's not a bug but task.
I created the task :
https://doliforge.org/tracker/?func=detail&aid=826&group_id=144
I'll do that as optionnal yes/no in stock module configuration - Marcos García 17/04/2013 21:56
- Hi Henry,
I don't think it is the case... But, for example, if someone creates an invoice, makes a mistake and wants to delete it, they will have to correct manually the stock of the products involved in the invoice. To fix it, they will need to convert it to draft status so Doli asks for stock correction and then delete it.
I don't think that is a very appropiate way of doing it as deleting an invoice can only be made in a few cases... - HENRY Florian 17/04/2013 17:15
- Hello Marcos.
I don't think it a bug unless the stock was increase on invoice deletion in previous version.
Was it the case ?
|
|
I created the task :
https://doliforge.org/tracker/?func=detail&aid=826&group_id=144
I'll do that as optionnal yes/no in stock module configuration
Aucun→ LaterNeed more info→ Closed