Copy batch numbers in Items - LineLoop

Anuncio
Copy batch numbers in Items - LineLoop
Summary
Module
Level
Requirements
B1 Usability Package, LineLoop, B1 Validation
Advanced
B1UP 2014
Scenario
The customer receives different products with the same batch number and since this documents have a cog
amount of items they want the system to copy the same number to all the lines automatically.
Needed configuration
Function button
First we need to create a function to execute the action once all the items are in the document lines.
Universal Function - Macro
To do this, we create a universal function type Macro that will store the Batch number and the additional
information that we need to copy. This macro will also contain another Universal Function.
Focus($[$38.11.0]); //Pone el foco en cantidad //Focus on Quantity
Transfer($[$BOYX_1.0.0]|@STORE1); //Guarda el valor del lote //Store the batch number
Transfer($[$BOYX_2.0.DATE]|@STORE2); //Guarda la fecha //Store the batch date
Activate(5896);//Abre ventana de lotes //Activate batch window
UF(UF-108); //Función universal de line loop //Executes Lineloop to asign the batch info
Universal Function - LineLoop
This Universal Function is a lineloop that will select line by line pf the Batch selection window. For each line will
execute another UF in the LineUF column.
IF ($[$35.2.0] <> '')
BEGIN
SELECT 'BOYUM' FOR BROWSE
END
This last UF will copy the stored information in the columns we define.
Activate(); //Activa la nueva ventana //Activate the new window
Click($[$35.2.0]); //Da clic en el producto //Click on the item
Set($[$3.2.0.1]|@STORE1); //Copia el dato del lote //Copy batch number
Set($[$3.12.DATE.1]|@STORE2); //Copia la fecha de admisión //Copy admission date.
Click($[$1.0.0]); //Clic en actualizar //Click on update
Use of Functionality
Once we have all the items in the lines and the batch information in the fields we define, the system will open
the Batch selection window and assign all the batch information for all the lines (items) in that window.
NB: THIS IS A SIMPLE EXAMPLE USING USER DEFINED FIELD, YOU CAN CHANGE THIS FIELD ACORDING OF THE VALUES THAT YOU
WANT TO COPY TO THE BATCH NUMBERS.
Descargar