changed taxes logic to use order records