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

ActionField191

Beschrijving: Delete an added InvoiceLine and the PurchaseLine that is not activated yet (PurchaseLine status must be AddedInvoiceLine). Custom: Nee

Propertiesbewerken

Property Type Accessor
PurchaseLine PurchaseLine Root

XMLbewerken

<Workflow Name="ActionField191" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
	<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
	<Description>Delete an added InvoiceLine and the PurchaseLine that is not activated yet (PurchaseLine status must be AddedInvoiceLine).</Description>
	<Properties>
		<Property	Name="PurchaseLine"	Type="PurchaseLine"	Accessor="Root"		Direction="In" />

		<Property	Name="Invoice"		Type="Invoice"		Accessor="Internal" />
		<Property	Name="InvoiceLine"	Type="InvoiceLine"	Accessor="Internal" />
		<Property	Name="Purchase"		Type="Purchase"		Accessor="Internal" />
	</Properties>
	<Execution>
		<UserContent Name="Pre" />

		<Validation Name="PurchaseLineStatus OK?" Condition="${PurchaseLine.Status} == PurchaseLineStatus.AddedInvoiceLine" MessageCode="0723" Comment="ummPCHLNOTSTINVLADDED">
			<Parameter	Name="PurchaseLine"	Direction="In"		Value="${PurchaseLine}" />
		</Validation>

		<Transaction>
			<Assign Name="Save InvoiceLine" Property="${InvoiceLine}" Value="${PurchaseLine.InvoiceLine}" />
			<Assign Name="Save purchase" Property="${Purchase}" Value="${PurchaseLine.Id.Purchase}" />
			<Assign Name="Save Invoice" Property="${Invoice}" Value="${InvoiceLine.Id.Invoice}" />
			<Assign Name="Clear InvoiceLine" Property="${PurchaseLine.InvoiceLine}" Value="Empty" />
			<Assign Name="Clear PurchaseLine" Property="${InvoiceLine.PurchaseLine}" Value="Empty" />

			<DeleteObject Name="Delete InvoiceLine" DomainObject="${InvoiceLine}" />

			<DeleteObject Name="Delete PurchaseLine" DomainObject="${PurchaseLine}" />
		</Transaction>

		<UserContent Name="Post" />

		<Message Name="ummPCHLINVLDELETED" MessageCode="0724">
			<Parameter	Name="Purchase"	Direction="In"		Value="${Purchase}" />
		</Message>

		<View Name="View invoice" ViewName="DataEntryScreen">
			<Parameter	Name="DomainObject"	Direction="In"		Value="${Invoice}" />
		</View>
	</Execution>
</Workflow>