Skip to main content

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: MGCLatticeExpenseReportLineContract A 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: TrvCostTypeEDT The CategoryId value.
NameTypeOptionalDescription
_categoryIdTrvCostTypeEDTYesThe CategoryId value.

parmTransDate​

Gets or sets the date of the expense. Empty = today, as the standard expense line defaults it.

  • Visibility: public
  • Returns: TransDate The TransDate value.
NameTypeOptionalDescription
_transDateTransDateYesThe TransDate value.

parmAmount​

Gets or sets the amount of the expense in CurrencyCode. Must not be zero.

  • Visibility: public
  • Returns: AmountCur The Amount value.
NameTypeOptionalDescription
_amountAmountCurYesThe Amount value.

parmCurrencyCode​

Gets or sets the currency of the amount. Empty = the legal entity's accounting currency.

  • Visibility: public
  • Returns: CurrencyCode The CurrencyCode value.
NameTypeOptionalDescription
_currencyCodeCurrencyCodeYesThe 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: TrvPayMethodEDT The PaymentMethod value.
NameTypeOptionalDescription
_paymentMethodTrvPayMethodEDTYesThe PaymentMethod value.

parmMerchant​

Gets or sets the merchant.

  • Visibility: public
  • Returns: TrvExpMerchantId The Merchant value.
NameTypeOptionalDescription
_merchantTrvExpMerchantIdYesThe Merchant value.

parmDescription​

Gets or sets the line description. Empty = the category's description.

  • Visibility: public
  • Returns: TrvExpTransDescription The Description value.
NameTypeOptionalDescription
_descriptionTrvExpTransDescriptionYesThe Description value.

parmBusinessPurpose​

Gets or sets the business purpose of the expense.

  • Visibility: public
  • Returns: TrvLinePurposeEDT The BusinessPurpose value.
NameTypeOptionalDescription
_businessPurposeTrvLinePurposeEDTYesThe BusinessPurpose value.

parmAdditionalInformation​

Gets or sets additional information about the expense.

  • Visibility: public
  • Returns: ItemFreeTxt The AdditionalInformation value.
NameTypeOptionalDescription
_additionalInformationItemFreeTxtYesThe 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: TaxGroup The SalesTaxGroup value.
NameTypeOptionalDescription
_salesTaxGroupTaxGroupYesThe SalesTaxGroup value.

parmItemSalesTaxGroup​

Gets or sets the item sales tax group. Empty = the expense category's item sales tax group.

  • Visibility: public
  • Returns: TaxItemGroup The ItemSalesTaxGroup value.
NameTypeOptionalDescription
_itemSalesTaxGroupTaxItemGroupYesThe ItemSalesTaxGroup value.

parmProjId​

Gets or sets the project the expense is charged to; empty = none.

  • Visibility: public
  • Returns: ProjId The ProjId value.
NameTypeOptionalDescription
_projIdProjIdYesThe ProjId value.

parmActivityNumber​

Gets or sets the project activity; only with ProjId.

  • Visibility: public
  • Returns: ProjActivityNumber The ActivityNumber value.
NameTypeOptionalDescription
_activityNumberProjActivityNumberYesThe 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: List The Dimensions value.
NameTypeOptionalDescription
_dimensionsListYesThe Dimensions value.