Removed the debug comments that were helping me with the sitelink migration, and added in the actual comments that were entered in sitelink.
git-svn-id: file:///svn-source/pmgr/branches/initial_20090526@54 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
@@ -651,7 +651,7 @@ foreach $row (@$result) {
|
|||||||
datefmt($row->{'ChargeDate'}), datefmt($row->{'EndDate'}),
|
datefmt($row->{'ChargeDate'}), datefmt($row->{'EndDate'}),
|
||||||
$row->{'ChargeAmount'}, $row->{'TaxAmount'},
|
$row->{'ChargeAmount'}, $row->{'TaxAmount'},
|
||||||
$row->{'ChargeAmount'} + $row->{'TaxAmount'},
|
$row->{'ChargeAmount'} + $row->{'TaxAmount'},
|
||||||
"SiteLink Charges.ChargeID #".$row->{'ChargeID'})
|
undef)
|
||||||
)) . ")";
|
)) . ")";
|
||||||
query($db_handle, $query) || die("Unable to insert");
|
query($db_handle, $query) || die("Unable to insert");
|
||||||
|
|
||||||
@@ -679,8 +679,7 @@ foreach $row (@$result) {
|
|||||||
(`id`, `stamp`, `comment`)
|
(`id`, `stamp`, `comment`)
|
||||||
VALUES (" .
|
VALUES (" .
|
||||||
join(", ", map({defined $_ ? "'$_'" : "NULL"}
|
join(", ", map({defined $_ ? "'$_'" : "NULL"}
|
||||||
($rid, datefmt($row->{'ReceiptDate'}),
|
($rid, datefmt($row->{'ReceiptDate'}), undef)
|
||||||
"SiteLink Receipts.ReceiptNum #".$row->{'ReceiptNum'})
|
|
||||||
)) . ")";
|
)) . ")";
|
||||||
query($db_handle, $query) || die("Unable to insert");
|
query($db_handle, $query) || die("Unable to insert");
|
||||||
}
|
}
|
||||||
@@ -720,8 +719,7 @@ foreach $row (@$result) {
|
|||||||
join(", ", map({defined $_ ? "'$_'" : "NULL"}
|
join(", ", map({defined $_ ? "'$_'" : "NULL"}
|
||||||
($pid, $rid,
|
($pid, $rid,
|
||||||
$row->{'PaymentDate'} =~ m%3/25/2009% ? 8 : $row->{'PaymentType'},
|
$row->{'PaymentDate'} =~ m%3/25/2009% ? 8 : $row->{'PaymentType'},
|
||||||
$row->{'PaymentAmount'},
|
$row->{'PaymentAmount'}, undef)
|
||||||
"PaymentID #".$row->{'PaymentID'} . ($row->{'Memo'} ? "; ".$row->{'Memo'} : ""))
|
|
||||||
)) . ")";
|
)) . ")";
|
||||||
query($db_handle, $query) || die("Unable to insert");
|
query($db_handle, $query) || die("Unable to insert");
|
||||||
|
|
||||||
@@ -732,6 +730,13 @@ foreach $row (@$result) {
|
|||||||
($chid, $rid, $row->{'PaymentAmount'})
|
($chid, $rid, $row->{'PaymentAmount'})
|
||||||
)) . ")";
|
)) . ")";
|
||||||
query($db_handle, $query) || die("Unable to insert");
|
query($db_handle, $query) || die("Unable to insert");
|
||||||
|
|
||||||
|
if ($row->{'Memo'}) {
|
||||||
|
$query =
|
||||||
|
"UPDATE pmgr_receipts SET `comment` = '$row->{'Memo'}'" .
|
||||||
|
" WHERE `id` = $rid";
|
||||||
|
query($db_handle, $query) || die("Unable to update");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
__END__
|
__END__
|
||||||
|
|||||||
Reference in New Issue
Block a user