Welcome Guest, Not a member yet? Register   Sign In
ID incrementing for multiple users - please help
#10

[eluser]tonanbarbarian[/eluser]
You might want to consider a whole new take... or you might not

Anyway...

How about instead of having invoices IDS as a sequential number for each user what about a timestamp approach. Have the ID be the date time the invoice was issued. i.e. Y-m-d H:iConfused

Invoice ID: 20071209232547
Invoice ID: 20071210105423

Not only does it allow you to see what order the invoices are issued, it allows you to immediately see when they are issued.
And if for whatever reason an invoice needs to be backdated it can be without having to give it a high invoice number.
Sorting will show the the invoices in the order they were created etc.
And of course no real code needed to generate the invoice id or process in any way, just insert the datetime or use a timestamp field.


Messages In This Thread
ID incrementing for multiple users - please help - by El Forum - 12-06-2007, 12:58 AM
ID incrementing for multiple users - please help - by El Forum - 12-06-2007, 01:17 AM
ID incrementing for multiple users - please help - by El Forum - 12-06-2007, 01:47 AM
ID incrementing for multiple users - please help - by El Forum - 12-06-2007, 01:57 AM
ID incrementing for multiple users - please help - by El Forum - 12-06-2007, 03:25 AM
ID incrementing for multiple users - please help - by El Forum - 12-06-2007, 03:39 AM
ID incrementing for multiple users - please help - by El Forum - 12-06-2007, 04:10 AM
ID incrementing for multiple users - please help - by El Forum - 12-06-2007, 11:09 AM
ID incrementing for multiple users - please help - by El Forum - 12-09-2007, 06:46 PM
ID incrementing for multiple users - please help - by El Forum - 12-09-2007, 06:58 PM
ID incrementing for multiple users - please help - by El Forum - 12-09-2007, 07:50 PM



Theme © iAndrew 2016 - Forum software by © MyBB