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

ActionField928

Beschrijving: Create a RentableRealEstateContractLine for a RentableRealEstate. Custom: Nee

Propertiesbewerken

Property Type Accessor
RentableRealEstate Space Root
ScreenName String Optional

XMLbewerken

<Workflow Name="ActionField928" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
	<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
	<Description>Create a RentableRealEstateContractLine for a RentableRealEstate.</Description>
	<Properties>
		<Property	Name="RentableRealEstate"							Type="Space"										Accessor="Root"		Direction="In" />

		<Property	Name="ScreenName"									Type="String"										Accessor="Optional"	Direction="In"		Default="rntrecl01"	Comment="Create RentableRealEstateContractLine via this screen" />

		<Property	Name="RentableRealEstateContractLine"				Type="RentableRealEstateContractLine"				Accessor="Internal" />
		<Property	Name="RentableRealEstateContractLineCostMutation"	Type="RentableRealEstateContractLineCostMutation"	Accessor="Internal" />
		<Property	Name="RentableRealEstateContractLineList"			Type="List[RentableRealEstateContractLine]"			Accessor="Internal" />
		<Property	Name="StartDate"									Type="Date?"										Accessor="Internal" />
	</Properties>
	<Execution>
		<UserContent Name="Pre" />

		<Transaction>
			<Insert Name="RentableRealEstateContractLine" ObjectType="RentableRealEstateContractLine" OutputProperty="${RentableRealEstateContractLine}">
				<Parameter	Name="Space"	Direction="In"		Value="${RentableRealEstate}" />
			</Insert>
		</Transaction>

		<SystemDialog Name="Creating a RentableRealEstateContractLine" DialogName="DataEntryScreen">
			<Parameter	Name="DomainObject"	Direction="In"		Value="${RentableRealEstateContractLine}" />
			<Parameter	Name="ScreenName"	Direction="In"		Value="${ScreenName}" />
		</SystemDialog>

		<Validation Name="RentableRealEstateContractLine.ContractLineType should have a value" Condition="${RentableRealEstateContractLine.ContractLineType} != Empty" MessageCode="1712" />

		<Choose Name="CheckInvoiceOnce">
			<When Name="If not InvoiceOnce" Condition="${RentableRealEstateContractLine.InvoiceOnce} == False">
				<Assign Name="Set StartDate" Property="${StartDate}" Value="${RentableRealEstateContractLine.StartDate}" />

				<Validation Name="RentableRealEstateContractLine.StartDate should have a value" Condition="${RentableRealEstateContractLine.StartDate} != Empty" MessageCode="1745" />
				<Validation Name="RentableRealEstateContractLine.ChargeFrequency should have a value" Condition="${RentableRealEstateContractLine.ChargeFrequency} != Empty" MessageCode="1713" />

				<When Name="Data entry dialog will create record, which must be deleted here" Condition="#{UltimoSettings.UseRentableRealEstateTaxAdministrationExport} == True &amp;&amp; ${RentableRealEstateContractLine.ChargeFrequency.Frequency.StandardCode} == WK">
					<Transaction>
						<DeleteObject Name="delete the object created moments ago" DomainObject="${RentableRealEstateContractLine}" />
					</Transaction>

					<Validation Name="Not allowed to choose weekly when exporting to tax administration" Condition="1 == 0" MessageCode="2598" />
				</When>
			</When>

			<Otherwise Name="InvoiceOnce">
				<Assign Name="StartDate for cms for InvoiceOnce components should be empty" Property="${StartDate}" Value="Empty" />
				<Assign Name="Assign EndDate" Property="${RentableRealEstateContractLine.EndDate}" Value="${RentableRealEstateContractLine.StartDate}" />
				<Assign Name="Assign ChargeFrequency" Property="${RentableRealEstateContractLine.ChargeFrequency}" Value="Empty" />
			</Otherwise>
		</Choose>

		<Validation Name="RentableRealEstateContractLine.Vat should have a value" Condition="${RentableRealEstateContractLine.Vat} != Empty" MessageCode="1715" />
		<Validation Name="RentableRealEstateContractLine.Price should have a value" Condition="${RentableRealEstateContractLine.Price} !=  CompanyMoney.Zero" MessageCode="1717" />

		<Transaction>
			<Command Name="CalculateVatPrice" CommandName="CalculateVatPrice">
				<Parameter	Name="InPrice"			Direction="In"		Value="${RentableRealEstateContractLine.Price}" />
				<Parameter	Name="InPriceIsTotal"	Direction="In"		Value="False" />
				<Parameter	Name="Percentage"		Direction="In"		Value="${RentableRealEstateContractLine.Vat.Percentage}" />
				<Parameter	Name="OutVatPrice"		Direction="Out"																	OutputProperty="${RentableRealEstateContractLine.VatPrice}" />
			</Command>

			<Insert Name="RentableRealEstateContractLineCostMutation" ObjectType="RentableRealEstateContractLineCostMutation" OutputProperty="${RentableRealEstateContractLineCostMutation}">
				<Parameter	Name="Status"							Direction="In"		Value="RentableRealEstateContractLineCostMutationStatus.Concept" />
				<Parameter	Name="Description"						Direction="In"		Value="${RentableRealEstateContractLine.Description}" />
				<Parameter	Name="Employee"							Direction="In"		Value="#{User.EmployeeId}" />
				<Parameter	Name="EndDate"							Direction="In"		Value="${RentableRealEstateContractLine.EndDate}" />
				<Parameter	Name="Price"							Direction="In"		Value="${RentableRealEstateContractLine.Price}" />
				<Parameter	Name="PricePerDay"						Direction="In"		Value="${RentableRealEstateContractLine.PricePerDay}" />
				<Parameter	Name="RentableRealEstateContractLine"	Direction="In"		Value="${RentableRealEstateContractLine}" />
				<Parameter	Name="Vat"								Direction="In"		Value="${RentableRealEstateContractLine.Vat}" />
				<Parameter	Name="VatPercentage"					Direction="In"		Value="${RentableRealEstateContractLine.Vat.Percentage}" />
				<Parameter	Name="VatPrice"							Direction="In"		Value="${RentableRealEstateContractLine.VatPrice}" />
			</Insert>

			<ChangeStatus Name="Change status to Approved" DomainObject="${RentableRealEstateContractLineCostMutation}" NewStatus="RentableRealEstateContractLineCostMutationStatus.Approved" />
		</Transaction>

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