R30149 PaymentTransaction - Pos Location Required

Code R30149
Entity Finance.Payments.PaymentTransactions Entity
Name PosLocationRequired
Attribute PosLocation
Layer Back-End
Events Commit
Priority Late
Modify NO
Applicable Legislations ALL // no condition needed
Action If (PosLocation == NULL && EnterpriseCompanyLocation != NULL)

, validate that: PosLocations[(EnterpriseCompanyLocation = PaymentTransaction.EnterpriseCompanyLocation) && (Active = True)].Count() = 0
Description The POS Location field of the Payment Transaction could only be empty if the the Payment Transaction is created in a Enterprise Company Location for which there is no active POS Locations.
Message Payment Transaction '{DocumentText}' is created in an Enterprise Company Location that has an active POS Location but the field POS Location in this document does not contain a value.

Please enter a POS Location.
Version Introduced: 2019.1

Updated: -
Revocable NO

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