bill generation function added, transfer by json