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

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



Revision: 2041
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=2041&view=rev
Author:   einhverfr
Date:     2008-01-11 22:23:30 -0800 (Fri, 11 Jan 2008)

Log Message:
-----------
Fixing 1812792, (discount box blank after part lookup in ir.pl) and similar bugs in is.pl and oe.pl

Modified Paths:
--------------
    branches/1.2/bin/ir.pl
    branches/1.2/bin/is.pl
    branches/1.2/bin/oe.pl

Modified: branches/1.2/bin/ir.pl
===================================================================
--- branches/1.2/bin/ir.pl	2008-01-12 06:05:26 UTC (rev 2040)
+++ branches/1.2/bin/ir.pl	2008-01-12 06:23:30 UTC (rev 2041)
@@ -798,7 +798,6 @@
     if ( $form->{import_text} ) {
         &import_text;
     }
-
     $form->{exchangerate} =
       $form->parse_amount( \%myconfig, $form->{exchangerate} );
 
@@ -932,9 +931,9 @@
                 for ( keys %{ $form->{item_list}[0] } ) {
                     $form->{"${_}_$i"} = $form->{item_list}[0]{$_};
                 }
-
-                $form->{"discount_$i"} = $form->{discount} * 100;
-
+                if (! defined $form->{"discount_$i"}){
+                    $form->{"discount_$i"} = $form->{discount} * 100;
+                }
                 if ($sellprice) {
                     $form->{"sellprice_$i"} = $sellprice;
 

Modified: branches/1.2/bin/is.pl
===================================================================
--- branches/1.2/bin/is.pl	2008-01-12 06:05:26 UTC (rev 2040)
+++ branches/1.2/bin/is.pl	2008-01-12 06:23:30 UTC (rev 2041)
@@ -951,9 +951,9 @@
                 for ( keys %{ $form->{item_list}[0] } ) {
                     $form->{"${_}_$i"} = $form->{item_list}[0]{$_};
                 }
-
-                $form->{"discount_$i"} = $form->{discount} * 100;
-
+                if (! defined $form->{"discount_$i"}){
+                    $form->{"discount_$i"} = $form->{discount} * 100;
+                }
                 if ($sellprice) {
                     $form->{"sellprice_$i"} = $sellprice;
 

Modified: branches/1.2/bin/oe.pl
===================================================================
--- branches/1.2/bin/oe.pl	2008-01-12 06:05:26 UTC (rev 2040)
+++ branches/1.2/bin/oe.pl	2008-01-12 06:23:30 UTC (rev 2041)
@@ -1048,9 +1048,9 @@
                 for ( keys %{ $form->{item_list}[0] } ) {
                     $form->{"${_}_$i"} = $form->{item_list}[0]{$_};
                 }
-
-                $form->{"discount_$i"} = $form->{discount} * 100;
-
+                if (! defined $form->{"discount_$i"}){
+                    $form->{"discount_$i"} = $form->{discount} * 100;
+                }
                 if ($sellprice) {
                     $form->{"sellprice_$i"} = $sellprice;
 


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