diff options
author | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2008-06-04 21:22:42 +0000 |
---|---|---|
committer | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2008-06-04 21:22:42 +0000 |
commit | f650d1c819842ecdd1cb92fdf4c4490f718b9eaf (patch) | |
tree | 13c6d20becafde01970ed4320b3080cfd97213cd | |
parent | ec9b1c6f3c3e6f0eaf1f4f787a219c0db9a6406c (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-x | bin/pos.pl | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; } |