From 2479af974477a3b41c34788f8cbf6c054eb066c7 Mon Sep 17 00:00:00 2001 From: einhverfr Date: Tue, 5 Dec 2006 22:05:46 +0000 Subject: Fixed invoices not showing up on cash screens. git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/branches/1.2@723 4979c152-3d1c-0410-bac9-87ea11338e46 --- LedgerSMB/CP.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'LedgerSMB/CP.pm') diff --git a/LedgerSMB/CP.pm b/LedgerSMB/CP.pm index edb474ed..150e226d 100755 --- a/LedgerSMB/CP.pm +++ b/LedgerSMB/CP.pm @@ -215,7 +215,7 @@ sub get_openinvoices { my $where = qq|WHERE a.$form->{vc}_id = $vc_id AND a.amount != a.paid|; - $curr = $dbh->quote($form->{curr}); + $curr = $dbh->quote($form->{currency}); $where .= qq| AND a.curr = $curr| if $form->{currency}; my $sortorder = "transdate, invnumber"; -- cgit v1.2.3