pos_v0 receipt rewriting