joe wrote:Hello tom,
Yes, according to the table structure it must be unique. While you never see the customer number, it would be difficult to separate them if not.
/Joe
My problem is that osCommerce uses the Email Address as unique, not a person's name.
Could you consider the problems associated with having the name not Unique?
I was considering changing 'customer_list_row' to include the email address in the pull-down text to aid in choosing WHICH 'John Doe' you wanted.
change line 403 of includes/ui/ui_lists.inc
$sql = "SELECT debtor_no, IF(email = NULL, name, CONCAT(name, ' (', email, ')')), curr_code FROM ".TB_PREF."debtors_master ";
That should cover the majority of the places you might need to pick between two people with the same name.
The other alternative would be to use a nickname for one of them, but if it is not a nickname they actually USE, it would be confusing.
I'd suggest making the email address unique, but that may cause bigger problems for cases where email is not used... (if any)
Yes I know I could make a hack in my copy of the code, but I want to make sure any modules I provide can be used easily with out
too many (any?) additional changes to the base code.
Maybe there is another solution that you can think of that fits better within FA...
I am just looking for the best long term solutions...
tom