MGCLatticeExpenseReportLineContract
Data contract for one line of an expense report created by MGCLatticeExpenseReportService.createExpenseReport: the expense category, date, amount and currency, how it was paid, the merchant and texts, optional sales tax group overrides, an optional project and financial dimensions. Members left empty take the standard defaults of the expense line (the category's payment method and description, the company currency, today's date, the sales tax groups the category, worker and project give).
Methods
new
Initializes a new instance of the MGCLatticeExpenseReportLineContract class.
- Visibility:
public - Returns:
void
No parameters.
construct
Creates a new instance of the MGCLatticeExpenseReportLineContract class.
- Visibility:
public - Returns:
MGCLatticeExpenseReportLineContractA new MGCLatticeExpenseReportLineContract instance.
No parameters.
parmCategoryId
Gets or sets the expense category (Expense management > Setup > Expense categories). On a line with a project it is also the project category, so it must be a category that is used in projects.
- Visibility:
public - Returns:
TrvCostTypeEDTThe CategoryId value.
| Name | Type | Optional | Description |
|---|---|---|---|
_categoryId | TrvCostTypeEDT | Yes | The CategoryId value. |
parmTransDate
Gets or sets the date of the expense. Empty = today, as the standard expense line defaults it.
- Visibility:
public - Returns:
TransDateThe TransDate value.
| Name | Type | Optional | Description |
|---|---|---|---|
_transDate | TransDate | Yes | The TransDate value. |
parmAmount
Gets or sets the amount of the expense in CurrencyCode. Must not be zero.
- Visibility:
public - Returns:
AmountCurThe Amount value.
| Name | Type | Optional | Description |
|---|---|---|---|
_amount | AmountCur | Yes | The Amount value. |
parmCurrencyCode
Gets or sets the currency of the amount. Empty = the legal entity's accounting currency.
- Visibility:
public - Returns:
CurrencyCodeThe CurrencyCode value.
| Name | Type | Optional | Description |
|---|---|---|---|
_currencyCode | CurrencyCode | Yes | The CurrencyCode value. |
parmPaymentMethod
Gets or sets the payment method (for example Cash or CreditCard in USMF). Empty = the category's default payment method. It must be a method the category allows.
- Visibility:
public - Returns:
TrvPayMethodEDTThe PaymentMethod value.
| Name | Type | Optional | Description |
|---|---|---|---|
_paymentMethod | TrvPayMethodEDT | Yes | The PaymentMethod value. |
parmMerchant
Gets or sets the merchant.
- Visibility:
public - Returns:
TrvExpMerchantIdThe Merchant value.
| Name | Type | Optional | Description |
|---|---|---|---|
_merchant | TrvExpMerchantId | Yes | The Merchant value. |
parmDescription
Gets or sets the line description. Empty = the category's description.
- Visibility:
public - Returns:
TrvExpTransDescriptionThe Description value.
| Name | Type | Optional | Description |
|---|---|---|---|
_description | TrvExpTransDescription | Yes | The Description value. |
parmBusinessPurpose
Gets or sets the business purpose of the expense.
- Visibility:
public - Returns:
TrvLinePurposeEDTThe BusinessPurpose value.
| Name | Type | Optional | Description |
|---|---|---|---|
_businessPurpose | TrvLinePurposeEDT | Yes | The BusinessPurpose value. |
parmAdditionalInformation
Gets or sets additional information about the expense.
- Visibility:
public - Returns:
ItemFreeTxtThe AdditionalInformation value.
| Name | Type | Optional | Description |
|---|---|---|---|
_additionalInformation | ItemFreeTxt | Yes | The AdditionalInformation value. |
parmSalesTaxGroup
Gets or sets the sales tax group. Empty = the group the standard defaults from the worker, project or tax setup.
- Visibility:
public - Returns:
TaxGroupThe SalesTaxGroup value.
| Name | Type | Optional | Description |
|---|---|---|---|
_salesTaxGroup | TaxGroup | Yes | The SalesTaxGroup value. |
parmItemSalesTaxGroup
Gets or sets the item sales tax group. Empty = the expense category's item sales tax group.
- Visibility:
public - Returns:
TaxItemGroupThe ItemSalesTaxGroup value.
| Name | Type | Optional | Description |
|---|---|---|---|
_itemSalesTaxGroup | TaxItemGroup | Yes | The ItemSalesTaxGroup value. |
parmProjId
Gets or sets the project the expense is charged to; empty = none.
- Visibility:
public - Returns:
ProjIdThe ProjId value.
| Name | Type | Optional | Description |
|---|---|---|---|
_projId | ProjId | Yes | The ProjId value. |
parmActivityNumber
Gets or sets the project activity; only with ProjId.
- Visibility:
public - Returns:
ProjActivityNumberThe ActivityNumber value.
| Name | Type | Optional | Description |
|---|---|---|---|
_activityNumber | ProjActivityNumber | Yes | The ActivityNumber value. |
parmDimensions
Gets or sets financial dimensions of the line, merged over the dimensions the line defaults from the report, the worker and the project.
- Visibility:
public - Returns:
ListThe Dimensions value.
| Name | Type | Optional | Description |
|---|---|---|---|
_dimensions | List | Yes | The Dimensions value. |