...
Investigation
From the technical side , this means that there may be a discrepancy between the status of the PO line and the statuses of its associated Pieces pieces in the database. The following connections are possible between PO line with PARTIALLY_RECEIVED and FULLY_RECEIVED statuses and state of pieces:
...
Two types of approaches can be offered - "scheduled-style" mechanism that check the status of pieces and change the status of the PO line if necessary; “interceptor-style” mechanism that monitor changes in the status of pieces and change the status of the PO line if necessary.
...