summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46>2007-01-12 00:52:57 +0000
committertetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46>2007-01-12 00:52:57 +0000
commit02bc02777fd0e116bb92849c89f9852275238848 (patch)
tree5e8884fc80a6b8f2c2587812c31420008f149639
parente07750919cbc0f2420387db5354f998fd9473646 (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/trunk@752 4979c152-3d1c-0410-bac9-87ea11338e46
-rwxr-xr-xbin/io.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/io.pl b/bin/io.pl
index 67db96ac..f644dfa2 100755
--- a/bin/io.pl
+++ b/bin/io.pl
@@ -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"} unless $form->{"sellprice_$i"};
$form->{"partsgroup_$i"} = qq|$form->{"new_partsgroup_$j"}--$form->{"new_partsgroup_id_$j"}|;