Dear Dynamicweb,
The point calculation in DefaultPointProvider does not take the user, the quantity or tax into account in the method: FindPoints.
This line:
Dim productPrice As Double = PriceManager.GetPrice(product, order.Currency.Code, order.VatCountry.Code2, orderLine.UnitId, 0).Price
Should be replaced by (or some more nice code):
Dim productPrice As Double = CType(PriceManager.FindPrice(product, orderLine.Quantity, False, order.Currency, orderLine.UnitId, _user, order.ShopId), PriceRaw).Price
Can you please look into this?
Best regards, Anders