summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}