generate receipt number
new models update with postgresql