Thanks Phil:
I could not find anything about "Customer discount" on the wiki or the code (unless it is coded in Sanskrit
).
Anyway I modified GetPrice.inc to take this field into the price calculation (attached here). Please check as it will influence all webERP and I don't want to create a big mess.
Line 6: Sets the variable to 0
Lines 77 to 86: retrieves the customer discount (In the previous prices scenarios it is not needed,aa are all "customer specific" scenarios)
Line 170: Apllies the discount.
There is a big BUT I could not sort out.
This modification will work if there is NOT a discount for the item (via discount matrix or discount type), as will be applied on top of this one. GetPrice seems to get the "basic" price only, and the discount is applied, but could not sort it out how it is done...
Any idea how to follow?