Categorie: reference
Bijgewerkt: 2026-04-08
actionfield workflow actionfield1711
ActionField1711
Beschrijving: Change amount, cost and hours of InternalChargeLine Custom: Nee
Propertiesbewerken
| Property | Type | Accessor |
|---|---|---|
| InternalChargeLine | InternalChargeLine | Root |
XMLbewerken
<Workflow Name="ActionField1711" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
<Description>Change amount, cost and hours of InternalChargeLine</Description>
<Properties>
<Property Name="InternalChargeLine" Type="InternalChargeLine" Accessor="Root" Direction="In" />
<Property Name="Amount" Type="Decimal" Accessor="Internal" Comment="This field contains the number of items invoiced" />
<Property Name="Cost" Type="CompanyMoney" Accessor="Internal" Comment="This field contains the costs invoiced" />
<Property Name="Hours" Type="Decimal" Accessor="Internal" Comment="This field contains the number of hours invoiced" />
<Property Name="InternalChargeLines" Type="List[InternalChargeLine]" Accessor="Internal" />
</Properties>
<Execution>
<UserContent Name="Pre" />
<WorkflowCall Name="Check whether the InternalChargeLines have a source (if not, the InternalCharge has grouped InternalChargeLines)" WorkflowName="InternalCharge_GetLinesReferencingSourceLine">
<Parameter Name="InternalCharge" Direction="In" Value="${InternalChargeLine.Id.InternalCharge}" />
<Parameter Name="InternalChargeLines" Direction="Out" OutputProperty="${InternalChargeLines}" />
</WorkflowCall>
<Validation Name="InternalCharge is old style" Condition="${InternalChargeLines.Count} != 0" MessageCode="3415">
<Parameter Name="InternalCharge" Direction="In" Value="${InternalChargeLine.Id.InternalCharge}" />
</Validation>
<WorkflowCall Name="Dialog_ChangeInternalChargeLine" WorkflowName="Dialog_ChangeInternalChargeLine">
<Parameter Name="InternalChargeLine" Direction="In" Value="${InternalChargeLine}" />
<Parameter Name="Amount" Direction="Out" OutputProperty="${Amount}" />
<Parameter Name="Cost" Direction="Out" OutputProperty="${Cost}" />
<Parameter Name="Hours" Direction="Out" OutputProperty="${Hours}" />
</WorkflowCall>
<Transaction>
<Choose Name="what base object does the line refer to">
<When Name="Material" Condition="${InternalChargeLine.JobMaterial} != Empty">
<Assign Name="set Amount" Property="${InternalChargeLine.MaterialQuantityInvoiced}" Value="${Amount}" />
<Assign Name="set Cost" Property="${InternalChargeLine.WarehouseServeOutCostInvoiced}" Value="${Cost}" />
<Assign Name="set Amount on source" Property="${InternalChargeLine.JobMaterial.InvoiceQuantity}" Value="${Amount}" />
<Assign Name="set Cost on source" Property="${InternalChargeLine.JobMaterial.InvoiceCost}" Value="${Cost}" />
<When Name="is there a related WarehouseServeOutline" Condition="${InternalChargeLine.JobMaterial.WarehouseServeOutline} != Empty">
<Assign Name="set Amount on source" Property="${InternalChargeLine.JobMaterial.WarehouseServeOutline.InvoiceQuantity}" Value="${Amount}" />
<Assign Name="set Cost on source" Property="${InternalChargeLine.JobMaterial.WarehouseServeOutline.InvoiceCost}" Value="${Cost}" />
</When>
</When>
<When Name="External" Condition="${InternalChargeLine.JobExternal} != Empty">
<Assign Name="set Amount" Property="${InternalChargeLine.ExternalQuantityInvoiced}" Value="${Amount}" />
<Assign Name="set Cost" Property="${InternalChargeLine.ExternalCostInvoiced}" Value="${Cost}" />
<Assign Name="set Amount on source" Property="${InternalChargeLine.JobExternal.InvoiceQuantity}" Value="${Amount}" />
<Assign Name="set Cost on source" Property="${InternalChargeLine.JobExternal.InvoiceCost}" Value="${Cost}" />
</When>
<When Name="Tool" Condition="${InternalChargeLine.JobTool} != Empty">
<Assign Name="set Amount" Property="${InternalChargeLine.ToolQuantityInvoiced}" Value="${Amount}" />
<Assign Name="set Cost" Property="${InternalChargeLine.ToolCostInvoiced}" Value="${Cost}" />
<Assign Name="set Hours" Property="${InternalChargeLine.ToolHoursInvoiced}" Value="${Hours}" />
<Assign Name="set Amount on source" Property="${InternalChargeLine.JobTool.InvoiceQuantity}" Value="${Amount}" />
<Assign Name="set Cost on source" Property="${InternalChargeLine.JobTool.InvoiceCost}" Value="${Cost}" />
<Assign Name="set Hours on source" Property="${InternalChargeLine.JobTool.InvoiceHours}" Value="${Hours}" />
</When>
<When Name="JobResource" Condition="${InternalChargeLine.JobResource} != Empty">
<Assign Name="set Cost" Property="${InternalChargeLine.LabourCostInvoiced}" Value="${Cost}" />
<Assign Name="set Hours" Property="${InternalChargeLine.LabourHoursInvoiced}" Value="${Hours}" />
<Assign Name="set Cost on source" Property="${InternalChargeLine.JobResource.InvoiceCost}" Value="${Cost}" />
<Assign Name="set Hours on source" Property="${InternalChargeLine.JobResource.InvoiceHours}" Value="${Hours}" />
</When>
<When Name="JobWeekLabour" Condition="${InternalChargeLine.JobWeekLabour} != Empty">
<Assign Name="set Cost" Property="${InternalChargeLine.LabourCostInvoiced}" Value="${Cost}" />
<Assign Name="set Hours" Property="${InternalChargeLine.LabourHoursInvoiced}" Value="${Hours}" />
<Assign Name="set Cost on source" Property="${InternalChargeLine.JobWeekLabour.InvoiceCost}" Value="${Cost}" />
<Assign Name="set Hours on source" Property="${InternalChargeLine.JobWeekLabour.InvoiceHours}" Value="${Hours}" />
</When>
<When Name="JobInternalChargeInstallment" Condition="${InternalChargeLine.JobInternalChargeInstallment} != Empty">
<Assign Name="set Cost" Property="${InternalChargeLine.InstallmentCostInvoiced}" Value="${Cost}" />
<Assign Name="set Cost on source" Property="${InternalChargeLine.JobInternalChargeInstallment.InvoiceCost}" Value="${Cost}" />
</When>
<When Name="InvoiceLine" Condition="${InternalChargeLine.InvoiceLine} != Empty">
<Assign Name="set Amount" Property="${InternalChargeLine.PurchaseQuantityInvoiced}" Value="${Amount}" />
<Assign Name="set Cost" Property="${InternalChargeLine.PurchaseCostInvoiced}" Value="${Cost}" />
<Assign Name="set Amount on source" Property="${InternalChargeLine.InvoiceLine.InvoiceQuantity}" Value="${Amount}" />
<Assign Name="set Cost on source" Property="${InternalChargeLine.InvoiceLine.InvoiceCost}" Value="${Cost}" />
</When>
<When Name="PurchaseRequestLine" Condition="${InternalChargeLine.PurchaseRequestLine} != Empty">
<Assign Name="set Amount" Property="${InternalChargeLine.PurchaseQuantityInvoiced}" Value="${Amount}" />
<Assign Name="set Cost" Property="${InternalChargeLine.PurchaseCostInvoiced}" Value="${Cost}" />
<Assign Name="set Amount on source" Property="${InternalChargeLine.PurchaseRequestLine.InvoiceQuantity}" Value="${Amount}" />
<Assign Name="set Cost on source" Property="${InternalChargeLine.PurchaseRequestLine.InvoiceCost}" Value="${Cost}" />
</When>
<When Name="WarehouseServeOutline" Condition="${InternalChargeLine.WarehouseServeOutline} != Empty">
<Assign Name="set Amount" Property="${InternalChargeLine.WarehouseServeOutQuantityInvoiced}" Value="${Amount}" />
<Assign Name="set Cost" Property="${InternalChargeLine.WarehouseServeOutCostInvoiced}" Value="${Cost}" />
<Assign Name="set Amount on source" Property="${InternalChargeLine.WarehouseServeOutline.InvoiceQuantity}" Value="${Amount}" />
<Assign Name="set Cost on source" Property="${InternalChargeLine.WarehouseServeOutline.InvoiceCost}" Value="${Cost}" />
</When>
</Choose>
</Transaction>
<UserContent Name="Post" />
</Execution>
</Workflow>