Core: applying discount (core promotion) bug fix (related to calculation of total quantity of product in the cart)