added sales code to process sale confirmation