Vibecode Reference Manual

kExpenseReportHeader2

Expense Report - Header


Info


Inherits from kDataObject\kDataBasic



Properties


Name

Type

Label

List

Owned

Cluster

Mandatory

Unique

Note

Employee

kEmployee

Employee

check mark

Default ##currentuser##

StartDate

tkDate

Start Date

check mark

EndDate

tkDate

End Date

check mark

Project

kProject

Project

-

Vehicle

tkVehicle

Vehicle

-

Vehicle.Model

tkDescription

Model

-

Vehicle.RegistrationPlate

tkDescription

Registration Plate

-

Vehicle.Allowance

tkPrice

Allowance

-

Vehicle.Allowance.Value

tkValue

Price

-

Vehicle.Allowance.Currency

kCurrency

Currency

-

Vehicle.Allowance.UnitOfMeasure

kUnitOfMeasure

UOM

-

TODO: true only if tkvalue<>0

Lines

kExpenseReportLine2

Detail of Expenses

List

Owned

-

TotalAmount

tkAmount

Total Amount

-

TotalAmount.Value

tkValue

Amount

-

TotalAmount.Currency

kCurrency

Currency

-

mandatory(true) {TODO: Mandatory only if Value<>0}

TotalDistance

tkQuantity

Total Quantity

-

TotalDistance.Value

tkValue

Quantity

-

TotalDistance.UnitOfMeasure

kUnitOfMeasure

UOM

-

TODO: true only if tkvalue<>0

TotalExpenses

tkAmount

Total Expenses

-

TotalExpenses.Value

tkValue

Amount

-

TotalExpenses.Currency

kCurrency

Currency

-

mandatory(true) {TODO: Mandatory only if Value<>0}

PolicyCompliant

tkYesNo

Compliant to Policy

-

PolicyCompliantMessage

tkTranslatableDescription

Policy Message

-

OriginalExpense

kExpenseReportHeader2

Original Expense

-

LinesCompleted

tkYesNo

Lines Completed

-

Cancelled

tkYesNo

Cancelled

-

Inherited from kDataBasic

Code

tkCode

Code

check mark

check mark

Description

tkTranslatableDescription

Description

-

Remark

kRemark

Remark

Owned

-

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



Autocoderoles


Property

Ignore user input

When

Code part

Type

Value

Start

Length

Fill Char

Dir

Seq. Suf.

Prefix

Limit Len

Code

cross mark

insert

property

employee.company.code

fixed

-

property

StartDate

2

2

property

StartDate

5

2

fixed

-

sequence

kExpenseReportHeader2

5

0

left

employee.company.code

fixed

0

fixed

0

(I) : Autocoderole is defined in parent class



Events


When

Method Name

Module

Parameters

On

Off

Asynch

beforeupdate

RecalcExpenses

kTravelExpenses

beforeinsert

RecalcExpenses

kTravelExpenses

afterupdate

ApplyPolicy

kTravelExpenses

afterinsert

ApplyPolicy

kTravelExpenses

beforeinsert (I)

OnInitWorkFlow

kCoreServices

afterinsert (I)

AutoTransition

kCoreServices

afterupdate (I)

AutoTransition

kCoreServices

workflowstatus

(I) : Event is defined in parent class



IncrementalSearch


  • class : kExpenseReportHeader2

  • searchproperty : employee.description

  • displayproperties : code,employee.surname,employee.name,description,startdate,enddate



Used By


Class

Property

kExpenseReportHeader

ExportedTo

kExpenseExportToLedger

ExpenseReportHeaders2

kExpenseReportHeader2

OriginalExpense