CRM Quote, Custom Discount per Customer

CRM Quote, Custom Discount per Customer

Hi, I have a pretty interesting problem that needs a solution.

I am setting up CRM for a customer, that requires certain customers to have specific discounts on certain products. The products are categorized into services/products/misc and the customers have custom fields stating what discount for each.

Any idea how I can get these discounts to apply automatically when generating a quote for each line item?

Thank you in advance.