Overview
This structure represents the fields associated with an expense type
Format
- PwsExpenseType
- ExpenseTypeId: Int32
- ExpenseTypeName: String (50)
- ExpenseTypeUid: Int64
- DefaultUnitCost: Double
- DefaultUnitPrice: Double
- ExpenseEntryInstructions: String (1000)
- HardCostFlag: Boolean
- MileageFlag: Boolean
- ReceiptRequiredFlag: Boolean
- SoftCostFlag: Boolean
- TreatCostsAsPassthroughFlag: Boolean
- Udf1Treatment: String
- Udf2Treatment: String
- UnitDrivenFlag: Boolean
- UnitPluralName: String
- UnitSingularName: String
- VendorInvoiceCostFlag: Boolean
- DescriptionRequiredFlag: Boolean
- ExpenseTypeGroupIdentity: PwsExpenseTypeGroupRef
- SubcontractorInvoiceFlag: Boolean
- DefaultMarkupPercentage: Double
- InactiveFlag: Boolean
- UnitDrivenPricingFlag: Boolean
- LockUnitCostFlag: Boolean
Elements
Element | Data Type | Required? | Default | Description | Sample Data |
---|---|---|---|---|---|
ExpenseTypeId | Int32 | No | The expense type Id is a unique identifier for an expense type. For internal use only. | ||
ExpenseTypeName | String (50) | One of ExpenseTypeName or ExpenseTypeUid is required | The expense type name is a unique identifier for an expense type | Hotel | |
ExpenseTypeUid | Int64 | See ExpenseTypeName | A unique and immutable identifier for an expense type | 1152921504606878414 | |
DefaultUnitCost | Double | Yes (if UnitDrivenFlag = 'true') | The default cost per unit (for unit based expense types only) | ||
DefaultUnitPrice | Double | Yes (if UnitDrivenFlag = 'true') | The default price per unit (for unit based expense types only) | ||
ExpenseEntryInstructions | String (1000) | No | The expense entry instructions for the expense type | ||
HardCostFlag | Boolean | No | false | If set to 'true', the expense type is enabled for expense reports | true |
MileageFlag | Boolean | No | false | If set to 'true', the expense type is mileage based | false |
ReceiptRequiredFlag | Boolean | No | false | If set to 'true', receipts are required for expenses logged against this expense type | false |
SoftCostFlag | Boolean | No | false | If set to 'true', the expense type is enabled for soft costs | true |
TreatCostsAsPassthroughFlag | Boolean | No | false | If set to 'true', expenses logged against this expense type are treated as passthrough expenses | false |
Udf1Treatment | String | No | User Defined Treatement for the first UDF associated with the expense type:
| N | |
Udf2Treatment | String | No | User Defined Treatement for the second UDF associated with the expense type:
| N | |
UnitDrivenFlag | Boolean | No | false | If set to 'true', the expense type is unit based | false |
UnitPluralName | String | Yes (if UnitDrivenFlag = 'true') | The plural name for a unit based expense type (i.e. widgets) | ||
UnitSingularName | String | Yes (if UnitDrivenFlag = 'true') | The singular name for a unit based expense type (i.e. widget) | ||
VendorInvoiceCostFlag | Boolean | No | false | If set to 'true', the expense type is enabled for vendor invoices | |
DescriptionRequiredFlag | Boolean | No | false | If set to 'true', descriptions are required for expenses logged against this expense type | |
ExpenseTypeGroupIdentity | Yes | The expense type group this expense type resides under | |||
SubcontractorInvoiceFlag | Boolean | No | false | If set to 'true', the expense type is enabled for subcontractor invoices | false |
DefaultMarkupPercentage | Double | No | 0 | The default mark up percentage that will be applied to expenses entered against this expense type | 0 |
InactiveFlag | Boolean | No | false | If set to 'true', this expense type is marked as inactive | false |
UnitDrivenPricingFlag | Boolean | Yes (if UnitDrivenFlag = 'true') | false | If set to 'true', the expense type's pricing is unit based | false |
LockUnitCostFlag | Boolean | No | false | If set to 'true', the expense type's pricing is unit based and the unit cost is locked during expense entry | false |