salesforce-quotation-mandatory-discounts-not-flowing-to-av

Mandatory discounts not captured in AV because they require both Quote_Applied_Discounts__c junction records AND a re-invocation of the pricing engine post-assignment. If the junction is missing for auto-applied offers, the discountLumpsum parameter stays zero when QuotationExtn calls InventoryCostServices, so AV is computed without mandatory discount deductions. Check whether QuotationExtn.appliedDiscounts is populated before the pricing engine call.