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

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



Revision: 1828
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=1828&view=rev
Author:   einhverfr
Date:     2007-10-30 22:29:32 -0700 (Tue, 30 Oct 2007)

Log Message:
-----------
1)  Fixing bug which hides discount input in POS screen.
2)  Fixing bug:  Obsolete items show on short parts report

Modified Paths:
--------------
    branches/1.2/LedgerSMB/IC.pm
    branches/1.2/bin/pos.pl

Modified: branches/1.2/LedgerSMB/IC.pm
===================================================================
--- branches/1.2/LedgerSMB/IC.pm	2007-10-30 21:16:19 UTC (rev 1827)
+++ branches/1.2/LedgerSMB/IC.pm	2007-10-31 05:29:32 UTC (rev 1828)
@@ -1003,16 +1003,19 @@
 			                        ON (p.id = j.parts_id))|;
     }
 
-    if ( $form->{itemstatus} eq 'active' ) {
-        $where .= " AND p.obsolete = '0'";
-    }
     if ( $form->{itemstatus} eq 'obsolete' ) {
         $where .= " AND p.obsolete = '1'";
     }
+    else { 
+        # Obsolete items should not show up on onhand, short, or active 
+        # reports --CT
+        $where .= " AND p.obsolete = '0'";
+    }
+
     if ( $form->{itemstatus} eq 'onhand' ) {
         $where .= " AND p.onhand > 0";
     }
-    if ( $form->{itemstatus} eq 'short' ) {
+    elsif ( $form->{itemstatus} eq 'short' ) {
         $where .= " AND p.onhand < p.rop";
     }
 

Modified: branches/1.2/bin/pos.pl
===================================================================
--- branches/1.2/bin/pos.pl	2007-10-30 21:16:19 UTC (rev 1827)
+++ branches/1.2/bin/pos.pl	2007-10-31 05:29:32 UTC (rev 1828)
@@ -808,15 +808,10 @@
             }
         }
 
-        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(


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