so I didn't test this until i got to adding more purchased good into the system and unfortunately it's adding everything into it as 3000001 and the last product line i have is 3000016 for that line. I looked through the code it's the same as the one you added above. the only thing i can imagine is that it doesn't start with "0" or it can't find the reference. I'm not sure.