Having issues with Lot Number design

My customer is having an issue with the way the system is creating Lot Numbers. We are looking to view the lot numbers in chronological order (FIFO) to know which lot should be shipped first.

What they have set up is:


They have a prefix, then it adds a sequential number and even though the Leading Zeros is checked, it doesn’t add them. After that, it adds the date. So if it is the 3rd receipt for that day, the First Lot Number would be B320241212 and the 10th receipt would be B1020241212 which would show first if sorted in chronological order. But in reality, it should show as the 10th receipt, not the first receipt.

What we would like to see is that it starts with the Prefix, adds the date next in the format YYYYMMDD and then add the sequential number.

Has anyone been able to change the order of the items displayed/used in creating the lot number?

1 Like

Not sure how to get the date first (since it is a “trailing date string”).

But for leading zeros, put the NUMBER of leading zeros.

So… put (2). Not (00).

1 Like

Strike that… its the total number of available digits/characters.

So if you put in 5, but your lot number is 15… you’ll get 00015

1 Like

Hey Beth!

We use the PartLot.FirstRefDate to sort the order of the lots. That way, we didn’t have to build any intelligence into the Lot Number.

5 Likes

This is also what I was about to chime in with! Nice Mark!

1 Like