Categorie: reference
Bijgewerkt: 2026-04-08
actionfield workflow actionfield1575
ActionField1575
Beschrijving: Set CurrencyFields for the RequestForQuotation. Custom: Nee
Propertiesbewerken
| Property | Type | Accessor |
|---|---|---|
| RequestForQuotation | RequestForQuotation | Root |
XMLbewerken
<Workflow Name="ActionField1575" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
<Description>Set CurrencyFields for the RequestForQuotation.</Description>
<Properties>
<Property Name="RequestForQuotation" Type="RequestForQuotation" Accessor="Root" Direction="In" />
</Properties>
<Execution>
<UserContent Name="Pre" />
<Transaction>
<Choose Name="Has Vendor">
<When Condition="${RequestForQuotation.Vendor} != Empty">
<Assign Name="Set Currency" Property="${RequestForQuotation.Currency}" Value="${RequestForQuotation.Vendor.Currency}" />
<Assign Name="Set ContactEmpId" Property="${RequestForQuotation.Contact}" Value="${RequestForQuotation.Vendor.PurchaseContact}" />
</When>
<Otherwise Name="No Vendor">
<Assign Name="Set Currency" Property="${RequestForQuotation.Currency}" Value="${RequestForQuotation.SystemCompany.Currency}" />
<Assign Name="Set ContactEmpId" Property="${RequestForQuotation.Contact}" Value="Empty" />
</Otherwise>
</Choose>
<Command Name="FindExchangeRate" CommandName="FindExchangeRate">
<Parameter Name="CounterCurrency" Direction="In" Value="${RequestForQuotation.Currency}" />
<Parameter Name="Date" Direction="In" Value="#{Environment.CurrentDateTime}" />
<Parameter Name="ConversionFactor" Direction="Out" OutputProperty="${RequestForQuotation.CurrencyConversionFactor}" />
<Parameter Name="Rate" Direction="Out" OutputProperty="${RequestForQuotation.CurrencyRate}" />
</Command>
<Command Name="calculate StandardTotalPrice" CommandName="CalculateCurrency">
<Parameter Name="ConversionFactor" Direction="In" Value="${RequestForQuotation.CurrencyConversionFactor}" />
<Parameter Name="Decimals" Direction="In" Value="${RequestForQuotation.TotalPrice.DecimalDigits}" />
<Parameter Name="Rate" Direction="In" Value="${RequestForQuotation.CurrencyRate}" />
<Parameter Name="ToCalculate" Direction="In" Value="${RequestForQuotation.TotalPrice}" />
<Parameter Name="Calculated" Direction="Out" OutputProperty="${RequestForQuotation.StandardTotalPrice}" />
</Command>
</Transaction>
<UserContent Name="Post" />
</Execution>
</Workflow>