Hello,
When the material has the same number, the macro does not load the materials when they enter from unit to unit on the same day.
In order to check what I say, click on the button "passer tous les non-passé" and then see on the "Storage" tab you can see that in column AJ-row 18 to 22 only 1 unit of material has been loaded 8599120 dated 10/03/17, it would actually have to load 4 pieces of material 8599120 dated 10/03/17. The same thing happens with the material 8599130, only one unit is charged with the date 03/03/17, the reality is that it has to load 4 units of this material 8599130.
Regards,
Ferdinan