I assume you're referring to the extendedamount field on the quotedetail and salesorderdetail entities, rather than fields on the quote and salesorder entities ? These mappings are hard-coded, though I'd be surprised if the discount isn't being applied - are you using a custom field for the discount ?