Topic: Import of customers and branches
Good day:
Very nice project! Thank you.
Using MySQL Workbench, I have run SQL statements to INSERT INTO 0_debtors_master successfully from a csv file. All Customers show up fine in FA under Sales->Maintenance->Add and Manage Customers.
Then using MySQL Workbench, I ran the following SQL statements:
INSERT INTO 0_cust_branches (debtor_no, br_name, branch_ref, br_address, br_post_address, inactive)
SELECT debtor_no, name, debtor_ref, address, address, inactive
FROM 0_debtors_master;
This completed successfully and I can see all the added branches from within MySQL Workbench and phpMyAdmin.
When I select a Customer in FA and click on Add or Edit to see the Branch, it does not bring up the corresponding Branch, but an empty panel with "Add New" button at the bottom. The same occurs if I go directly to Customer Branches and select a Customer.
I looked into /sales/manage/customer_branches.php and customers.php to see if I could figure out if the problem was within those scripts, but not quite sure of parts of that code. The project I am working with will need for certain Customers to have Branches, so I would like to resolve this issue.
Any help would be greatly appreciated.
Butch