Reliable purchase price calculation for subcontracted items
When a subcontracted item has not yet been linked to a purchase order, the system now correctly calculates its purchase price instead of displaying a zero value. The item's reference price is automatically used when no associated purchase order exists.
Impact: Customer quotes and orders reflect a consistent purchase price from the moment of entry, preventing margin errors on subcontracted items that are awaiting a purchase order.