This history relies on the actual or actual flows:
+ the validated deliveries
+ the direct invoices with stock movement
+ the validated "order" invoices with stock movement
+ the validated "delivery" invoice lines with stock movement without delivery number
- the delivery returns
- the validated direct credit memos with stock movement
- the validated credit memos on invoice with stock movement
An unpaid order can already have an ordered quantity; this quantity is taken into account in the history. The quantity remaining to be delivered is taken into account in the order WIP.