Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // branch list
- {
- "result": [
- {
- "companyID": "WASHUP",
- <<
- add
- here
- for
- firebase
- reference
- "id": "resultladprao",
- <<
- use
- this
- in
- both
- query
- for
- API
- and
- firebase
- reference
- "name": "Ladphao",
- "officeHourly": [
- {
- "day": [
- "MON",
- "TUE",
- "WED",
- "FRI",
- "SAT",
- "SUN",
- "Stop"
- ],
- "time": "12:00 - 20:30"
- },
- {
- "day": [
- "THU"
- ],
- "time": "10:40 - 20:30"
- }
- ],
- "address": "At ladprao",
- "phone": "0983983849",
- "email": "contact@email.com",
- "branchManager": "Chodkud Deemak",
- "branchEmail": "manager@gmail.com",
- "branchPhone": "0989098909"
- },
- {
- "companyID": "WASHUP",
- "id": "resultratchada",
- "name": "Ratchada",
- "officeHourly": [
- {
- "day": [
- "MON",
- "TUE",
- "WED"
- ],
- "time": "10:00 - 20:00"
- },
- {
- "day": [
- "SAT",
- "SUN"
- ],
- "time": "08:00 - 18:00"
- }
- ],
- "address": "At Ratchada",
- "phone": "0983983849",
- "email": "contact@email.com",
- "branchManager": "Chodkud Deemak",
- "branchEmail": "manager@gmail.com",
- "branchPhone": "0989098909",
- "unusualClose": [
- "10-20-2018",
- "21-01-2019"
- ]
- }
- ]
- }
- //staff list
- {
- "result": [
- {
- "avatar": " ",
- "lastOnline": "online",
- "name": "chopkud deemakk",
- "phone": "1111111"
- },
- {
- "avatar": " ",
- "lastOnline": "2019-01-28T05:09:04.661Z",
- "name": "chopkud deemakk",
- "phone": "1111111"
- }
- ]
- }
- //branch stat
- {
- "result": {
- "checked": 55,
- "onService": 100,
- "finished": 42,
- "summary": 5000,
- "point": 1500,
- "daily": {
- "date": {
- "data": 10,
- "name": "Monday"
- },
- "today": 23,
- "yesterday": 21,
- "total_today": 46,
- "total_washtime": 50
- },
- "weekly": {
- "lastlastWeek": 50,
- "lastWeek": 20,
- "thisWeek": 100,
- "total_week": 50,
- "total_washtime": 100
- },
- "monthly": {
- "prevMonth1": {
- "data": 3,
- "name": "November"
- },
- "prevMonth2": {
- "data": 16,
- "name": "December"
- },
- "total_month": 50,
- "total_washtime": 100,
- "thisMonth": 15
- }
- }
- }
- Notification
- {
- "result": [
- {
- "status": "read",
- <<
- add
- status
- "title": "Feb 15 Summary Report",
- "time": "20-10-2019 00:00:00",
- "content": "Summary report here"
- },
- {
- "status": "unread",
- "title": "Feb 16 Summary Report",
- "time": "21-10-2019 00:00:00",
- "content": "Summary report here2"
- }
- ]
- }
- // on service
- {
- "result": [
- {
- "branchName": "Ratchada",
- "state": "CHECKED",
- "service": [
- {
- "code": "W1",
- "name": "Wash",
- "price": 500
- },
- {
- "code": "W2",
- "name": "Wash 2",
- "price": 600
- }
- ],
- "totalPrice": 500,
- "discount": 600,
- <<
- add
- discount
- "time": "2018-01-01 29:29:92",
- "brand": "bmw",
- "model": "x1",
- "plate": "3กข 1235",
- "plateProvice": "กรุงเทพมหานคร",
- "carSize": "S",
- "driverName": "Suchat",
- "phone": "0989382939",
- "memberID": "xxxxxxxx",
- "memberType": "Type A",
- "memberExpire": "2018-01-01 00:00:00",
- "memberTypeSize": "S",
- "paymentStatus": "card"
- }
- ]
- }
- //financial
- {
- "result": {
- "expense": {
- "list": [
- {
- "amount": 100,
- "type": "Water cost"
- },
- {
- "amount": 200,
- "type": "Electricity"
- },
- {
- "amount": 700,
- "type": "Tools"
- },
- {
- "amount": 1,
- "type": "Other"
- },
- {
- "amount": 200,
- "type": "Electricity"
- },
- {
- "amount": 2000,
- "type": "Tools"
- },
- {
- "amount": 3800,
- "type": "Electricity"
- },
- {
- "amount": 2000,
- "type": "housing"
- }
- ]
- },
- "summary": {
- "payment": [
- {
- "amount": 100,
- "type": "Cash"
- },
- {
- "amount": 300,
- "type": "Credit"
- }
- ],
- "service": [
- {
- "amount": 500,
- "type": "Wash"
- },
- {
- "amount": 600,
- "type": "Wax"
- },
- {
- "amount": 1000,
- "type": "Wash"
- },
- {
- "amount": 1000,
- "type": "Wash"
- },
- {
- "amount": 200,
- "type": "Coating"
- },
- {
- "amount": 200,
- "type": "Wrap"
- },
- {
- "amount": 200,
- "type": "Other"
- }
- ],
- //add monthly record
- "month": [
- {
- "month": "Oct",
- "expense": 7000,
- "summary": 3000
- },
- {
- "month": "Nov",
- "expense": 4000,
- "summary": 8000
- },
- {
- "month": "Dec",
- "expense": 5000,
- "summary": 8000
- }
- ]
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement