Vibecode Reference Manual

kExpenseReportHeader2_Lines

kExpenseReportHeader2_Lines


Info


Inherits from kDataObject\kExpenseReportLine2



Properties


Name

Type

Label

List

Owned

Cluster

Mandatory

Unique

Note

Parentid

kExpenseReportLine2

-

Sequence

tkSequence

-

Inherited from kExpenseReportLine2

Date

tkDate

Date

check mark

Visible if LineType=1,3 if 2 Invisible (or protected) Default: Parent.EndDate

Project

kProject

Project

check mark

Default: Parent.Project

Type

kExpenseType

Expense Type

check mark

Visible if LineType=1,3 if 2 Invisible (or protected) Default: kExpenseAppSetup.MileageExpenseType

ExpenseAmount

tkAmount

Expense Amount

check mark

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

check mark

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

check mark

If Linetype=3: Invisible or Protect

HasAttendees

tkYesNo

Other Attendees?

check mark

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

check mark

check mark

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 upon 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

(I) : Event is defined in parent class



IncrementalSearch


Inherited from kExpenseReportLine2

  • class : kExpenseReportLine2

  • searchproperty : Date

  • displayproperties : Date,Type.Description