Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Div
classkt-main

RETRIEVE BUDGET

Div
classkt-lozenge kt-get

GET

Div
classkt-url

/budget/{folioId}

Div
classkt-break
ParameterType
folioIdLong

 

 

Expand
titleResult example
Panel
borderColor#DDDDDD
borderStylesolid

 

{

  "success": {

    "folioId": 2,

    "canEdit": true,

    "numberOfExpenses": 6,

    "currency": {

      "code": "USD",

      "symbol": "$",

      "description": "United States Dollar ($)"

    },

    "opexCategory": {

      "name": "OPEX",

      "displayName": "Operational Expenditures",

      "salarySectionName": "Salaries",

      "expenseTypes": [

        {

          "id": "-392593660",

          "name": "Advertising",

          "expenses": [

            {

              "id": 54,

              "name": "Magazine ad",

              "displayAmount": "500.00",

              "description": "To announce the product launch date.",

              "actual": false,

              "reporter": {

                "avatarUrl": "/jira/secure/useravatar?avatarId=10122",

                "displayName": "admin",

                "username": "admin",

                "renderedLink": "        <a class=\"user-hover\" rel=\"admin\" id=\"_admin\" href=\"/jira/secure/ViewProfile.jspa?name=admin\">admin</a>",

                "canEvaluate": false,

                "isDeleted": false

              },

              "recurrence": {

                "displayRecurrence": "Monthly on day 23, from 23/Apr/13",

                "frequency": {

                  "name": "MONTHLY",

                  "displayName": "per month"

                },

                "canBeAmortized": true,

                "displayPayment": "500.00",

                "paymentsCount": 5,

                "startDate": "23/Apr/13",

                "firstPaymentDate": "23/Aug/13",

                "lastPaymentDate": "23/Dec/13",

                "recurrenceBy": {

                  "name": "DAY_OF_MONTH",

                  "displayName": "By day of the month"

                },

                "occurrences": 0,

                "interval": 1,

                "shortDisplayRecurrence": "Monthly",

                "displayRecurrenceWithoutDate": "Monthly on day 23"

              },

              "displayActualCost": "2,500.00",

              "actualCost": 2500,

              "amortized": false,

              "amount": 500

            }

          ],

          "displayTotalCost": "2,500.00",

          "totalCost": 2500

        }

      ],

      "positionTitles": [

        {

          "id": "-361671554",

          "name": "Administration",

          "recurrence": {

            "frequency": {

              "name": "HOURLY",

              "displayName": "per hour"

            },

            "canBeAmortized": false,

            "paymentsCount": 0,

            "occurrences": 0,

            "interval": 1

          },

          "positions": [

            {

              "id": 6,

              "name": "Scrum Master",

              "displayAmount": "40.00",

              "description": "A scrum master is the facilitator for a product development team that uses scrum, a rugby analogy for a development methodology that allows a team to self-organize and make changes quickly.  The scrum master manages the process for how information is exchanged.",

              "actual": false,

              "reporter": {

                "avatarUrl": "/jira/secure/useravatar?avatarId=10122",

                "displayName": "admin",

                "username": "admin",

                "renderedLink": "        <a class=\"user-hover\" rel=\"admin\" id=\"_admin\" href=\"/jira/secure/ViewProfile.jspa?name=admin\">admin</a>",

                "canEvaluate": false,

                "isDeleted": false

              },

              "recurrence": {

                "frequency": {

                  "name": "HOURLY",

                  "displayName": "per hour"

                },

                "canBeAmortized": false,

                "paymentsCount": 0,

                "occurrences": 0,

                "interval": 1

              },

              "displayActualCost": "36,800.00",

              "actualCost": 36800,

              "displayDetailedEffort": "From 23/Apr/13 to 8/Jan/14 at 100%",

              "isAssigned": false,

              "isSynchedWithJIRA": false,

              "isOverCapacity": false,

              "budgetedEffort": 0,

              "displayBudgetedDetailedEffort": "From 23/Apr/13 to 8/Jan/14 at 100%",

              "displayEffort": "920.00 h",

              "effort": 920,

              "wages": [

                {

                  "id": 6,

                  "startDate": "23/Apr/13",

                  "endDate": "8/Jan/14",

                  "weight": 100,

                  "displayWeight": "100.00",

                  "wage": 40,

                  "displayWage": "40.00"

                }

              ],

              "workedHours": [],

              "currentWage": {

                "id": 6,

                "startDate": "23/Apr/13",

                "endDate": "8/Jan/14",

                "weight": 100,

                "displayWeight": "100.00",

                "wage": 40,

                "displayWage": "40.00"

              }

            }

          ],

          "displayTotalCost": "36,800.00",

          "totalCost": 36800,

          "displayTotalEffort": "920.00 h",

          "totalEffort": 920,

          "displayAverageWage": "40.00",

          "averageWage": 40

        }

      ],

      "displayTotalCost": "39,300.00",

      "totalCost": 39300,

      "displayPositionsTotalCost": "36,800.00",

      "positionsTotalCost": 36800,

      "displayExpensesTotalCost": "2,500.00",

      "expensesTotalCost": 2500,

      "displayTotalEffort": "920.00 h",

      "totalEffort": 920,

      "empty": false

    },

    "capexCategory": {

      "name": "CAPEX",

      "displayName": "Capital Expenditures",

      "salarySectionName": "Salaries",

      "expenseTypes": [

        {

          "id": "-1214642834",

          "name": "Equipment",

          "expenses": [

            {

              "id": 56,

              "name": "Computers",

              "displayAmount": "40,000.00",

              "description": "About 4 computers for devs and 2 laptops for admins.",

              "actual": false,

              "reporter": {

                "avatarUrl": "/jira/secure/useravatar?avatarId=10122",

                "displayName": "admin",

                "username": "admin",

                "renderedLink": "        <a class=\"user-hover\" rel=\"admin\" id=\"_admin\" href=\"/jira/secure/ViewProfile.jspa?name=admin\">admin</a>",

                "canEvaluate": false,

                "isDeleted": false

              },

              "recurrence": {

                "displayRecurrence": "Monthly on day 23, from 23/Apr/13, 12 times",

                "frequency": {

                  "name": "MONTHLY",

                  "displayName": "per month"

                },

                "canBeAmortized": true,

                "displayPayment": "3,333.33",

                "paymentsCount": 5,

                "startDate": "23/Apr/13",

                "firstPaymentDate": "23/Aug/13",

                "lastPaymentDate": "23/Dec/13",

                "recurrenceBy": {

                  "name": "DAY_OF_MONTH",

                  "displayName": "By day of the month"

                },

                "occurrences": 12,

                "interval": 1,

                "shortDisplayRecurrence": "Monthly",

                "displayRecurrenceWithoutDate": "Monthly on day 23"

              },

              "displayActualCost": "16,666.67",

              "actualCost": 16666.67,

              "amortized": true,

              "amount": 40000

            },

            {

              "id": 55,

              "name": "Head office furniture",

              "displayAmount": "30,000.00",

              "description": "A couple of desks and some chairs.",

              "actual": false,

              "reporter": {

                "avatarUrl": "/jira/secure/useravatar?avatarId=10122",

                "displayName": "admin",

                "username": "admin",

                "renderedLink": "        <a class=\"user-hover\" rel=\"admin\" id=\"_admin\" href=\"/jira/secure/ViewProfile.jspa?name=admin\">admin</a>",

                "canEvaluate": false,

                "isDeleted": false

              },

              "recurrence": {

                "displayRecurrence": "Monthly on day 23, from 23/Apr/13, 12 times",

                "frequency": {

                  "name": "MONTHLY",

                  "displayName": "per month"

                },

                "canBeAmortized": true,

                "displayPayment": "2,500.00",

                "paymentsCount": 5,

                "startDate": "23/Apr/13",

                "firstPaymentDate": "23/Aug/13",

                "lastPaymentDate": "23/Dec/13",

                "recurrenceBy": {

                  "name": "DAY_OF_MONTH",

                  "displayName": "By day of the month"

                },

                "occurrences": 12,

                "interval": 1,

                "shortDisplayRecurrence": "Monthly",

                "displayRecurrenceWithoutDate": "Monthly on day 23"

              },

              "displayActualCost": "12,500.00",

              "actualCost": 12500,

              "amortized": true,

              "amount": 30000

            }

          ],

          "displayTotalCost": "29,166.67",

          "totalCost": 29166.67

        },

        {

          "id": "73298585",

          "name": "Legal",

          "expenses": [

            {

              "id": 57,

              "name": "Algorithm patent",

              "displayAmount": "2,000.00",

              "description": "If we need one...",

              "actual": false,

              "reporter": {

                "avatarUrl": "/jira/secure/useravatar?avatarId=10122",

                "displayName": "admin",

                "username": "admin",

                "renderedLink": "        <a class=\"user-hover\" rel=\"admin\" id=\"_admin\" href=\"/jira/secure/ViewProfile.jspa?name=admin\">admin</a>",

                "canEvaluate": false,

                "isDeleted": false

              },

              "recurrence": {

                "displayRecurrence": "Once on 23/Apr/13",

                "frequency": {

                  "name": "ONCE",

                  "displayName": ""

                },

                "canBeAmortized": false,

                "displayPayment": "0.00",

                "paymentsCount": 0,

                "startDate": "23/Apr/13",

                "occurrences": 1,

                "interval": 1,

                "shortDisplayRecurrence": "",

                "displayRecurrenceWithoutDate": ""

              },

              "displayActualCost": "0.00",

              "actualCost": 0,

              "amortized": false,

              "amount": 2000

            }

          ],

          "displayTotalCost": "0.00",

          "totalCost": 0

        }

      ],

      "displayTotalCost": "29,166.67",

      "totalCost": 29166.67,

      "displayExpensesTotalCost": "29,166.67",

      "expensesTotalCost": 29166.67,

      "empty": false

    },

    "finexCategory": {

      "name": "FINEX",

      "displayName": "Financial Expenditures",

      "salarySectionName": "Salaries",

      "expenseTypes": [

        {

          "id": "1426673667",

          "name": "Loans & Credits",

          "expenses": [

            {

              "id": 59,

              "name": "Bank loan",

              "displayAmount": "500.00",

              "description": "Expected loan for initial cash flow",

              "actual": false,

              "reporter": {

                "avatarUrl": "/jira/secure/useravatar?avatarId=10122",

                "displayName": "admin",

                "username": "admin",

                "renderedLink": "        <a class=\"user-hover\" rel=\"admin\" id=\"_admin\" href=\"/jira/secure/ViewProfile.jspa?name=admin\">admin</a>",

                "canEvaluate": false,

                "isDeleted": false

              },

              "recurrence": {

                "displayRecurrence": "Monthly on day 23, from 23/Apr/13",

                "frequency": {

                  "name": "MONTHLY",

                  "displayName": "per month"

                },

                "canBeAmortized": true,

                "displayPayment": "500.00",

                "paymentsCount": 5,

                "startDate": "23/Apr/13",

                "firstPaymentDate": "23/Aug/13",

                "lastPaymentDate": "23/Dec/13",

                "recurrenceBy": {

                  "name": "DAY_OF_MONTH",

                  "displayName": "By day of the month"

                },

                "occurrences": 0,

                "interval": 1,

                "shortDisplayRecurrence": "Monthly",

                "displayRecurrenceWithoutDate": "Monthly on day 23"

              },

              "displayActualCost": "2,500.00",

              "actualCost": 2500,

              "amortized": false,

              "amount": 500

            }

          ],

          "displayTotalCost": "2,500.00",

          "totalCost": 2500

        }

      ],

      "displayTotalCost": "2,500.00",

      "totalCost": 2500,

      "displayExpensesTotalCost": "2,500.00",

      "expensesTotalCost": 2500,

      "empty": false

    },

    "displayTotalCost": "70,966.67",

    "totalCost": 70966.67

  }

}

 

 

