Categorie: reference
Bijgewerkt: 2026-04-08
actionfield workflow actionfield1693
ActionField1693
Beschrijving: Copy CostCarriers from Job, Equipment or ProcessFunction to InvoiceLine. Custom: Nee
Propertiesbewerken
| Property | Type | Accessor |
|---|---|---|
| InvoiceLine | InvoiceLine | Root |
XMLbewerken
<Workflow Name="ActionField1693" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
<Description>Copy CostCarriers from Job, Equipment or ProcessFunction to InvoiceLine.</Description>
<Properties>
<Property Name="InvoiceLine" Type="InvoiceLine" Accessor="Root" Direction="In" />
<Property Name="CopyJobExpenseCarriers" Type="RequestResult" Accessor="Internal" Default="Yes" />
</Properties>
<Execution>
<UserContent Name="Pre" />
<When Name="InvoiceLine has a job" Condition="${InvoiceLine.Job} != Empty">
<When Name="Are the ExpenseCarriers different on Job and InvoiceLine" Condition="(${InvoiceLine.Job.Equipment} != Empty && ${InvoiceLine.Equipment} != Empty && ${InvoiceLine.Equipment} != ${InvoiceLine.Job.Equipment}) || (${InvoiceLine.Job.CostType} != Empty && ${InvoiceLine.CostType} != Empty && ${InvoiceLine.CostType} != ${InvoiceLine.Job.CostType}) || (${InvoiceLine.Job.ProcessFunction} != Empty && ${InvoiceLine.ProcessFunction} != Empty && ${InvoiceLine.ProcessFunction} != ${InvoiceLine.Job.ProcessFunction} ) || (${InvoiceLine.Job.Project} != Empty && ${InvoiceLine.Project} != Empty && ${InvoiceLine.Project} != ${InvoiceLine.Job.Project} ) || (${InvoiceLine.Job.SkillCategory} != Empty && ${InvoiceLine.SkillCategory} != Empty && ${InvoiceLine.SkillCategory} != ${InvoiceLine.Job.SkillCategory} ) || (${InvoiceLine.Job.Department} != Empty && ${InvoiceLine.Department} != Empty && ${InvoiceLine.Department} != ${InvoiceLine.Job.Department} ) || (${InvoiceLine.Job.CostCenter} != Empty && ${InvoiceLine.CostCenter} != Empty && ${InvoiceLine.CostCenter} != ${InvoiceLine.Job.CostCenter} ) || (${InvoiceLine.Job.Customer} != Empty && ${InvoiceLine.Customer} != Empty && ${InvoiceLine.Customer} != ${InvoiceLine.Job.Customer} ) ">
<Question Name="Question CopyJobExpenseCarrierse" Type="YesNo" MessageCode="3357" Default="Yes" OutputProperty="${CopyJobExpenseCarriers}">
<Parameter Name="InvoiceLine" Direction="In" Value="${InvoiceLine}" />
</Question>
</When>
</When>
<Transaction>
<Command Name="CalculateTotals" CommandName="InvoiceLine_CalculateTotals">
<Parameter Name="InvoiceLine" Direction="In" Value="${InvoiceLine}" />
</Command>
<Command Name="CalculateInvoiceCost" CommandName="InvoiceLine_SetInternalChargeValues">
<Parameter Name="InvoiceLine" Direction="In" Value="${InvoiceLine}" />
</Command>
<Choose Name="Job or no job">
<When Name="InvoiceLine has a job" Condition="${InvoiceLine.Job} != Empty">
<When Name="CopyJobExpenseCarriers is Yes" Condition="${CopyJobExpenseCarriers} == Yes">
<Assign Name="Equipment" Property="${InvoiceLine.Equipment}" Value="${InvoiceLine.Job.Equipment}" />
<Assign Name="CostType" Property="${InvoiceLine.CostType}" Value="${InvoiceLine.Job.CostType}" />
<Assign Name="ProcessFunction" Property="${InvoiceLine.ProcessFunction}" Value="${InvoiceLine.Job.ProcessFunction}" />
<Assign Name="Project" Property="${InvoiceLine.Project}" Value="${InvoiceLine.Job.Project}" />
<Assign Name="SkillCategory" Property="${InvoiceLine.SkillCategory}" Value="${InvoiceLine.Job.SkillCategory}" />
<Assign Name="Department" Property="${InvoiceLine.Department}" Value="${InvoiceLine.Job.Department}" />
<Assign Name="CostCenter" Property="${InvoiceLine.CostCenter}" Value="${InvoiceLine.Job.CostCenter}" />
</When>
</When>
<Otherwise Name="No job">
<WorkflowCall Name="InvoiceLine_CopyDataFromEquipmentProcessFunction" WorkflowName="InvoiceLine_CopyDataFromEquipmentProcessFunction">
<Parameter Name="InvoiceLine" Direction="In" Value="${InvoiceLine}" />
</WorkflowCall>
</Otherwise>
</Choose>
</Transaction>
<UserContent Name="Post" />
</Execution>
</Workflow>