modified code to not send ACK for cancel and end transaction when purchase_count=0. Working v6.1