Expenses yaml updates

This commit is contained in:
David Bomba 2023-11-23 11:22:04 +11:00
parent bc5f9c1b8a
commit 2b0f793fd4

View File

@ -3,27 +3,31 @@
id:
description: 'The expense hashed id'
type: string
example: Opnel5aKBz
example: 'Opnel5aKBz'
user_id:
description: 'The user hashed id'
type: string
example: ''
example: 'Opnel5aKBz'
assigned_user_id:
description: 'The assigned user hashed id'
type: string
example: ''
example: 'Opnel5aKBz'
project_id:
description: 'The associated project_id'
type: string
example: 'Opnel5aKBz'
company_id:
description: 'The company hashed id'
type: string
example: ''
example: 'Opnel5aKBz'
client_id:
description: 'The client hashed id'
type: string
example: ''
example: 'Opnel5aKBz'
invoice_id:
description: 'The related invoice hashed id'
type: string
example: ''
example: 'Opnel5aKBz'
bank_id:
description: 'The bank id related to this expense'
type: string
@ -31,15 +35,15 @@
invoice_currency_id:
description: 'The currency id of the related invoice'
type: string
example: ''
example: '1'
expense_currency_id:
description: 'The currency id of the expense'
type: string
example: ''
example: '2'
invoice_category_id:
description: 'The invoice category id'
type: string
example: ''
example: 'Opnel5aKBz'
payment_type_id:
description: 'The payment type id'
type: string
@ -47,7 +51,7 @@
recurring_expense_id:
description: 'The related recurring expense this expense was created from'
type: string
example: ''
example: 'Opnel5aKBz'
private_notes:
description: 'The private notes of the expense'
type: string
@ -80,30 +84,34 @@
description: 'A custom value'
type: string
example: ''
tax_amount:
description: 'The tax amount'
type: number
example: 10.00
tax_name1:
description: 'Tax name'
description: 'Tax Name 1'
type: string
example: ''
example: 'GST'
tax_name2:
description: 'Tax name'
description: 'Tax Name 2'
type: string
example: ''
example: 'VAT'
tax_name3:
description: 'Tax Name 3'
type: string
example: 'IVA'
tax_rate1:
description: 'Tax rate'
description: 'Tax rate 1'
type: number
format: float
example: '10.00'
tax_rate2:
description: 'Tax rate'
description: 'Tax rate 2'
type: number
format: float
example: '10.00'
tax_name3:
description: 'Tax name'
type: string
example: ''
tax_rate3:
description: 'Tax rate'
description: 'Tax rate 3'
type: number
format: float
example: '10.00'
@ -123,13 +131,13 @@
format: float
example: '0.80'
date:
description: 'The expense date formate Y-m-d'
description: 'The expense date format Y-m-d'
type: string
example: '2022-12-01'
payment_date:
description: 'The date of payment for the expense, format Y-m-d'
type: string
example: ''
example: '2022-12-01'
should_be_invoiced:
description: 'Flag whether the expense should be invoiced'
type: boolean