BudgetTransaction
Namespace: CCPEntities
Summary
Transactions can be used in a couple of different ways. First off transactions are usually a response to the creation of a movement that islinked to a budget. When this is the case CCPEntities.BudgetTransactionType.Automatic should be used, because this transaction is triggered
automatically.
In a the scenario a correction needs to be made to a budget, one or more transactions can be made for the same movement. A movement can have
multiple transactions. In this case CCPEntities.BudgetTransactionType.Manual should be used.
Negative numbers might also be used to achieve a correction. When correcting a number of movements the movement itself may be deleted aswell
as the transaction. The sum of all transactions determines the remainder of the budget, so removing a transaction will increment the remainder.
Properties
| Name | Type | FixedLength | MaxLength/Range | Identity | Summary | Value | |
|---|---|---|---|---|---|---|---|
|
|
BudgetTransactionId* | Edm.Int32 | False | true | |||
| MovementId | Edm.Int32 | False | Movement this tranaction was made for, also counts for spending 1 movement for a budget type of CCPEntities.BudgetType.Movements | ||||
| Type* | Edm.Int32 | False | BudgetTranactionType as an integer | ||||
| Movements | Edm.Int32 | False |
Number of movements traveled and transacted. Defaults to 1, in the case of CCPEntities.BudgetTransactionType.Manual this could be more. Also in that case the Movement may not be physically linked in the relation. |
||||
| Distance | Edm.Double | False | Distance spent in this transaction | ||||
| Zones | Edm.Int32 | False | Zones spent in this transaction | ||||
| Amount | Edm.Decimal | False |
Amount spent in this transaction. This is always the BaseAmount and in the case of a Traveler, which Budgets are always for, VAT doesnt apply to it. |
||||
| CreationDateTime* | Edm.DateTime | False | |||||
| RegistrationDateTime* | Edm.DateTime | False | |||||
| LastUpdated | Edm.DateTime | False | |||||
| LastUpdatedUsername | Edm.String | False | |||||
| CreatorUsername | Edm.String | False | |||||
| BudgetId* | Edm.Int32 | False | Budget this transaction belongs to |