summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2008-06-04 21:22:42 +0000
committereinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2008-06-04 21:22:42 +0000
commitf650d1c819842ecdd1cb92fdf4c4490f718b9eaf (patch)
tree13c6d20becafde01970ed4320b3080cfd97213cd
parentec9b1c6f3c3e6f0eaf1f4f787a219c0db9a6406c (diff)
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
-rwxr-xr-xbin/pos.pl3
1 files changed, 3 insertions, 0 deletions
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;
}