order_id is the primary keyfield in table, oscommerce is set as auto increment, but we are going to be using the order_id as the Sales order ref when exporting from the shop to accounts package.
My boss wants the first part of the ordernumber as the date (dmy), as a second line for tracking the date of the orders after export, as we don't always have time to sync the two and also it would mean we keep the format we have always used.
It is also a check, against actual order date, we have found that most people either delete or 'Cannot Find' their shop receipts and on one occasion there was a fault with a product after our warrany period has expired they tried to claim it was purchased after the actual date of buying.
Andy