[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb: [1009] branches/1.2/bin



Revision: 1009
          http://svn.sourceforge.net/ledger-smb/?rev=1009&view=rev
Author:   einhverfr
Date:     2007-03-24 23:27:10 -0700 (Sat, 24 Mar 2007)

Log Message:
-----------
Fixing partsgroup buttons in POS interface

Modified Paths:
--------------
    branches/1.2/bin/pos.pl
    branches/1.2/bin/ps.pl

Modified: branches/1.2/bin/pos.pl
===================================================================
--- branches/1.2/bin/pos.pl	2007-03-25 05:47:51 UTC (rev 1008)
+++ branches/1.2/bin/pos.pl	2007-03-25 06:27:10 UTC (rev 1009)
@@ -579,8 +579,6 @@
       
     for (sort { $button{$a}->{ndx} <=> $button{$b}->{ndx} } keys %button) { $form->print_button(\%button, $_) }
 
-    print qq|<p>
-    <input type=text size=1 value="B" accesskey="B" title="[Alt-B]">\n|;
   
     if ($form->{partsgroup}) {
       $form->{partsgroup} =~ s/\r//g;
@@ -916,8 +914,8 @@
   
 sub lookup_partsgroup {
 
-  $form->{action} =~ s/\r//;
-  $form->{action} = substr($form->{action}, 1);
+  $form->{my_partsgroup} =~ s/\r//;
+  $form->{action} = $form->{my_partsgroup};
 
   if ($form->{language_code}) {
     # get english

Modified: branches/1.2/bin/ps.pl
===================================================================
--- branches/1.2/bin/ps.pl	2007-03-25 05:47:51 UTC (rev 1008)
+++ branches/1.2/bin/ps.pl	2007-03-25 06:27:10 UTC (rev 1009)
@@ -60,5 +60,11 @@
   eval { require "bin/custom/$form->{login}_pos.pl"; };
 }
 
+# Necessary for Partsgroup lookups
+if ($form->{action} =~ s/^\s//){
+	$form->{my_partsgroup} = $form->{action};
+	$form->{action} = "lookup_partsgroup";
+}
+
 1;
 # end


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.