I have a custom synchronization module which synchronizes prices with a third party warehouse. Now it synchronizes only cost, but if a product has some discount, I also have to synchronize the sell_price. How can I check if the product has a discount?