jyhed - 2007-12-05

dear all,

I noticed an incorrect behavior of the matching invoice/receipt  in case we invoice an order line in several invoices with the same quantity.

Let's assume that we have an order line for 2 items A.
We create a first invoice for 1 item from the order ("create from" button ), and we create a first reception from this invoice. (the first invoice and the first reception will be matched together)
If we create a second invoice for 1 item from the same order, this invoice will be automatically matched to the first reception which is incorrect.
(see VCreateFromInvoice.save)

Wouldn't be better to do the automatic matching only when we create an invoice from a reception (or vice versa) and not when we create it from the order ?

Thank you for