Advertisement
Guest User

Untitled

a guest
Jan 28th, 2019
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 5.48 KB | None | 0 0
  1. // branch list
  2.  
  3. {
  4.   "result": [
  5.     {
  6.       "companyID": "WASHUP",     << add here for firebase reference
  7.       "id": "resultladprao",    << use this in both query for  API and firebase reference
  8.       "name": "Ladphao",
  9.       "officeHourly": [
  10.         {
  11.           "day": [
  12.             "MON",
  13.             "TUE",
  14.             "WED",
  15.             "FRI",
  16.             "SAT",
  17.             "SUN",
  18.             "Stop"
  19.           ],
  20.           "time": "12:00 - 20:30"
  21.         },
  22.         {
  23.           "day": [
  24.             "THU"
  25.           ],
  26.           "time": "10:40 - 20:30"
  27.         }
  28.       ],
  29.       "address": "At ladprao",
  30.       "phone": "0983983849",
  31.       "email": "contact@email.com",
  32.       "branchManager": "Chodkud Deemak",
  33.       "branchEmail": "manager@gmail.com",
  34.       "branchPhone": "0989098909"
  35.     },
  36.     {
  37.       "companyID": "WASHUP",
  38.       "id": "resultratchada",
  39.       "name": "Ratchada",
  40.       "officeHourly": [
  41.         {
  42.           "day": [
  43.             "MON",
  44.             "TUE",
  45.             "WED"
  46.           ],
  47.           "time": "10:00 - 20:00"
  48.         },
  49.         {
  50.           "day": [
  51.             "SAT",
  52.             "SUN"
  53.           ],
  54.           "time": "08:00 - 18:00"
  55.         }
  56.       ],
  57.       "address": "At Ratchada",
  58.       "phone": "0983983849",
  59.       "email": "contact@email.com",
  60.       "branchManager": "Chodkud Deemak",
  61.       "branchEmail": "manager@gmail.com",
  62.       "branchPhone": "0989098909",
  63.       "unusualClose": [
  64.         "10-20-2018",
  65.         "21-01-2019"
  66.       ]
  67.     }
  68.   ]
  69. }
  70.  
  71.  
  72.  
  73. //staff list
  74. {
  75.   "result": [
  76.     {
  77.       "avatar": " ",
  78.       "lastOnline": "online",
  79.       "name": "chopkud deemakk",
  80.       "phone": "1111111"
  81.     },
  82.     {
  83.       "avatar": " ",
  84.       "lastOnline": "2019-01-28T05:09:04.661Z",
  85.       "name": "chopkud deemakk",
  86.       "phone": "1111111"
  87.     }
  88.   ]
  89. }
  90.  
  91.  
  92. //branch stat
  93. {
  94.   "result": {
  95.     "checked": 55,
  96.     "onService": 100,
  97.     "finished": 42,
  98.     "summary": 5000,
  99.     "point": 1500,
  100.     "daily": {
  101.       "date": {
  102.         "data": 10,
  103.         "name": "Monday"
  104.       },
  105.       "today": 23,
  106.       "yesterday": 21,
  107.       "total_today": 46,
  108.       "total_washtime": 50
  109.     },
  110.     "weekly": {
  111.       "lastlastWeek": 50,
  112.       "lastWeek": 20,
  113.       "thisWeek": 100,
  114.       "total_week":50,
  115.       "total_washtime":100,
  116.     },
  117.     "monthly": {
  118.       "prevMonth1": {
  119.         "data": 3,
  120.         "name": "November"
  121.       },
  122.       "prevMonth2": {
  123.         "data": 16,
  124.         "name": "December"
  125.       },
  126.       "total_month":50,
  127.       "total_washtime":100,
  128.       "thisMonth": 15
  129.     }
  130.   }
  131. }
  132.  
  133.  
  134. Notification
  135. {
  136.   "result": [
  137.     {
  138.       "status": "read", << add status
  139.     "title": "Feb 15 Summary Report",
  140.     "time": "20-10-2019 00:00:00",
  141.     "content": "Summary report here"
  142.     },
  143.     {
  144.       "status": "unread",
  145.     "title": "Feb 16 Summary Report",
  146.     "time": "21-10-2019 00:00:00",
  147.     "content": "Summary report here2"
  148.     }
  149.   ]
  150. }
  151.  
  152. // on service
  153. {
  154.   "result": [
  155.     {
  156.       "branchName": "Ratchada",
  157.       "state": "CHECKED",
  158.       "service": [
  159.         {
  160.           "code": "W1",
  161.           "name": "Wash",
  162.           "price": 500
  163.         },
  164.         {
  165.           "code": "W2",
  166.           "name": "Wash 2",
  167.           "price": 600
  168.         }
  169.       ],
  170.       "totalPrice": 500,
  171.       "discount": 600,         << add discount
  172.       "time": "2018-01-01 29:29:92",
  173.       "brand": "bmw",
  174.       "model": "x1",
  175.       "plate": "3กข 1235",
  176.       "plateProvice": "กรุงเทพมหานคร",
  177.       "carSize": "S",
  178.       "driverName": "Suchat",
  179.       "phone": "0989382939",
  180.       "memberID": "xxxxxxxx",
  181.       "memberType": "Type A",
  182.       "memberExpire": "2018-01-01 00:00:00",
  183.       "memberTypeSize": "S",
  184.       "paymentStatus": "card"
  185.     }
  186.   ]
  187. }
  188.  
  189.  
  190. //financial
  191. {
  192.   "result": {
  193.     "expense": {
  194.       "list": [
  195.         {
  196.           "amount": 100,
  197.           "type": "Water cost"
  198.         },
  199.         {
  200.           "amount": 200,
  201.           "type": "Electricity"
  202.         },
  203.         {
  204.           "amount": 700,
  205.           "type": "Tools"
  206.         },
  207.         {
  208.           "amount": 1,
  209.           "type": "Other"
  210.         },
  211.         {
  212.           "amount": 200,
  213.           "type": "Electricity"
  214.         },
  215.         {
  216.           "amount": 2000,
  217.           "type": "Tools"
  218.         },
  219.         {
  220.           "amount": 3800,
  221.           "type": "Electricity"
  222.         },
  223.         {
  224.           "amount": 2000,
  225.           "type": "housing"
  226.         }
  227.       ],
  228.     },
  229.     "summary": {
  230.       "payment": [
  231.         {
  232.           "amount": 100,
  233.           "type": "Cash"
  234.         },
  235.         {
  236.           "amount": 300,
  237.           "type": "Credit"
  238.         }
  239.       ],
  240.       "service": [
  241.         {
  242.           "amount": 500,
  243.           "type": "Wash"
  244.         },
  245.         {
  246.           "amount": 600,
  247.           "type": "Wax"
  248.         },
  249.         {
  250.           "amount": 1000,
  251.           "type": "Wash"
  252.         },
  253.         {
  254.           "amount": 1000,
  255.           "type": "Wash"
  256.         },
  257.         {
  258.           "amount": 200,
  259.           "type": "Coating"
  260.         },
  261.         {
  262.           "amount": 200,
  263.           "type": "Wrap"
  264.         },
  265.         {
  266.           "amount": 200,
  267.           "type": "Other"
  268.         }
  269.       ],
  270.  
  271.       "prevMonth": {
  272.         "expense": 7000,
  273.         "summary": 3000
  274.       },
  275.       "prevMonth1": {
  276.         "expense": 4000,
  277.         "summary": 8000
  278.       },
  279.       "prevMonth2": {
  280.         "expense": 5000,
  281.         "summary": 8000
  282.       }
  283.     }
  284.   }
  285. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement