Dolibarr ERP CRM is a modern software package to manage your company or foundation's activity (contacts, suppliers, invoices, orders, stocks, agenda, accounting, ...). it's an open source Web application (written in PHP) designed for businesses of any sizes, foundations and freelancers.
I have a position which comes at a negative price, and if I order the position with my supplier it also has a negative price for me.
So If I enter the selling price and my procurement price at -1€ each, I end up with a procurement price of +1€, selling for -1€ netting me -2€. I'd expect it to be procurement for -1€ too resulting in 0€.
Environment Version
16.0.0
Environment OS
Ubuntu 22.4
Environment Web server
apache2.4.51
Environment PHP
8
Environment Database
No response
Environment URL(s)
No response
Expected and actual behavior
No response
Steps to reproduce the behavior
create a proposal, buying for -1€ and selling for -1€ (margins module enabled).
Bug
I have a position which comes at a negative price, and if I order the position with my supplier it also has a negative price for me. So If I enter the selling price and my procurement price at -1€ each, I end up with a procurement price of +1€, selling for -1€ netting me -2€. I'd expect it to be procurement for -1€ too resulting in 0€.
Environment Version
16.0.0
Environment OS
Ubuntu 22.4
Environment Web server
apache2.4.51
Environment PHP
8
Environment Database
No response
Environment URL(s)
No response
Expected and actual behavior
No response
Steps to reproduce the behavior
create a proposal, buying for -1€ and selling for -1€ (margins module enabled).
Attached files