A network based POS which has offline online operations functionalities