Advertisement
Guest User

Budget Show - json view

a guest
Sep 1st, 2014
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {
  2.   "budget": {
  3.     "updated_at": "2014-09-01T09:24:33Z",
  4.     "project": {
  5.       "id": 2,
  6.       "start_date": "2014-07-31",
  7.       "end_date": "2014-09-06"
  8.     },
  9.     "worktime": {
  10.       "working_hours_start": 9,
  11.       "working_hours_end": 17,
  12.       "working_days": [1, 2, 3, 4, 5],
  13.       "holidays": ["2014-09-09", "2014-09-18", "2014-09-19", "2014-09-20", "2014-09-25"]
  14.     },
  15.     "total_stats": {
  16.       "total_income": 37652.55,
  17.       "total_cost": 1578.58,
  18.       "total_profit": 36073.97,
  19.       "planned_hours_count": 15.0,
  20.       "total_hours_count": 35.95,
  21.       "total_hours_income": 35952.55,
  22.       "total_hours_cost": 1078.58,
  23.       "total_hours_profit": 34873.97,
  24.       "total_entries_income": 1700,
  25.       "total_entries_cost": 500,
  26.       "total_entries_profit": 1200
  27.     },
  28.     "real_stats": {
  29.       "real_income": 36052.55,
  30.       "real_cost": 1078.58,
  31.       "real_profit": 34973.97,
  32.       "real_hours_count": 35.95,
  33.       "real_hours_income": 35952.55,
  34.       "real_hours_cost": 1078.58,
  35.       "real_hours_profit": 34873.97,
  36.       "real_entries_income": 100,
  37.       "real_entries_cost": 0,
  38.       "real_entries_profit": 100
  39.     },
  40.     "real_stats_by_roles": [{
  41.       "role": {
  42.         "id": 3,
  43.         "name": "Developer"
  44.       },
  45.       "planned_hours_count": 15.0,
  46.       "real_hours_count": 35.95,
  47.       "real_income": 35952.55,
  48.       "real_cost": 1078.58,
  49.       "real_profit": 34873.97
  50.     }, {
  51.       "role": {
  52.         "id": 4,
  53.         "name": "Reporter"
  54.       },
  55.       "planned_hours_count": 0.0,
  56.       "real_hours_count": 0.0,
  57.       "real_income": 0.0,
  58.       "real_cost": 0.0,
  59.       "real_profit": 0.0
  60.     }, {
  61.       "role": {
  62.         "id": 2,
  63.         "name": "Manager"
  64.       },
  65.       "planned_hours_count": 0.0,
  66.       "real_hours_count": 0.0,
  67.       "real_income": 0.0,
  68.       "real_cost": 0.0,
  69.       "real_profit": 0.0
  70.     }],
  71.     "real_stats_by_users": [{
  72.       "user": {
  73.         "id": 2,
  74.         "name": "Jacek Tomaszewski"
  75.       },
  76.       "real_hours_count": 35.95,
  77.       "real_income": 35952.55,
  78.       "real_cost": 1078.58,
  79.       "real_profit": 34873.97
  80.     }],
  81.     "real_stats_by_months": [{
  82.       "month_date": "08-2014",
  83.       "income": 35951.75,
  84.       "cost": 1078.55,
  85.       "profit": 34873.2,
  86.       "hours_income": 35951.75,
  87.       "hours_cost": 1078.55,
  88.       "hours_profit": 34873.2,
  89.       "entries_income": 0,
  90.       "entries_cost": 0,
  91.       "entries_profit": 0
  92.     }, {
  93.       "month_date": "09-2014",
  94.       "income": 0.78,
  95.       "cost": 0.02,
  96.       "profit": 0.76,
  97.       "hours_income": 0.78,
  98.       "hours_cost": 0.02,
  99.       "hours_profit": 0.76,
  100.       "entries_income": 0,
  101.       "entries_cost": 0,
  102.       "entries_profit": 0
  103.     }],
  104.     "budget_entries_categories": [{
  105.       "name": "Przykladowy koszt",
  106.       "entry_type": "cost",
  107.       "planned_amount": 0,
  108.       "real_amount": 500
  109.     }, {
  110.       "name": "slimak",
  111.       "entry_type": "income",
  112.       "planned_amount": 1000,
  113.       "real_amount": 600
  114.     }, {
  115.       "name": "slimak2",
  116.       "entry_type": "income",
  117.       "planned_amount": 0,
  118.       "real_amount": 100
  119.     }],
  120.     "budget_entries": [{
  121.       "name": "klub naomi",
  122.       "entry_type": "cost",
  123.       "category_id": 1,
  124.       "created_on": "2014-08-01",
  125.       "user": {
  126.         "id": 2,
  127.         "name": "Jacek Tomaszewski"
  128.       },
  129.       "netto_amount": 500,
  130.       "tax": 0,
  131.       "brutto_amount": 500,
  132.       "deposit_amount": 0
  133.     }, {
  134.       "name": "zysk ze sprzedazy",
  135.       "planned": true,
  136.       "entry_type": "income",
  137.       "category_id": 3,
  138.       "issue_id": 3,
  139.       "created_on": "2014-08-06",
  140.       "user": {
  141.         "id": 2,
  142.         "name": "Jacek Tomaszewski"
  143.       },
  144.       "netto_amount": 1000,
  145.       "tax": 23,
  146.       "brutto_amount": 2301000,
  147.       "deposit_amount": 0
  148.     }, {
  149.       "name": "jakas nazwa",
  150.       "entry_type": "income",
  151.       "category_id": 4,
  152.       "created_on": "2014-07-31",
  153.       "netto_amount": 100,
  154.       "tax": 23,
  155.       "brutto_amount": 230100,
  156.       "deposit_amount": 0
  157.     }, {
  158.       "name": "koks",
  159.       "entry_type": "income",
  160.       "category_id": 3,
  161.       "created_on": "2014-08-05",
  162.       "user": {
  163.         "id": 2,
  164.         "name": "Jacek Tomaszewski"
  165.       },
  166.       "netto_amount": 100,
  167.       "tax": 0,
  168.       "brutto_amount": 100,
  169.       "deposit_amount": 0
  170.     }, {
  171.       "name": "na wrzesien",
  172.       "entry_type": "income",
  173.       "category_id": 3,
  174.       "created_on": "2014-09-02",
  175.       "user": {
  176.         "id": 2,
  177.         "name": "Jacek Tomaszewski"
  178.       },
  179.       "netto_amount": 500,
  180.       "tax": 0,
  181.       "brutto_amount": 500,
  182.       "deposit_amount": 0
  183.     }]
  184.   }
  185. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement