the new discount calculating for wholesale clients in working version