apply discount automatically only in cases of automatic discount and apply discount after the code