diff options
author | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-10-31 05:30:57 +0000 |
---|---|---|
committer | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-10-31 05:30:57 +0000 |
commit | 50976eed0c12a2cb45944d0818b63a7c65885afb (patch) | |
tree | cfaf09c5d4039fc6bd95131c6d894bf42a8c421f /bin | |
parent | aa4852be2023c2bd6cabbaadfadf93789e5d812a (diff) |
1) Fixing bug which hides discount input in POS screen.
2) Fixing bug: Obsolete items show on short parts report
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1829 4979c152-3d1c-0410-bac9-87ea11338e46
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( |