text: {"filter":false,"title":"generateReport.js","tooltip":"/client/js/generateReport.js","undoManager":{"mark":100,"position":100,"stack":[[{"start":{"row":80,"column":43},"end":{"row":80,"column":44},"action":"remove","lines":["t"],"id":53}],[{"start":{"row":80,"column":42},"end":{"row":80,"column":43},"action":"remove","lines":[" "],"id":54}],[{"start":{"row":80,"column":43},"end":{"row":80,"column":44},"action":"insert","lines":["+"],"id":55}],[{"start":{"row":80,"column":44},"end":{"row":80,"column":45},"action":"insert","lines":["d"],"id":56}],[{"start":{"row":80,"column":44},"end":{"row":80,"column":45},"action":"remove","lines":["d"],"id":57}],[{"start":{"row":80,"column":44},"end":{"row":80,"column":45},"action":"insert","lines":["c"],"id":58}],[{"start":{"row":80,"column":45},"end":{"row":80,"column":46},"action":"insert","lines":["d"],"id":59}],[{"start":{"row":80,"column":44},"end":{"row":80,"column":46},"action":"remove","lines":["cd"],"id":60},{"start":{"row":80,"column":44},"end":{"row":80,"column":49},"action":"insert","lines":["cdate"]}],[{"start":{"row":80,"column":42},"end":{"row":80,"column":43},"action":"insert","lines":[" "],"id":61}],[{"start":{"row":61,"column":49},"end":{"row":62,"column":0},"action":"insert","lines":["",""],"id":62},{"start":{"row":62,"column":0},"end":{"row":62,"column":2},"action":"insert","lines":["  "]}],[{"start":{"row":62,"column":2},"end":{"row":62,"column":3},"action":"insert","lines":["i"],"id":63}],[{"start":{"row":62,"column":3},"end":{"row":62,"column":4},"action":"insert","lines":["f"],"id":64}],[{"start":{"row":62,"column":4},"end":{"row":62,"column":6},"action":"insert","lines":["()"],"id":65}],[{"start":{"row":62,"column":5},"end":{"row":62,"column":6},"action":"insert","lines":["j"],"id":66}],[{"start":{"row":62,"column":6},"end":{"row":62,"column":7},"action":"insert","lines":["s"],"id":67}],[{"start":{"row":62,"column":7},"end":{"row":62,"column":8},"action":"insert","lines":["o"],"id":68}],[{"start":{"row":62,"column":5},"end":{"row":62,"column":8},"action":"remove","lines":["jso"],"id":69},{"start":{"row":62,"column":5},"end":{"row":62,"column":13},"action":"insert","lines":["jsondata"]}],[{"start":{"row":62,"column":13},"end":{"row":62,"column":14},"action":"insert","lines":["."],"id":70}],[{"start":{"row":62,"column":14},"end":{"row":62,"column":15},"action":"insert","lines":["o"],"id":71}],[{"start":{"row":62,"column":14},"end":{"row":62,"column":15},"action":"remove","lines":["o"],"id":72},{"start":{"row":62,"column":14},"end":{"row":62,"column":27},"action":"insert","lines":["occupiedrooms"]}],[{"start":{"row":62,"column":27},"end":{"row":62,"column":28},"action":"insert","lines":[" "],"id":73}],[{"start":{"row":62,"column":28},"end":{"row":62,"column":29},"action":"insert","lines":["!"],"id":74}],[{"start":{"row":62,"column":29},"end":{"row":62,"column":30},"action":"insert","lines":["="],"id":75}],[{"start":{"row":62,"column":30},"end":{"row":62,"column":31},"action":"insert","lines":[" "],"id":76}],[{"start":{"row":62,"column":31},"end":{"row":62,"column":32},"action":"insert","lines":["n"],"id":77}],[{"start":{"row":62,"column":32},"end":{"row":62,"column":33},"action":"insert","lines":["u"],"id":78}],[{"start":{"row":62,"column":33},"end":{"row":62,"column":34},"action":"insert","lines":["l"],"id":79}],[{"start":{"row":62,"column":34},"end":{"row":62,"column":35},"action":"insert","lines":["l"],"id":80}],[{"start":{"row":62,"column":36},"end":{"row":63,"column":0},"action":"insert","lines":["",""],"id":81},{"start":{"row":63,"column":0},"end":{"row":63,"column":2},"action":"insert","lines":["  "]}],[{"start":{"row":63,"column":2},"end":{"row":63,"column":3},"action":"insert","lines":["{"],"id":82}],[{"start":{"row":63,"column":3},"end":{"row":63,"column":4},"action":"insert","lines":["}"],"id":83}],[{"start":{"row":63,"column":3},"end":{"row":65,"column":2},"action":"insert","lines":["","    ","  "],"id":84}],[{"start":{"row":66,"column":3},"end":{"row":66,"column":54},"action":"remove","lines":[" var occupiedCount = jsondata.occupiedrooms.length;"],"id":85}],[{"start":{"row":64,"column":4},"end":{"row":64,"column":55},"action":"insert","lines":[" var occupiedCount = jsondata.occupiedrooms.length;"],"id":86}],[{"start":{"row":65,"column":3},"end":{"row":66,"column":0},"action":"insert","lines":["",""],"id":87},{"start":{"row":66,"column":0},"end":{"row":66,"column":2},"action":"insert","lines":["  "]}],[{"start":{"row":66,"column":2},"end":{"row":66,"column":3},"action":"insert","lines":["e"],"id":88}],[{"start":{"row":66,"column":3},"end":{"row":66,"column":4},"action":"insert","lines":["l"],"id":89}],[{"start":{"row":66,"column":4},"end":{"row":66,"column":5},"action":"insert","lines":["s"],"id":90}],[{"start":{"row":66,"column":5},"end":{"row":66,"column":6},"action":"insert","lines":["e"],"id":91}],[{"start":{"row":66,"column":6},"end":{"row":67,"column":0},"action":"insert","lines":["",""],"id":92},{"start":{"row":67,"column":0},"end":{"row":67,"column":2},"action":"insert","lines":["  "]}],[{"start":{"row":67,"column":2},"end":{"row":67,"column":3},"action":"insert","lines":["{"],"id":93}],[{"start":{"row":67,"column":3},"end":{"row":67,"column":4},"action":"insert","lines":["}"],"id":94}],[{"start":{"row":67,"column":3},"end":{"row":69,"column":2},"action":"insert","lines":["","    ","  "],"id":95}],[{"start":{"row":68,"column":4},"end":{"row":68,"column":23},"action":"insert","lines":["var occupiedCount ="],"id":96}],[{"start":{"row":68,"column":23},"end":{"row":68,"column":24},"action":"insert","lines":[" "],"id":97}],[{"start":{"row":68,"column":24},"end":{"row":68,"column":25},"action":"insert","lines":["0"],"id":98}],[{"start":{"row":68,"column":25},"end":{"row":68,"column":26},"action":"insert","lines":[";"],"id":99}],[{"start":{"row":48,"column":51},"end":{"row":49,"column":0},"action":"insert","lines":["",""],"id":100},{"start":{"row":49,"column":0},"end":{"row":49,"column":4},"action":"insert","lines":["    "]}],[{"start":{"row":49,"column":4},"end":{"row":50,"column":0},"action":"insert","lines":["",""],"id":101},{"start":{"row":50,"column":0},"end":{"row":50,"column":4},"action":"insert","lines":["    "]}],[{"start":{"row":50,"column":4},"end":{"row":57,"column":3},"action":"insert","lines":["if(jsondata.occupiedrooms != null)","  {","     var occupiedCount = jsondata.occupiedrooms.length;","  }","  else","  {","    var occupiedCount = 0;","  }"],"id":102}],[{"start":{"row":50,"column":7},"end":{"row":50,"column":28},"action":"remove","lines":["jsondata.occupiedroom"],"id":103},{"start":{"row":50,"column":7},"end":{"row":50,"column":30},"action":"insert","lines":["jsondata.reservedrooms."]}],[{"start":{"row":52,"column":5},"end":{"row":52,"column":55},"action":"remove","lines":["var occupiedCount = jsondata.occupiedrooms.length;"],"id":104},{"start":{"row":52,"column":5},"end":{"row":52,"column":50},"action":"insert","lines":["var reserved = jsondata.reservedrooms.length;"]}],[{"start":{"row":56,"column":8},"end":{"row":56,"column":21},"action":"remove","lines":["occupiedCount"],"id":105},{"start":{"row":56,"column":8},"end":{"row":56,"column":16},"action":"insert","lines":["reserved"]}],[{"start":{"row":58,"column":0},"end":{"row":58,"column":49},"action":"remove","lines":["    var reserved = jsondata.reservedrooms.length;"],"id":106}],[{"start":{"row":57,"column":3},"end":{"row":58,"column":0},"action":"remove","lines":["",""],"id":107}],[{"start":{"row":50,"column":30},"end":{"row":50,"column":31},"action":"remove","lines":["s"],"id":108}],[{"start":{"row":50,"column":29},"end":{"row":50,"column":30},"action":"remove","lines":["."],"id":109}],[{"start":{"row":33,"column":4},"end":{"row":33,"column":49},"action":"remove","lines":["var reserved = jsondata.reservedrooms.length;"],"id":110},{"start":{"row":33,"column":4},"end":{"row":40,"column":3},"action":"insert","lines":["if(jsondata.reservedrooms != null)","  {","     var reserved = jsondata.reservedrooms.length;","  }","  else","  {","    var reserved = 0;","  }"]}],[{"start":{"row":31,"column":4},"end":{"row":31,"column":54},"action":"remove","lines":["var occupiedCount = jsondata.occupiedrooms.length;"],"id":111},{"start":{"row":31,"column":4},"end":{"row":38,"column":3},"action":"insert","lines":[" if(jsondata.occupiedrooms != null)","  {","     var occupiedCount = jsondata.occupiedrooms.length;","  }","  else","  {","    var occupiedCount = 0;","  }"]}],[{"start":{"row":29,"column":11},"end":{"row":30,"column":0},"action":"insert","lines":["",""],"id":112},{"start":{"row":30,"column":0},"end":{"row":30,"column":2},"action":"insert","lines":["  "]}],[{"start":{"row":30,"column":2},"end":{"row":35,"column":6},"action":"insert","lines":["if(setDate<'2014-12-31'){","\t\t\t","\t\t\talert(\"Hotel created on 1st Jan 2015. Enter date after this date\");","\t\t\t\t\t","\t\t}","\t\telse"],"id":113}],[{"start":{"row":36,"column":0},"end":{"row":36,"column":2},"action":"remove","lines":["  "],"id":114}],[{"start":{"row":35,"column":6},"end":{"row":36,"column":0},"action":"remove","lines":["",""],"id":115}],[{"start":{"row":35,"column":6},"end":{"row":35,"column":7},"action":"insert","lines":[" "],"id":116}],[{"start":{"row":36,"column":4},"end":{"row":36,"column":5},"action":"remove","lines":[" "],"id":117}],[{"start":{"row":29,"column":11},"end":{"row":30,"column":0},"action":"insert","lines":["",""],"id":118},{"start":{"row":30,"column":0},"end":{"row":30,"column":2},"action":"insert","lines":["  "]}],[{"start":{"row":30,"column":2},"end":{"row":31,"column":0},"action":"insert","lines":["",""],"id":119},{"start":{"row":31,"column":0},"end":{"row":31,"column":2},"action":"insert","lines":["  "]}],[{"start":{"row":31,"column":2},"end":{"row":32,"column":0},"action":"insert","lines":["",""],"id":120},{"start":{"row":32,"column":0},"end":{"row":32,"column":2},"action":"insert","lines":["  "]}],[{"start":{"row":31,"column":2},"end":{"row":33,"column":39},"action":"insert","lines":["var now = new Date();","\t\tvar oneYr = new Date();","\t\toneYr.setYear(now.getFullYear() + 1);"],"id":121}],[{"start":{"row":39,"column":3},"end":{"row":43,"column":3},"action":"insert","lines":["else if(setDate>oneYr.yyyymmdd()){","\t\t\t","\t\t\talert(\"Enter date within next year\");","\t\t\t\t\t","\t\t}"],"id":122}],[{"start":{"row":39,"column":3},"end":{"row":40,"column":0},"action":"insert","lines":["",""],"id":123},{"start":{"row":40,"column":0},"end":{"row":40,"column":2},"action":"insert","lines":["\t\t"]}],[{"start":{"row":40,"column":1},"end":{"row":44,"column":3},"action":"remove","lines":["\telse if(setDate>oneYr.yyyymmdd()){","\t\t\t","\t\t\talert(\"Enter date within next year\");","\t\t\t\t\t","\t\t}"],"id":124}],[{"start":{"row":40,"column":1},"end":{"row":40,"column":3},"action":"insert","lines":["  "],"id":125}],[{"start":{"row":40,"column":3},"end":{"row":44,"column":3},"action":"insert","lines":["else if(setDate>oneYr.yyyymmdd()){","\t\t\t","\t\t\talert(\"Enter date within next year\");","\t\t\t\t\t","\t\t}"],"id":126}],[{"start":{"row":37,"column":70},"end":{"row":38,"column":0},"action":"insert","lines":["",""],"id":127},{"start":{"row":38,"column":0},"end":{"row":38,"column":3},"action":"insert","lines":["\t\t\t"]}],[{"start":{"row":38,"column":3},"end":{"row":45,"column":7},"action":"insert","lines":["var data = new google.visualization.DataTable();","    data.addColumn('string', 'Occupancy');","    data.addColumn('number', 'Count');","","    data.addRows([","      ['Rooms Reserved: ' + reserved, reserved],","      ['Empty Rooms: ' + notOccupied, notOccupied]","    ]);"],"id":128}],[{"start":{"row":40,"column":0},"end":{"row":40,"column":37},"action":"remove","lines":["    data.addColumn('number', 'Count')"],"id":129}],[{"start":{"row":39,"column":42},"end":{"row":40,"column":0},"action":"remove","lines":["",""],"id":130}],[{"start":{"row":42,"column":8},"end":{"row":42,"column":36},"action":"remove","lines":["Rooms Reserved: ' + reserved"],"id":131}],[{"start":{"row":42,"column":7},"end":{"row":42,"column":8},"action":"remove","lines":["'"],"id":132}],[{"start":{"row":42,"column":7},"end":{"row":42,"column":66},"action":"insert","lines":["\"Hotel created on 1st Jan 2015. Enter date after this date\""],"id":133}],[{"start":{"row":42,"column":39},"end":{"row":42,"column":65},"action":"remove","lines":["Enter date after this date"],"id":134}],[{"start":{"row":42,"column":38},"end":{"row":42,"column":39},"action":"remove","lines":[" "],"id":135}],[{"start":{"row":42,"column":48},"end":{"row":42,"column":49},"action":"remove","lines":["d"],"id":136}],[{"start":{"row":42,"column":47},"end":{"row":42,"column":48},"action":"remove","lines":["e"],"id":137}],[{"start":{"row":42,"column":46},"end":{"row":42,"column":47},"action":"remove","lines":["v"],"id":138}],[{"start":{"row":42,"column":45},"end":{"row":42,"column":46},"action":"remove","lines":["r"],"id":139}],[{"start":{"row":42,"column":44},"end":{"row":42,"column":45},"action":"remove","lines":["e"],"id":140}],[{"start":{"row":42,"column":43},"end":{"row":42,"column":44},"action":"remove","lines":["s"],"id":141}],[{"start":{"row":42,"column":42},"end":{"row":42,"column":43},"action":"remove","lines":["e"],"id":142}],[{"start":{"row":42,"column":41},"end":{"row":42,"column":42},"action":"remove","lines":["r"],"id":143}],[{"start":{"row":42,"column":41},"end":{"row":42,"column":43},"action":"insert","lines":["\"\""],"id":144}],[{"start":{"row":42,"column":42},"end":{"row":42,"column":68},"action":"insert","lines":["Enter date after this date"],"id":145}],[{"start":{"row":43,"column":0},"end":{"row":43,"column":50},"action":"remove","lines":["      ['Empty Rooms: ' + notOccupied, notOccupied]"],"id":146}],[{"start":{"row":42,"column":71},"end":{"row":43,"column":0},"action":"remove","lines":["",""],"id":147}],[{"start":{"row":39,"column":42},"end":{"row":39,"column":43},"action":"remove","lines":[";"],"id":154}],[{"start":{"row":38,"column":3},"end":{"row":44,"column":4},"action":"remove","lines":["var data = new google.visualization.DataTable();","    data.addColumn('string', 'Occupancy');","","    data.addRows([","      [\"Hotel created on 1st Jan 2015.\", \"Enter date after this date\"],","    ]);","\t\t\t\t"],"id":155}],[{"start":{"row":38,"column":2},"end":{"row":38,"column":3},"action":"remove","lines":["\t"],"id":156}],[{"start":{"row":38,"column":1},"end":{"row":38,"column":2},"action":"remove","lines":["\t"],"id":157}],[{"start":{"row":38,"column":0},"end":{"row":38,"column":1},"action":"remove","lines":["\t"],"id":158}],[{"start":{"row":37,"column":70},"end":{"row":38,"column":1},"action":"remove","lines":["","\t"],"id":159}]]},"ace":{"folds":[],"scrolltop":0,"scrollleft":0,"selection":{"start":{"row":26,"column":4},"end":{"row":26,"column":15},"isBackwards":true},"options":{"guessTabSize":true,"useWrapMode":false,"wrapToView":true},"firstLineState":{"row":9,"state":"start","mode":"ace/mode/javascript"}},"timestamp":1450124360000,"hash":"b60857ab0200b48b00cf8b4ec1fa21123b9bd55c"}