Table of Contents

R39040 Accounting Voucher Lines - Line New Currency Is Valid

Name Value
Code R39040
Entity Finance.Accounting.AccountingVoucherLines Entity
Name LineNewCurrencyIsValid
Attribute Currency
Layer Front-End
Events AttributeChanged (Currency)
Priority Normal
Modify NO
Applicable Legislations ALL // no condition needed
Action Validates that:
If (Account != null) AND (Account.Currency != null) AND (Account.LimitToBaseCurrency = False) THEN (Currency == Account.Currency)
If (Account != null) AND (Account.LimitToBaseCurrency = TRUE) THEN (Currency = AccountingVoucher.EnterpriseCompany.BaseCurrency OR AccountingVoucher.EnterpriseCompany.ReportingCurrency)
OR If (InstanceChangeRequest.ChangeKind = 'BaseCurrencyChange') AND (InstanceChangeRequest.BaseCurrencyChange = 'Scheduled') THEN (AccountingVoucherLines.Currency = InstanceChangeRequest.NewValueCurrency)
Description If the Account specified in Voucher Lines does not have the 'Limit to base currency' enabled, then the Currency in the Accounting Voucher Line must match the specified Account Currency (if any).
However, if the 'Limit to base currency' is enabled, then the Currency used in the Accounting Voucher Line must be either the Enterprise Company's Base Currency, Reporting Currency or if there is a record of Instance Change Request where the ChangeKind is ‘BaseCurrencyChange’ and its state is ‘Scheduled’ then Currency can be equal to the New Value Currency.
Message Error 1: The allowed currencies are either the Account currency ‘{Account.Currency}’ or the Base currency ‘{AccountingVoucher.EnterpriseCompany.BaseCurrency}’.
Error 2: The allowed currencies are the Account currency ‘{Account.Currency}’, Base currency ‘{AccountingVoucher.EnterpriseCompany.BaseCurrency}’ or Reporting currency '{AccountingVoucher.EnterpriseCompany.ReportingCurrency}'.
Error 3: The allowed currencies are the Account currency ‘{Account.Currency}’, Base currency ‘{AccountingVoucher.EnterpriseCompany.BaseCurrency}’, Reporting currency '{AccountingVoucher.EnterpriseCompany.ReportingCurrency}' or New Value Currency '{InstanceChangeRequest.NewValueCurrency}'.
Error 4: The allowed currencies are the Account currency ‘{Account.Currency}’, Base currency ‘{AccountingVoucher.EnterpriseCompany.BaseCurrency}’ or New Value Currency '{InstanceChangeRequest.NewValueCurrency}'.
Version Introduced: 26.1 SP1
Updated:
Revocable YES

* For more information about the Business Rules Documentation Template and a short explanation of each column, see topic System Business Rules.