PwsCostCardDetail
Overview
This structure contains the complete set of information about a cost card. The structure is used both to retrieve detailed cost card information and to pass information about a cost card back to the server to get updated.
Format
- PwsCostCardDetail
- CostCardId: Int32
- CostCardUid: Int64
- ReferenceId: String
- Description: String (4000)
- DescriptionClearFlag: Boolean
- ExpenseTypeIdentity: PwsExpenseTypeRef
- IncurredAmount: Double
- IncurredDate: DateTime
- IncurredOpsCurrencyIdentity: PwsOpsCurrencyRef
- IncurredVatAmount: Double
- LocationClearFlag: Boolean
- LocationIdentity: PwsLocationRef
- NonBillableFlag: Boolean
- OverrideClientAmount: Double
- OverrideClientAmountClearFlag: Boolean
- PayeeVendorClearFlag: Boolean
- PayeeVendorIdentity: PwsVendorRef
- ProjectIdentity: PwsProjectRef
- ResourceClearFlag: Boolean
- ResourceIdentity: PwsResourceRef
- Timestamp: String
- TotalAmountDisbursedCurrency: Double
- Udf1: PwsUserDefinedFieldDetail
- Udf1ClearFlag: Boolean
- Udf2: PwsUserDefinedFieldDetail
- Udf2ClearFlag: Boolean
- Units: Double
- ExternalGroupingIdentifier: Int32
- ExternalGroupingIdentifierClearFlag: Boolean
Elements
xElement | Data Type | Required? | Default | Description | Sample Data |
---|---|---|---|---|---|
CostCardId | Int32 | On Insert: No On Update: No | The cost card Id is a unique identifier for a cost card. For internal use only.  | ||
CostCardUid | Int64 | On Insert: Yes On Update: Yes | The cost card Uid is a unique and immutable identifier for a cost card | 1152921504614515248 | |
ReferenceId | String | On Insert: No On Update: No | Reference id (used to affiliate PwsSaveCostCardResult records with associated PwsCostCardDetail records). | 123 | |
Description | String (4000) | On Insert: Yes (if the associated expense type requires a description) On Update: No | The cost card description. This field can be defined as a required field based on an expense type setting. | Breakfast Meeting | |
DescriptionClearFlag | Boolean | No | false | If set to 'true', the cost card description will be set to null | false |
ExpenseTypeIdentity | On Insert: Yes On Update: No | The expense type associated with the cost card | |||
IncurredAmount | Double | On Insert: Yes On Update: No | The incurred amount (i.e. the amount that was spent) associated with the cost card | 179.99 | |
IncurredDate | DateTime | On Insert: Yes On Update: No | The date the expense was incurred (in midnight UTC format) | 2018-02-06T00:00:00Z | |
IncurredOpsCurrencyIdentity | On Insert: Yes On Update: No | The currency associated with the incurred amount | |||
IncurredVatAmount | Double | On Insert: No On Update: No | The value added tax associated with the expense | 0 | |
LocationClearFlag | Boolean | On Insert: No On Update: No | false | If set to 'true', the cost card location will be set to null | false |
LocationIdentity | On Insert: Yes (if location is required on cost cards due to installation settings) On Update: No | The location associated with the cost card. This field can be defined as a required field based on an installation setting. | |||
NonBillableFlag | Boolean | On Insert: No On Update: No | false | If set to 'true', the expense will not be billable to the client | false |
OverrideClientAmount | Double | On Insert: No On Update: No | The amount provided here will override the calculated client amount for the cost card | false | |
OverrideClientAmountClearFlag | Boolean | On Insert: No On Update: No | If set to 'true', the overridden client amount will be reset to the calculated client amount | false | |
PayeeVendorClearFlag | Boolean | On Insert: No On Update: No | If set to 'true', the payee vendor will be reset to null | false | |
PayeeVendorIdentity | On Insert: Yes On Update: No | The payee vendor associated with the cost card | |||
ProjectIdentity | On Insert: Yes On Update: No | The project associated with the cost card | |||
ResourceClearFlag | Boolean | On Insert: No On Update: No | false | If set to 'true', the resource associated with the cost card will be reset to null (note: a null resouce is not valid for a cost card on an expense report) | false |
ResourceIdentity | On Insert: Yes (if the cost card is on an expense report) On Update: No | The resource associated with the cost card | |||
Timestamp | String | On Insert: Yes On Update: No | This is a Base64 encoded timestamp optionally utilized for cost card locking | AAAAAA62IdY= | |
TotalAmountDisbursedCurrency | Double | On Insert: Yes On Update: No | The total amount in disbursed currency | 179.99 | |
Udf1 | On Insert: Yes (if the associated expense type requires this UDF) On Update: No | The first user defined field. Cost Cards may have a maximum of two User Defined Fields. | |||
Udf1ClearFlag | Boolean | On Insert: No On Update: No | false | If set to 'true', Udf1 will be reset to null | false |
Udf2 | On Insert: Yes (if the associated expense type requires this UDF) On Update: No | The second user defined field. Cost Cards may have a maximum of two User Defined Fields. | |||
Udf2ClearFlag | Boolean | On Insert: No On Update: No | If set to 'true', Udf2 will be reset to null | false | |
Units | Double | On Insert: No On Update: No | 1 | The number of units associated with the cost card expense | 1 |
ExternalGroupingIdentifier | Int32 | On Insert: No On Update: No | This unique identifier allows users to group multiple cost cards together, most commonly user for reporting purposes | 123 | |
ExternalGroupingIdentifierClearFlag | Boolean | On Insert: No On Update: No | false | If set to 'true', the external grouping identifier is reset to null | false |