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

ActionField189

Beschrijving: Activate an added InvoiceLine on a PurchaseLine (PurchaseLine status must be AddedInvoiceLine, PurchaseQuantity greater or equal then zero). Custom: Nee

Propertiesbewerken

Property Type Accessor
PurchaseLine PurchaseLine Root

XMLbewerken

<Workflow Name="ActionField189" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
	<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
	<Description>Activate an added InvoiceLine on a PurchaseLine (PurchaseLine status must be AddedInvoiceLine, PurchaseQuantity greater or equal then zero).</Description>
	<Properties>
		<Property	Name="PurchaseLine"	Type="PurchaseLine"	Accessor="Root"		Direction="In" />
	</Properties>
	<Execution>
		<UserContent Name="Pre" />

		<Validation Name="PurchaseLineStatus OK?" Condition="${PurchaseLine.Status} == PurchaseLineStatus.AddedInvoiceLine" MessageCode="0598" Comment="ummPURCHLINENOTSTADDED/if status AddedInvoiceLine then InvoiceLineStatus is PurchaseLineAdded">
			<Parameter	Name="PurchaseLine"	Direction="In"		Value="${PurchaseLine}" />
		</Validation>
		<Validation Name="PurchaseQuantity OK?" Condition="${PurchaseLine.PurchaseQuantity} &gt;= 0" MessageCode="0599" Comment="ummPCHLNEGNOTALLWD">
			<Parameter	Name="PurchaseLine"	Direction="In"		Value="${PurchaseLine}" />
		</Validation>
		<Validation Name="PurchaseLine has invoiceline?" Condition="${PurchaseLine.InvoiceLine} != Empty" MessageCode="0195" Comment="ummPCHLINVLNF">
			<Parameter	Name="PurchaseLine"	Direction="In"		Value="${PurchaseLine}" />
		</Validation>

		<Transaction>
			<ChangeStatus Name="Activate invoiceline" DomainObject="${PurchaseLine.InvoiceLine}" NewStatus="${PurchaseLine.InvoiceLine.Id.Invoice.Status}" Comment="more possibilities than from PurchaseLineAdded to Created?" />

			<Command Name="Activate invoiceline" CommandName="InvoiceLine_Activate">
				<Parameter	Name="InvoiceLine"	Direction="In"		Value="${PurchaseLine.InvoiceLine}" />
			</Command>
		</Transaction>

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