Average price calculation
Important! When reversing a material sale, the average material price is recalculated.
Example:
Stock has 10 pcs of a material with total value $20 (unit price $2). A sale reversal is posted for 10 pcs with total value $40 (unit price $4). The average price is calculated as (20 + 40) / (10 + 10) = $3 per unit.