Sale delivery date is ignored when after the lead time of the product
#9307 (closed) added the delivery date on sales but this date is ignored when it is before the lead time of the product.
Steps to reproduce:
- Create a product and set a lead time of 10 days.
- Create a sale which includes the mentioned product.
- Check that delivery date of the line is today + 10 days.
- Update the sale shipping date to tomorrow
Current behaviour:
- The delivery date of the line is today + 10days
Expected behaviour:
- The delivery date of the line is tomorrow
Edited by Sergi Almacellas Abellana