Profit analysis button on sales orders (and report) need to use the product cost at the time of entering the order
The cost price needs to remain the same as when the product is added to the order, not fluctuate when the cost price is updated. This has causes profit analysis on both sales orders and invoice to never be correct as it fluctuates depending on the...