summaryrefslogtreecommitdiff
path: root/bin/pos.pl
diff options
context:
space:
mode:
authoreinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-03-30 21:54:02 +0000
committereinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-03-30 21:54:02 +0000
commit007780f7a885664171371e138296efc40311a770 (patch)
tree69ba50901a06d91d97d83b5d85540fd59f496cd4 /bin/pos.pl
parent286bf08d34745c5afb95add35c102dc966a36fc8 (diff)
Fixing POS open transaction report, and catching error if FXRate is not entered
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/branches/1.2@1018 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'bin/pos.pl')
-rwxr-xr-xbin/pos.pl8
1 files changed, 6 insertions, 2 deletions
diff --git a/bin/pos.pl b/bin/pos.pl
index 9d98304e..f6419458 100755
--- a/bin/pos.pl
+++ b/bin/pos.pl
@@ -123,20 +123,24 @@ sub add {
sub openinvoices {
undef %column_data;
undef %column_heading;
+ $form->{customer} = "";
+ $form->{customer_id} = 0;
+ delete $form->{l_subtotal};
+ delete $form->{subtotal};
$ENV{REMOTE_ADDR} =~ /(\d+)\.(\d+)\.(\d+)\.(\d+)/;
$form->{till} = $4;
$form->{sort} = 'transdate';
- for (qw(open l_invnumber l_transdate l_name l_amount l_curr l_till l_subtotal)) { $form->{$_} = 'Y'; }
+ for (qw(open l_invnumber l_transdate l_name l_amount l_curr l_till)) { $form->{$_} = 'Y'; }
if ($myconfig{role} ne 'user') {
$form->{l_employee} = 'Y';
}
$form->{title} = $locale->text('Open');
- transactions;
+ &transactions;
}