Added some special cases
git-svn-id: file:///svn-source/pmgr/branches/invoice_receipt_20090629@285 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
@@ -1607,6 +1607,31 @@ $Data::Dumper::Sortkeys = 1;
|
|||||||
buildTables();
|
buildTables();
|
||||||
|
|
||||||
|
|
||||||
|
######################################################################
|
||||||
|
## Special cases - Name corrections
|
||||||
|
print("Special Cases...\n");
|
||||||
|
$query =
|
||||||
|
"UPDATE pmgr_contacts" .
|
||||||
|
" SET first_name = 'Krystan'" .
|
||||||
|
" WHERE first_name = 'Kristan' AND last_name = 'Mancini'";
|
||||||
|
query($db_handle, $query);
|
||||||
|
$query =
|
||||||
|
"UPDATE pmgr_customers" .
|
||||||
|
" SET name = 'Mancini, Krystan'" .
|
||||||
|
" WHERE name = 'Mancini, Kristan'";
|
||||||
|
query($db_handle, $query);
|
||||||
|
$query =
|
||||||
|
"UPDATE pmgr_contacts" .
|
||||||
|
" SET first_name = NULL, last_name = NULL, company_name = 'Valley Bible Church'" .
|
||||||
|
" WHERE first_name = 'VBC' AND last_name = 'Tenant'";
|
||||||
|
query($db_handle, $query);
|
||||||
|
$query =
|
||||||
|
"UPDATE pmgr_customers" .
|
||||||
|
" SET name = 'Valley Bible Church'" .
|
||||||
|
" WHERE name = 'Tenant, VBC'";
|
||||||
|
query($db_handle, $query);
|
||||||
|
|
||||||
|
|
||||||
######################################################################
|
######################################################################
|
||||||
## Contact Display Names
|
## Contact Display Names
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user