You must enable the Auto generate code feature for receipts on the Purchase Order Module Control form. Receipts generated using the mobile processes uses this logic to generate receipt references.