Question 330
An AL extension team encounters the following situation: A partner adds a custom discount table but never defines which customer or item the rule applies to. Which technical principle best explains the relevant risk or failure?
Explanation
Correct Answer
Business rules must map to the correct master record scope to avoid cross-customer leakage. The corresponding corrective design is to model stable keys and relations for the discount master data and evaluate it during transactions. A passing check is: Two customers with distinct discount plans receive their intended prices.
Incorrect Answers
This option serves the scenario “A team derives tax amounts from display-formatted strings rather than typed decimals and currency context”. The underlying mechanism is that presentation formatting is not a reliable calculation representation for financial data. The present scenario is distinguished by “Business rules must map to the correct master record scope to avoid cross-customer leakage”.
This alternative addresses the separate case “A warehouse extension posts inventory movements directly from a loose text file without staging or validation”. The underlying mechanism is that high-volume transaction ingestion still needs the accounting and inventory lifecycle controls. The deciding requirement here is “Business rules must map to the correct master record scope to avoid cross-customer leakage”.
The option would apply to “A purchasing feature stores totals in every line even though totals can be derived from quantity and unit price”. Redundant totals can drift if one input changes without recalculation. This question instead requires “Business rules must map to the correct master record scope to avoid cross-customer leakage”.