Expense

An expense

            classDiagram
      namespace Expenses {
        class _Expenses_Expense_yaml["Expense"]
        class _Expenses_ExpenseJournal_yaml["Expense Journal Entry"]
      }
      namespace Users {
        class _Users_User_yaml["User"]
        class _Users_Project_yaml["Project"]
      }
      _Expenses_Expense_yaml ..> _Users_User_yaml :userId
      _Expenses_Expense_yaml ..> _Users_Project_yaml :costCenter
      _Expenses_Expense_yaml o--" N" _Expenses_ExpenseJournal_yaml :journal
      click _Expenses_Expense_yaml href "./Expense.yaml.html" "Expense"
      click _Users_User_yaml href "../Users/User.yaml.html" "User"
      click _Users_Project_yaml href "../Users/Project.yaml.html" "Project"
      click _Expenses_ExpenseJournal_yaml href "./ExpenseJournal.yaml.html" "Expense Journal Entry"
          

Properties

Property Type Description
id String The unique identifier of the expense
date Date The date of the expense
amount Float The amount of the expense
currency String The currency of the expense
description String The description of the expense
userId References User The user who created the expense
costCenter References Project The cost center of the expense
status Expense Status
journal [Expense Journal Entry] The journal of the expense

Examples

        {"id":"exp123","date":"2023-10-01","amount":200.5,"currency":"USD","description":"Office Supplies","userId":"user456","costCenter":"CC789","status":"Submitted","journal":[{"id":"jrn1","date":"2023-10-01","newStatus":"Submitted","userId":"user456","comment":"Initial submission"}]}
        

Links