Categorie: reference
Bijgewerkt: 2026-04-08
actionfield workflow actionfield1129
ActionField1129
Beschrijving: Add a ReceiptLine to a Receipt for an received Purchase. Also create a PurchaseLine for the added ReceiptLine. Custom: Nee
Propertiesbewerken
| Property | Type | Accessor |
|---|---|---|
| Receipt | Receipt | Root |
| FormName | UltimoString | Optional |
XMLbewerken
<Workflow Name="ActionField1129" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
<Description>Add a ReceiptLine to a Receipt for an received Purchase. Also create a PurchaseLine for the added ReceiptLine.</Description>
<Properties>
<Property Name="Receipt" Type="Receipt" Accessor="Root" Direction="In" />
<Property Name="FormName" Type="UltimoString" Accessor="Optional" Direction="In" />
<Property Name="CreatedPurchaseLine" Type="PurchaseLine" Accessor="Internal" />
<Property Name="Purchase" Type="Purchase" Accessor="Internal" />
</Properties>
<Execution>
<UserContent Name="Pre" />
<Validation Name="Validate Receipt status" Condition="${Receipt.Status} == ReceiptStatus.Created || ${Receipt.Status} == ReceiptStatus.PreApproved" MessageCode="0514">
<Parameter Name="Receipt" Direction="In" Value="${Receipt}" />
</Validation>
<WorkflowCall Name="Receipt_GetPurchase" WorkflowName="Receipt_GetPurchase">
<Parameter Name="Receipt" Direction="In" Value="${Receipt}" />
<Parameter Name="Statuses" Direction="In" Value="256" />
<Parameter Name="SelectedPurchase" Direction="Out" OutputProperty="${Purchase}" />
</WorkflowCall>
<Transaction>
<WorkflowCall Name="Purchase_CreateReceiptLine" WorkflowName="Purchase_CreateReceiptLine">
<Parameter Name="Purchase" Direction="In" Value="${Purchase}" />
<Parameter Name="Receipt" Direction="In" Value="${Receipt}" />
<Parameter Name="CreatedPurchaseLine" Direction="Out" OutputProperty="${CreatedPurchaseLine}" />
</WorkflowCall>
<When Name="WhenStockLevelPerSite" Condition="#{UltimoSettings.StockLevelPerSite} == True && ${Purchase} != Empty">
<AssignWhenEmpty Name="Assign site on purchase to receipt" Property="${Receipt.Site}" Value="${Purchase.Site}" />
</When>
<AssignWhenEmpty Name="Set Receipt.Vendor" Property="${Receipt.Vendor}" Value="${Purchase.Vendor}" />
</Transaction>
<UserContent Name="Post" />
<View Name="Go to PurchaseLine screen" ViewName="DataEntryScreen">
<Parameter Name="DomainObject" Direction="In" Value="${CreatedPurchaseLine}" />
<Parameter Name="FocusEditableField" Direction="In" Value="True" />
<Parameter Name="ScreenName" Direction="In" Value="${FormName}" />
</View>
</Execution>
</Workflow>