-
-
Notifications
You must be signed in to change notification settings - Fork 788
When creating a credit sale invoice from a sales order, the price of the pricelist is used #2096
Copy link
Copy link
Open
Labels
Description
Module
account_invoice_pricelist
Describe the bug
When creating a credit invoice (a sale invoice with negative amount) from a sale order, the price of the pricelist is used, rather than respecting the price of the sale order.
To Reproduce
Affected versions:
Tested in 17.0
Steps to reproduce the behavior:
- Create a storable product, invoicing policy: delivered quantities. Set some quantity on hand.
- Create a pricelist with a price for the product above.
- Create a sale order that uses the pricelist with a line with several units of that product. The unit price is taken from the pricelist.
- Change the unit price of the line. Confirm the sale order.
- Validate the delivery order.
- Create an invoice from the sale order. The price of the sale order is used for the invoice.
- From the delivery order return some of the units delivered. In the sale order the invoiced quantity is higher than the delivered one.
- Create another invoice. As it is negative, it is converted to a credit note. THE PRICE IS TAKEN FROM PRICELIST, INSTEAD OF RESPECTING THE PRICE OF THE ORDER.
Expected behavior
The price used in the credit note must be taken from the sale order.
Reactions are currently unavailable