Hello everybody,
I want to set a discount on line level in Sales orders and sales quotations with my Add-on.
The discount depends on the item code and the card code but I can't use special prices for business partners.
What I want to do is to go through every line in the sales order/quotation and set the discount before the user saves/adds the sales order/quotation.
My idea is to add a button and place it over the Ok/Add/Update button so the user has no chance to save/add the sales order/quotation without granting the discounts. But thats no good way I think.
How can I solve that problem? Please ask me if you don't understand what I want to do.