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

SF.net SVN: ledger-smb: [752] trunk/bin/io.pl



Revision: 752
          http://svn.sourceforge.net/ledger-smb/?rev=752&view=rev
Author:   tetragon
Date:     2007-01-11 16:52:57 -0800 (Thu, 11 Jan 2007)

Log Message:
-----------
Fix for 1633654.  Only use the item's sellprice if not entered by the user.

Modified Paths:
--------------
    trunk/bin/io.pl

Modified: trunk/bin/io.pl
===================================================================
--- trunk/bin/io.pl	2007-01-04 02:57:24 UTC (rev 751)
+++ trunk/bin/io.pl	2007-01-12 00:52:57 UTC (rev 752)
@@ -473,9 +473,10 @@
       $form->{"discount_$i"} = $form->{discount} * 100;
       $form->{"reqdate_$i"} = $form->{reqdate} if $form->{type} !~ /_quotation/;
 
-      for (qw(id partnumber sku description sellprice listprice lastcost bin unit weight assembly taxaccounts pricematrix onhand notes inventory_accno_id income_accno_id expense_accno_id)) {
+      for (qw(id partnumber sku description listprice lastcost bin unit weight assembly taxaccounts pricematrix onhand notes inventory_accno_id income_accno_id expense_accno_id)) {
 	$form->{"${_}_$i"} = $form->{"new_${_}_$j"};
       }
+      $form->{"sellprice_$i"} = $form->{"new_sellprice_$j"} unless $form->{"sellprice_$i"};
 
       $form->{"partsgroup_$i"} = qq|$form->{"new_partsgroup_$j"}--$form->{"new_partsgroup_id_$j"}|;
 


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