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

ActionField135

Beschrijving: Create ReceiptLines from Purchase. Custom: Nee

Propertiesbewerken

Property Type Accessor
Receipt Receipt Root
SelectReceivedPurchases Boolean Optional

XMLbewerken

<Workflow Name="ActionField135" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
	<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
	<Description>Create ReceiptLines from Purchase.</Description>
	<Properties>
		<Property	Name="Receipt"						Type="Receipt"		Accessor="Root"		Direction="In" />

		<Property	Name="SelectReceivedPurchases"		Type="Boolean"		Accessor="Optional"	Direction="In"		Default="False"	Comment="When False only select Purchases with statuses Active,PartReceived when True also select Purchases with status Received" />

		<Property	Name="NegativePurchaseLineCount"	Type="Int64"		Accessor="Internal" />
		<Property	Name="SelectedPurchase"				Type="Purchase"		Accessor="Internal" />
		<Property	Name="Statuses"						Type="List[Status]"	Accessor="Internal" />
	</Properties>
	<Execution>
		<UserContent Name="Pre" />

		<Assign Name="Set Statuses" Property="${Statuses}" Value="PurchaseStatus.Active,PurchaseStatus.PartReceived" />

		<When Name="SelectReceivedPurchases is true" Condition="${SelectReceivedPurchases} == true">
			<Assign Name="Set Statuses" Property="${Statuses}" Value="PurchaseStatus.Active,PurchaseStatus.PartReceived,PurchaseStatus.Received" />
		</When>

		<WorkflowCall Name="Receipt_GetPurchase" WorkflowName="Receipt_GetPurchase">
			<Parameter	Name="Receipt"			Direction="In"		Value="${Receipt}" />
			<Parameter	Name="Statuses"			Direction="In"		Value="${Statuses}" />
			<Parameter	Name="SelectedPurchase"	Direction="Out"							OutputProperty="${SelectedPurchase}" />
		</WorkflowCall>

		<WorkflowCall Name="Receipt_CreateLinesFromPurchase" WorkflowName="Receipt_CreateLinesFromPurchase">
			<Parameter	Name="Receipt"						Direction="In"		Value="${Receipt}" />
			<Parameter	Name="SelectedPurchase"				Direction="In"		Value="${SelectedPurchase}" />
			<Parameter	Name="NegativePurchaseLineCount"	Direction="InOut"	Value="${NegativePurchaseLineCount}"	OutputProperty="${NegativePurchaseLineCount}" />
		</WorkflowCall>

		<When Name="Negative purchaselines » Yes" Condition="${NegativePurchaseLineCount} &gt; 0">
			<Message Name="ummPURCHCONTNEG" MessageCode="0587" />
		</When>

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