diff options
author | tetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-01-12 00:55:34 +0000 |
---|---|---|
committer | tetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-01-12 00:55:34 +0000 |
commit | a5906ea00d3742432f832e0533f595e6b006f989 (patch) | |
tree | 7c5772e49b3ba412226dd66b09070abcac3a7ed5 /bin | |
parent | 1747261ad5f9827e5fe91e728698056d9d7d51fe (diff) |
Fix for 1633654. Only use the item's sellprice if not entered by the user.
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/branches/1.2@753 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/io.pl | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -473,9 +473,10 @@ sub item_selected { $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"} if not $form->{"sellprice_$i"}; $form->{"partsgroup_$i"} = qq|$form->{"new_partsgroup_$j"}--$form->{"new_partsgroup_id_$j"}|; |