summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-11-02 17:34:23 +0000
committereinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-11-02 17:34:23 +0000
commit43a76e20de8c8196e3a9bd053bdd99aa36b24488 (patch)
tree49f2a324ace98e7ea4e92820983fa97755ea483b
parent9abe034a2012fcd6c69c468c7c6b65d88e01e0fe (diff)
Corrected POS bug-- when print and post triggers update, it also opens the drawer.
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/branches/1.2@1840 4979c152-3d1c-0410-bac9-87ea11338e46
-rwxr-xr-xbin/pos.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/pos.pl b/bin/pos.pl
index 66e6e93f..690dc741 100755
--- a/bin/pos.pl
+++ b/bin/pos.pl
@@ -893,8 +893,6 @@ qq|<td><input name="description_$i" size=48 value="$form->{"description_$i"}"></
sub print {
- open_drawer();
- sleep 1;
if ( !$form->{invnumber} ) {
$form->{invnumber} = $form->update_defaults( \%myconfig, 'sinumber' );
}
@@ -907,6 +905,8 @@ sub print {
&update;
exit;
}
+ open_drawer();
+ sleep 1;
for $i ( 1 .. $rc - 1 ) {
if ( $form->{"qty_$i"} != $form->{"oldqty_$i"} ) {
&update;