## Part 1
# create `DiscountItemsEventHandler::SetCustomQuery` method
# add WHERE filter to the `ItemName` calculated field (e.g. `$object->addFilter('test_filter', 'ItemName LIKE ' . $this->Conn->qstr('z'));`)
# go to {nav E-commerce > Discounts & Certificates} section
# create a discount with 1 product
# confirm, that applied before filter works as expected
## Part 2
# create `DiscountItemsEventHandler::SetCustomQuery` method
# add HAVING filter to the `ItemName` calculated field (e.g. `$object->addFilter('test_filter', 'ItemName LIKE ' . $this->Conn->qstr('z'), kDBList::HAVING_FILTER);`)
# go to {nav E-commerce > Discounts & Certificates} section
# create a discount with 1 product
# confirm, that applied before filter works as expected