kExpenseReportHeader2_Lines
kExpenseReportHeader2_Lines
Info
Inherits from kDataObject\kExpenseReportLine2
Properties
| Name | Type | Label | List | Owned | Cluster | Mandatory | Unique | Note |
|---|---|---|---|---|---|---|---|---|
| Inherited from kExpenseReportLine2 | ||||||||
| Date | tkDate | Date | Visible if LineType=1,3 if 2 Invisible (or protected) Default: Parent.EndDate | |||||
| Project | kProject | Project | Default: Parent.Project | |||||
| Type | kExpenseType | Expense Type | Visible if LineType=1,3 if 2 Invisible (or protected) Default: kExpenseAppSetup.MileageExpenseType | |||||
| ExpenseAmount | tkAmount | Expense Amount | Default Currency set by Parent.Employee.Company.Currency If Type=3 calculated by Parent.Veichle.Allowance.Amount * | |||||
| ExpenseAmount.Value | tkValue | Amount | - | |||||
| ExpenseAmount.Currency | kCurrency | Currency | - | mandatory(true) {TODO: Mandatory only if Value<>0} | ||||
| CommissionsAmount | tkAmount | Commissions Amount | - | Default Currency set by Parent.Employee.Company.Currency: protected | ||||
| CommissionsAmount.Value | tkValue | Amount | - | |||||
| CommissionsAmount.Currency | kCurrency | Currency | - | mandatory(true) {TODO: Mandatory only if Value<>0} | ||||
| ExchangeRate | tkExchangeRate | ExchangeRate | - | Default from kExchangeRate Parent.Employee.Company.Currency.Code+ExpenseAmount.Currency.Code | ||||
| AmountToBeRefunded | tkAmount | Amount to be Refunded | Default Currency set by Parent.Employee.Company.Currency: protected | |||||
| AmountToBeRefunded.Value | tkValue | Amount | - | |||||
| AmountToBeRefunded.Currency | kCurrency | Currency | - | mandatory(true) {TODO: Mandatory only if Value<>0} | ||||
| Payer | kExpensePayer | Payer | If Linetype=3: Invisible or Protect | |||||
| HasAttendees | tkYesNo | Other Attendees? | Default NO If Linetype=3: Invisible or Protect | |||||
| InternalAttendees | kEmployee | Internal Attendees | List | Not Owned | - | Visible only if HasAttendes=1 | ||
| ExternalAttendeesNumber | tkSmallInt | Number of External Attendees | - | Visible only if HasAttendes=1 | ||||
| ExternalAttendeesNames | tkDescription | Names of External Attendees | - | Visible only if HasAttendes=1 | ||||
| Attachments | kExpenseReportAttachment | Attachments | List | Owned | - | mandatory: at least one If Linetype=3: Invisible or Protect | ||
| HotelCheckInDate | tkDate | Check-in Date | - | Visible only if Type.Category=2 | ||||
| HotelCheckOutDate | tkDate | Check-out Date | - | Visible only if Type.Category=2 | ||||
| HotelLodgingAmount | tkAmount | Lodging Amount | - | Visible only if Type.Category=2 Default Currency set by Parent.Employee.Company.Currency | ||||
| HotelLodgingAmount.Value | tkValue | Amount | - | |||||
| HotelLodgingAmount.Currency | kCurrency | Currency | - | mandatory(true) {TODO: Mandatory only if Value<>0} | ||||
| HotelLines | kExpenseReportHotelLine | List | Owned | - | Visible only if Type.Category=2 | |||
| VehicleAllowanceEntry | tkVehicleAllowanceEntry | Vehicle Allowance Entry | - | Visible only if LineType=3 | ||||
| VehicleAllowanceEntry.LocationFrom | tkDescription | From Location | - | |||||
| VehicleAllowanceEntry.LocationTo | tkDescription | To location | - | |||||
| VehicleAllowanceEntry.TravelType | tkTravelType | Travel Type | - | |||||
| VehicleAllowanceEntry.Distance | tkQuantity | Distance | - | TODO: how to allow just some UOMs (only length UOM) | ||||
| VehicleAllowanceEntry.Distance.Value | tkValue | Quantity | - | |||||
| VehicleAllowanceEntry.Distance.UnitOfMeasure | kUnitOfMeasure | UOM | - | TODO: true only if tkvalue<>0 | ||||
| Remark | kRemark | Remarks | Owned | - | ||||
| PolicyCompliant | tkYesNo | Compliant to Policy | - | |||||
| PolicyCompliantMessage | tkTranslatableDescription | Policy Message | - | |||||
| Cancelled | tkYesNo | Cancelled | - | |||||
| Inherited from kDataObject | ||||||||
| Id | tkUnique | Id | ||||||
| ClassName | tkCode | Class Name | - | |||||
| CreatedBy | tkCode | Created BY | - | |||||
| LastModifiedBy | tkCode | Last Modified By | - | |||||
| CreatedDate | tkDateTime | Created Date | - | |||||
| LastModifiedDate | tkDateTime | Last Modified Date | - | |||||
| RevisionNumber | tkInteger | Revision Number | - | |||||
| WorkflowStatus | kWorkflowStatus | Workflow Status | - | |||||
| OwnedOnRequest | tkYesNo | Is owned on request | - | |||||
| Origin | kSystem | Origin | - | |||||
| LastModifiedProcess | tkGuid | Last process | - | |||||
(E) : Type have an event assigned to it, look at type documentation for mode details
(A) : Property have an autocoderole, look autocoderole grid for mode details
Events
| When | Method Name | Module | Parameters | On | Off | Asynch |
|---|---|---|---|---|---|---|
| beforeinsert (I) | OnInitWorkFlow | kCoreServices | ||||
| afterinsert (I) | AutoTransition | kCoreServices | ||||
| afterupdate (I) | AutoTransition | kCoreServices | workflowstatus |
IncrementalSearch
Inherited from kExpenseReportLine2
- class : kExpenseReportLine2
- searchproperty : Date
- displayproperties : Date,Type.Description