Categorie: reference
Bijgewerkt: 2026-04-08
actionfield workflow actionfield1713
ActionField1713
Beschrijving: Toggle all lines related to the same job/invoice/warehouse serve out Custom: Nee
Propertiesbewerken
| Property | Type | Accessor |
|---|---|---|
| InternalChargeLine | InternalChargeLine | Root |
XMLbewerken
<Workflow Name="ActionField1713" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
<Description>Toggle all lines related to the same job/invoice/warehouse serve out</Description>
<Properties>
<Property Name="InternalChargeLine" Type="InternalChargeLine" Accessor="Root" Direction="In" />
<Property Name="InternalChargeLines" Type="List[InternalChargeLine]" Accessor="Internal" Comment="holds all the lines related to the job of the current line" />
<Property Name="NewToggleValue" Type="Boolean" Accessor="Internal" Default="=!${InternalChargeLine.IncludeInCorrectionInternalCharge}" />
</Properties>
<Execution>
<UserContent Name="Pre" />
<Transaction>
<GetList Name="Get all lines related to this line" Type="InternalChargeLine" OutputProperty="${InternalChargeLines}" OrderBy="Id" OrderDirection="Ascending">
<Joins>
<Join Name="InvoiceLine" Alias="invl" Type="LeftOuterJoin" />
<Join Name="invl.Id.Invoice" Alias="inv" Type="LeftOuterJoin" />
<Join Name="WarehouseServeOutline" Alias="whsol" Type="LeftOuterJoin" />
<Join Name="whsol.Id.WarehouseServeOut" Alias="whso" Type="LeftOuterJoin" />
</Joins>
<Filters>
<WhenFilter Condition="${InternalChargeLine.Job} != Empty">
<PropertyFilter PropertyName="Job" Operator="=" PropertyValue="${InternalChargeLine.Job}" />
</WhenFilter>
<WhenFilter Condition="${InternalChargeLine.InvoiceLine.Id.Invoice?} != Empty">
<PropertyFilter PropertyName="inv.Id" Operator="=" PropertyValue="${InternalChargeLine.InvoiceLine.Id.Invoice.Id}" />
</WhenFilter>
<WhenFilter Condition="${InternalChargeLine.WarehouseServeOutline.Id.WarehouseServeOut?} != Empty">
<PropertyFilter PropertyName="whso.Id" Operator="=" PropertyValue="${InternalChargeLine.WarehouseServeOutline.Id.WarehouseServeOut}" />
</WhenFilter>
<PropertyFilter PropertyName="IncludeInCorrectionInternalCharge" Operator="!=" PropertyValue="${NewToggleValue}" />
</Filters>
</GetList>
<ForEach Name="Enable or disable all lines" In="${InternalChargeLines}" As="Line">
<Assign Name="Toggle this line" Property="${Line.IncludeInCorrectionInternalCharge}" Value="${NewToggleValue}" />
</ForEach>
</Transaction>
<UserContent Name="Post" />
</Execution>
</Workflow>