diff options
Diffstat (limited to 'bin')
-rw-r--r-- | bin/pos.pl | 11 |
1 files changed, 4 insertions, 7 deletions
@@ -177,7 +177,9 @@ sub openinvoices { sub edit { $form->{title} = $locale->text('Edit POS Invoice'); - + if (!$form->{nextsub}){ + $form->{nextsub} = 'add'; + } $form->{callback} = "$form->{script}?action=$form->{nextsub}&path=$form->{path}&login=$form->{login}&sessionid=$form->{sessionid}"; @@ -817,15 +819,10 @@ sub display_row { } } - if ( $i < $numrows ) { - $column_data{discount} = + $column_data{discount} = qq|<td align=right><input name="discount_$i" size=3 value=| . $form->format_amount( \%myconfig, $form->{"discount_$i"} ) . qq|></td>|; - } - else { - $column_data{discount} = qq|<td></td>|; - } $discount = $form->round_amount( |