kExpenseReportHeader2
Expense Report - Header
Info
Inherits from kDataObject\kRoot\kBasic
Properties
Name | Type | Label | List | Owned | Cluster | Mandatory | Unique | Note |
---|---|---|---|---|---|---|---|---|
Employee | kEmployee | Employee | Default ##currentuser## | |||||
StartDate | tkDate | Start Date | ||||||
EndDate | tkDate | End Date | ||||||
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 kBasic | ||||||||
Code | tkCode | Code | ||||||
Description | tkTranslatableDescription | Description | - | |||||
Remark | kRemark | Remark | Owned | - | ||||
Inherited from kRoot | ||||||||
TimeStampVersion | tkTimeStamp | - | mandatory(true) Servirebbe una query di update prima di poter applicare questa modifica | |||||
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
Autocoderoles
Property | Ignore user input | When | Code part | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Type | Value | Start | Length | Fill Char | Dir | Seq. Suf. | Prefix | Limit Len | |||
Code | 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 |
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 |
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 |