Returns hinge on 小票 - the till receipt - and 小票还在 is the sentence that makes the rest possible. Note the structure of 昨天买的: the 的 at the end turns it into "it's one bought yesterday", which is how Chinese states the relevant fact about an object rather than a full sentence about yourself.