From f650d1c819842ecdd1cb92fdf4c4490f718b9eaf Mon Sep 17 00:00:00 2001 From: einhverfr Date: Wed, 4 Jun 2008 21:22:42 +0000 Subject: Correcting erroneooneous discount display in POS invoice. git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/branches/1.2@2157 4979c152-3d1c-0410-bac9-87ea11338e46 --- bin/pos.pl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/pos.pl b/bin/pos.pl index c584e547..936882f5 100755 --- a/bin/pos.pl +++ b/bin/pos.pl @@ -936,6 +936,7 @@ sub print { sub print_form { my $old_form = shift; + my $discount = $old_form->{discount}; # if oldcustomer ne customer redo form $customer = $form->{customer}; @@ -965,6 +966,8 @@ sub print_form { IS->invoice_details( \%myconfig, \%$form ); + $form->{discount} = $discount; + if ( $form->parse_amount( \%myconfig, $form->{total} ) <= 0 ) { $form->{total} = 0; } -- cgit v1.2.3