sale_margin_delivered
Compute delivered margins on sale orders using actual delivered quantities and costs so profitability reflects what was shipped and returned.
Key Features
- sale.order.line: Computes delivered margin, delivered margin percent, and delivered unit cost from stock valuation layers so profit reflects outgoing deliveries and refund returns, falling back to purchase cost for non-storable products.
- sale.order.line: Shows delivered cost, delivered margin percent, and delivered margin columns on sale order lines when margin visibility is enabled in the sales order form.
- sale.report: Adds an aggregated delivered margin measure to the sales analysis report with proper currency conversion for reporting comparisons.