Categorie: reference Bijgewerkt: 2026-04-08 actionfield workflow actionfield1712

ActionField1712

Beschrijving: Select or deselect all lines of credit InternalCharge for inclusion in correction InternalCharge. Custom: Nee

Propertiesbewerken

Property Type Accessor
CreditInternalCharge InternalCharge Root
IncludeInCorrectionInternalCharge Boolean Required

XMLbewerken

<Workflow Name="ActionField1712" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
	<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
	<Description>Select or deselect all lines of credit InternalCharge for inclusion in correction InternalCharge.</Description>
	<Properties>
		<Property	Name="CreditInternalCharge"					Type="InternalCharge"			Accessor="Root"		Direction="In" />

		<Property	Name="IncludeInCorrectionInternalCharge"	Type="Boolean"					Accessor="Required"	Direction="In"		Comment="True = select; False = deselect" />

		<Property	Name="CreditInternalChargeLines"			Type="List[InternalChargeLine]"	Accessor="Internal"						Comment="holds all the lines for this credit InternalCharge" />
	</Properties>
	<Execution>
		<UserContent Name="Pre" />

		<Validation Name="Status should be Open or Approved" Condition="${CreditInternalCharge.Status} == InternalChargeStatus.Open || ${CreditInternalCharge.Status} == InternalChargeStatus.Approved" MessageCode="3414">
			<Parameter	Name="CreditInternalCharge"	Direction="In"		Value="${CreditInternalCharge}" />
		</Validation>

		<Transaction>
			<GetList Name="Get all lines for this credit InternalCharge" Type="InternalChargeLine" OutputProperty="${CreditInternalChargeLines}" OrderBy="Id" OrderDirection="Ascending">
				<Filters>
					<PropertyFilter	PropertyName="Id.InternalCharge"	Operator="="		PropertyValue="${CreditInternalCharge}" />
				</Filters>
			</GetList>

			<ForEach Name="ForEach CreditInternalChargeLine" In="${CreditInternalChargeLines}" As="CreditInternalChargeLine">
				<Assign Name="Include or exclude CreditInternalChargeLine" Property="${CreditInternalChargeLine.IncludeInCorrectionInternalCharge}" Value="${IncludeInCorrectionInternalCharge}" />
			</ForEach>
		</Transaction>

		<UserContent Name="Post" />
	</Execution>
</Workflow>