CREATE EXPENSE

Div
classkt-lozenge kt-post

POST

Div
classkt-url

/budget/{folioId}/expense

Div
stylekt-breal

 

UPDATE EXPENSE

Div
classkt-lozenge kt-put

PUT

Div
classkt-url

/budget/{folioId}/expense/

Div
stylekt-breal

 

COPY TO ACTUAL

Div
classkt-lozenge kt-post

POST

Div
classkt-url

/budget/copyToActual/expenses

Div
stylekt-breal

 

DELETE EXPENSES & POSITIONS

Div
classkt-lozenge kt-post

POST

Div
classkt-url

/budget/{folioId}/remove/expenses

Div
stylekt-breal

 

CREATE POSITION

Div
classkt-lozenge kt-post

POST

Div
classkt-url

/budget/{folioId}/position

UPDATE POSITION

Div
classkt-lozenge kt-put

PUT

Div
classkt-url

/budget/{folioId}/position

Div
stylekt-breal

 

...

Style
#breadcrumb-section {margin-bottom: 10px;}
#breadcrumbs li,#breadcrumbs li a{color: #999;}
#main-header {margin: 10px 0 0;}
#title-text a {color: #3B73AF !important;}
.page-metadata {transition: opacity .25s ease-in-out;-moz-transition: opacity .25s ease-in-out;-webkit-transition : opacity .25s ease-in-out;}
.page-metadata {opacity: 0; margin: 0 0 30px;}
.page-metadata:hover {opacity: 1.0;}
#title-text {font-family: "kulturista-web",sans-serif;font-weight: 300;font-size: 50px;line-height: 75px;padding-bottom: 5px}
#splitter-sidebar img{top: 17px;position: relative;}
.kt-lozenge { 
background: none repeat scroll 0 0 #CCCCCC; 
border: 1px solid #CCCCCC; 
border-radius: 5px; 
display: inline-block; 
font-weight: bold; 
line-height: 1; 
margin: 0; 
padding: 5px 5px; 
text-align: center; 
text-transform: uppercase; 
font-size: 14px; 
min-width: 60px; 
float:left;}
.kt-lozenge p{color: #FFFFFF!important;}
.kt-get { background-color: #3F7F00; }
.kt-post { background-color: #005FBF; }
.kt-put { background-color: #5F00BF; }
.kt-del { background-color: #BF0000; } 
.kt-url {float:left;padding:5px}
.kt-break{clear:both;height:0}