i have a function which sets the correct price for calculation:
$_product->getSpecialPrice() ? $_product->getSpecialPrice() : $_product->getCustomUnitAmount()*$_product->getPricePerCustomUnit()
if we have special price set it should return special price and otherwise normal product price based on calculation.
however special price from and to dates are way in the past and $_product->getSpecialPrice() returns original price back instead of null / false
is there a correct way to check if product has special price set or not ?
or it's a magento 2 bug ?