Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface CreateCashExpense

Creates a cash expense.

This service expects:

  • DeviceID, which is the cash device the money was used from.
  • TypeID which is one of the available expense types.
  • An Amount, which is the amount of cash that was taken from or added to the device. The amount should always be positive, but the semantics of the amount depends on the AmountType of the ExpenseType: if ExpenseType.AmountType = Expense, then the amount is booked as an expense, if it's Income then it's booked as income. Either way, it should be a positive number.
  • A TaxCodeID, which refers to one of the available tax codes.
  • A Description, which is the reason for this expense (for example: 'lunch').
  • A BlobID, which contains an image of the receipt.
  • A SignatureBlobID, which contains an image of the signature

Hierarchy

  • CreateCashExpense

Index

Properties

Amount

Amount: number

Min: 0

Optional BlobID

BlobID: undefined | string

Optional image of the receipt

Description

Description: string

DeviceID

DeviceID: number

Entity type: Device

Optional SignatureBlobID

SignatureBlobID: undefined | string

Optional image of the signature

TaxCodeID

TaxCodeID: number

Entity type: TaxCode

TypeID

TypeID: number

Entity type: CashExpenseType