Categorie: reference
Bijgewerkt: 2026-04-08
actionfield workflow actionfield1573
ActionField1573
Beschrijving: Copy currencyvalues from vendor to JobPlanPurchaseRequestLine or PmJobPurchaseRequestLine Custom: Nee
Propertiesbewerken
| Property | Type | Accessor |
|---|---|---|
| DomainObject | DomainObject | Root |
XMLbewerken
<Workflow Name="ActionField1573" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
<Description>Copy currencyvalues from vendor to JobPlanPurchaseRequestLine or PmJobPurchaseRequestLine</Description>
<Properties>
<Property Name="DomainObject" Type="DomainObject" Accessor="Root" Direction="In" Comment="Only records of type JobPlanPurchaseRequestLine or PmJobPurchaseRequestLine are accepted" />
</Properties>
<Execution>
<UserContent Name="Pre" />
<When Name="Check entity" Condition="${DomainObject.EntityName} == JobPlanPurchaseRequestLine || ${DomainObject.EntityName} == PmJobPurchaseRequestLine" Comment="Only records of type JobPlanPurchaseRequestLine or PmJobPurchaseRequestLine are accepted">
<Transaction>
<Choose Name="Set currency for domain object">
<When Name="When vendor has currency" Condition="${DomainObject.Vendor} != Empty && ${DomainObject.Vendor.Currency} != Empty">
<Assign Name="Copy currency" Property="${DomainObject.Currency}" Value="${DomainObject.Vendor.Currency}" />
</When>
<Otherwise Name="When no vendor/no currency">
<Assign Name="Copy currency" Property="${DomainObject.Currency}" Value="#{Company.Currency}" />
</Otherwise>
</Choose>
<Command Name="FindExchangeRate" CommandName="FindExchangeRate">
<Parameter Name="CounterCurrency" Direction="In" Value="${DomainObject.Currency}" />
<Parameter Name="ConversionFactor" Direction="Out" OutputProperty="${DomainObject.CurrencyConversionFactor}" />
<Parameter Name="Rate" Direction="Out" OutputProperty="${DomainObject.CurrencyRate}" />
</Command>
<When Name="Check JobPlanPurchaseRequestLine" Condition="${DomainObject.EntityName} == JobPlanPurchaseRequestLine">
<WorkflowCall Name="JobPlanPurchaseRequestLine_ReCalculatePrice" WorkflowName="JobPlanPurchaseRequestLine_ReCalculatePrice">
<Parameter Name="JobPlanPurchaseRequestLine" Direction="In" Value="${DomainObject}" />
</WorkflowCall>
</When>
<When Name="Check PmJobPurchaseRequestLine" Condition="${DomainObject.EntityName} == PmJobPurchaseRequestLine">
<WorkflowCall Name="PmJobPurchaseRequestLine_ReCalculatePrice" WorkflowName="PmJobPurchaseRequestLine_ReCalculatePrice">
<Parameter Name="PmJobPurchaseRequestLine" Direction="In" Value="${DomainObject}" />
</WorkflowCall>
</When>
</Transaction>
</When>
<UserContent Name="Post" />
</Execution>
</Workflow>