QRS Validations in Output Processes
When posting outputs through any of the following processes:
- Inventory Put-away
- Output Journal
- Production Journal
The system must validate the output against the active QRS Document Lines for the associated Production Order Line.
If a QRS Document Line exists for a specific Production Order and Line No., the system will assess whether the lot being posted meets all the required quality attributes as defined in the QRS.
These validations depend on system configuration values defined for the QRS Control Method and whether deviations from expected values are allowed.
Validations
The validation logic is driven by the configuration setting “QRS Control Method for Production Documents”, which can have the following values:
-
On Inserting Tracking: Validation occurs as soon as the user selects or enters tracking information (e.g., Lot No.) in the item tracking lines. If the selected lot does not meet one or more of the required attributes in the related QRS Document Line, the system shows a warning message alerting the user of the mismatch.
-
On Insert Tracking & Document Posting: The same validation as above applies both when the tracking is inserted and again at the moment of posting. If a deviation is detected in either step, the user is notified.
-
Document Posting: In this case, validation occurs only at the time of posting. The system does not raise any warning while entering tracking information, but it will still block the document if a mismatch is found during posting and deviations are not allowed.
Whether this deviation can be accepted depends on the configuration of the “Allow Deviation Values on Production Orders” setting.
-
If Allow Deviation Values = True: The system will allow the posting of the output even if deviations exist. These deviations will be automatically recorded in the QRS Deviation Entries Page at the moment of posting, providing full traceability.
-
If Allow Deviation Values = False: The system will prevent the posting and display an error message. Users must correct the issue by selecting a valid lot or adjusting the QRS to match reality before continuing.
Expiration Date Validation
In addition to Lot Attribute validations, the system should also validate the expected expiration date of the lot being posted.
-
If the related QRS Document Line does not specify a “Minimum Shelf Life”, the system will calculate an expected expiration date using the “Sales Minimum Shelf Life” from the Item Card. This date is calculated based on the Ending Date of the Production Order Line.
-
The expiration date of the selected lot must be equal to or later than this expected expiration date. If not, and if deviations are not allowed, the system will block the posting with the standard deviation error message.
This ensures that even when no explicit minimum shelf life is defined at the QRS level, the system still applies a baseline validation for product freshness and regulatory compliance.