Please pass on the old customer import from csv module so that we can make it up-to-date. It does not seem to be available in the extensions repo.
On adding a customer through the FA Add Customer form the following SQLs are generated:
INSERT INTO `2_crm_persons` VALUES
('2', 'Justin Zhou Lu', 'Justin Lu', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '', '0');
INSERT INTO `2_crm_contacts` VALUES
(3, '2', 'cust_branch', 'general', '2')
, (4, '2', 'customer', 'general', '2');
INSERT INTO `2_cust_branch` VALUES
(2, '2', 'Justin Zhou Lu', 'Justin Lu', '', '1', '1', '', 'DEF', '1', '', '4510', '1200', '4500', '1', '0', '', '0', 'Male', '0');
INSERT INTO `2_debtors_master` VALUES
('2', 'Justin Zhou Lu', 'Justin Lu', NULL, 'PQ453625N', 'USD', '1', '0', '0', '1', '4', '0', '0', '0', 'Male', '0');
Attached is what I understand to be the ERD between these tables (they are not fully depicted in the FA v2.3 ERD pdf).
Joe / Janusz - please explain if these relationships are correct with the 2_crm_contacts.type field enforcing some sort of filter.
There is no field for gender and CitizenID Number of the person in FA as of now.....GST / VAT Number field can be used for Citizen ID Number for now whilst gender can be placed in the Notes field but these land up in the 2_cust_branch and 2_debtors_master tables!
The id field of the 2_crm_contacts table does not seem to be referenced anywhere and is just used for uniqueness for view/edit purposes.
The cust_branch.branch_ref, debtors_master.debtor_ref and the crm_persons.name (and not the crm_persons.ref) are in the select boxes.