Stock delivery should cause cost price adjustments of subsequent stock transactions

Stock delivery should cause cost price adjustments of subsequent stock transactions

When purchase invoice is booked back in time all subsequent transactions for purchased products should be corrected so their cost price represent right price by availability query.

Cost price adjustment should trigger accounting correction of stock consumption of adjusted invoices/sales orders.

Here are some use cases listed (positive count is purchase invoice line, negative - invoice).

Case #1

Case #2

Case #3

Case #4

Case #5