This script can be useful when managing serial numbers on products, depending on the Global receipt & issue.
In this case, and for any reason, the serial numbers may no longer be synchronized with the stock lines: the number of serial numbers associated with the stock line is different from the stock quantity.

Two functions are available to resynchronize them:
  • The Stock resynchronization and control function. This function runs an automatic resynchronization processing. This only applies to cases which can be solved with no manual intervention.
  • The second function, Serial/stock resynchronization, is the function described here.
Use this function when the automatic processing is not sufficient and when a manual intervention, product by product, is necessary.

You can:
  • view the de-synchronized stock lines and, depending on the context,
  • remove a serial number from a stock line,
  • associate a new serial number to a stock line.
The processing does not take into account the stock lines awaiting put-away.

Prerequisites

SEEREFERTTO Refer to documentation Implementation

Screen management

The function displays a selection screen for the lines to be processed:

  • Select:
    • the site to which the processing applies,
    • the product or product range to be processed.

  • Specify if you want to view all the stock lines or only the desynchronized lines.
  • Click OK to start the selection.

A second screen displays the de-synchronized products meeting the selection criteria, product by product.
Click the navigation buttons to go from one product to another.

Header

The header displays, product by product:
  • the stock quantity,
  • the number of serial numbers for the product-site compared to the initial situation,
  • the number of serial numbers compared to the new situation after the corrections and resynchronizations have been carried out.

In initial situation, several de-synchronization cases can occur:
  • The total number of serial numbers does not match the total quantity of stock lines.

  • The total number of serial numbers does match the total quantity of stock lines. The de-synchronization is seen at the stock line level: some serial numbers can be associated with an incorrect stock line or the number of serial numbers on a line does not match the quantity of the line.

Tab Stock situation

Use this tab to run the resynchronization.
According to the choice made during the launch, this tab displays, in a tab, either all the stock lines or only the ones which have been de-synchronized. The de-synchronized lines are displayed in red.

For each line, the following information is reminded:
  • the quantity in STK,
  • the initial number of serial numbers before processing followed by the number of serial numbers after launching the processing,
  • the main characteristics of the stock.
The resynchronization processing is performed line by line.
To resynchronize a line, click Serial resynchronization from the Actions icon.


Specific actions

Error messages

The only error messages are the generic ones.

Tables used

SEEREFERTTO Refer to documentation Implementation