Changed 'payment' to 'tender', since the payment term has been heavily overloaded. Tender represents legal tender, and replaces what used to be monetary source. I'm not terribly fond of the name, especially the plural form. However, for now at least, it can be distinct from other types of 'payment' and we can change it later if we come up with a better name. Also, added a name to ledger, since one was being manually created at runtime in several spots. This should allow us to consolidate the naming convention to a single spot.
git-svn-id: file:///svn-source/pmgr/branches/yafr_20090716@366 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
@@ -505,6 +505,7 @@ $result = query($db_handle, $query);
|
||||
foreach $row (@$result) {
|
||||
addRow('ledgers', {
|
||||
'account_id' => $row->{'id'},
|
||||
'name' => $row->{'id'} . '-1',
|
||||
'comment' => undef });
|
||||
|
||||
$newdb{'lookup'}{'account'}{$row->{'name'}}
|
||||
@@ -1161,7 +1162,7 @@ foreach $row (@{query($sdbh, $query)}) {
|
||||
= $newdb{'tables'}{'double_entries'}{'autoid'};
|
||||
|
||||
# Add the physical payment
|
||||
addRow('payments', {
|
||||
addRow('tenders', {
|
||||
'ledger_entry_id' => $newdb{'lookup'}{'receipt'}{$row->{'ReceiptNum'}}{$row->{'PaymentType'}}{'debit_entry_id'},
|
||||
'name' => $newdb{'lookup'}{'receipt'}{$row->{'ReceiptNum'}}{$row->{'PaymentType'}}{'name'},
|
||||
'type' => $newdb{'lookup'}{'receipt'}{$row->{'ReceiptNum'}}{$row->{'PaymentType'}}{'type'},
|
||||
@@ -1170,7 +1171,7 @@ foreach $row (@{query($sdbh, $query)}) {
|
||||
});
|
||||
|
||||
$newdb{'lookup'}{'receipt'}{$row->{'ReceiptNum'}}{$row->{'PaymentType'}}{'payment_id'}
|
||||
= $newdb{'tables'}{'payments'}{'autoid'};
|
||||
= $newdb{'tables'}{'tenders'}{'autoid'};
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user