From c47100f5cfbb8ffc6f1f8b8fe6d6dff914b1e24a Mon Sep 17 00:00:00 2001 From: "G. Richardson" Date: Tue, 20 Jan 2015 16:24:29 +0100 Subject: [PATCH] Preisgruppenpreis = Verkaufspreis erlauben MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit War eine Uraltregel, sollte mit dem neuen Pricesource weder nötig, noch erwünscht sein. Siehe Ticket 24. --- SL/IC.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/SL/IC.pm b/SL/IC.pm index 751a1473b..27af46a50 100644 --- a/SL/IC.pm +++ b/SL/IC.pm @@ -419,10 +419,9 @@ sub save { $query = qq|INSERT INTO prices (parts_id, pricegroup_id, price) VALUES(?, ?, ?)|; $sth = prepare_query($form, $dbh, $query); - # insert price records only if different to sellprice for my $i (1 .. $form->{price_rows}) { my $price = $form->parse_amount($myconfig, $form->{"price_$i"}); - next unless $price && ($price != $form->{sellprice}); + next unless $price; @values = (conv_i($form->{id}), conv_i($form->{"pricegroup_id_$i"}), $price); do_statement($form, $sth, $query, @values); -- 2.20.1