It is about invoicing partially received order with quality management enabled for the item.
Scenario:
A Purchase order was raised for an item for 4 quantities .
Product receipt was done for 2 quantities. (Partially received)
A quality order got generated for the item based on the setup done for the item in Quality associations (Event type= Product receipt and Event blocking=Invoice)
Product receipt was done for the remaining quantity (2 quantities).
Second quality order got generated.
Quality process was completed for the first quality order (Status= Pass)
While posting the invoice for the first product receipt/GRN , ends up with an error as “
Posting - Invoice: XXXXX - The update has been blocked because the item is in inspection or because there is a conflict between a parameter setup and a policy in a quality association”.
The invoice posting logic is checking if all the quality orders of the PO were processed or not. Since the second quality order is still pending for processing, the QO status displays as “Open quality order” in the invoice lines.
The above scenario is common in the business.
Suggested fix
Product receipt number need to be updated in the quality order for tracking purpose.
A parameter “Allow partial invoicing with open quality orders” should be added in the AP parameters. When enabled (Yes), the logic must validate if the quality order for the product receipt was passed or not. If “Passed”, it should allow to post the invoice for the product receipt.