ok, well, I'm trying the best I can with the info you are providing.
What is the purpose of the discount schedule code? I dont understand this.
Please provide as much detail as you can for how this is supposed to work, i cant give an answer to the question if you are not including all of the information.