From d109d6fe416ac863a35c8b932b593a244a38fbf1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20B=C3=BCren?= Date: Thu, 28 Aug 2014 14:14:32 +0200 Subject: [PATCH] =?utf8?q?=C3=9Cberpr=C3=BCfung=20auf=20makemodel=20bei=20?= =?utf8?q?mehreren=20Artikeln=20verbessert=20Aktuell=20wird=20nur=20auf=20?= =?utf8?q?Werte=20beim=20ersten=20Eintrag=20bei=20makemodel=20=C3=BCberpr?= =?utf8?q?=C3=BCft.=20Falls=20es=20mehrere=20Werte=20und=20man=20den=20ers?= =?utf8?q?ten=20Eintrag=20l=C3=B6schen=20will=20greift=20die=20=C3=9Cberpr?= =?utf8?q?=C3=BCfung=20nicht=20mehr.=20Entsprechend=20die=20Pr=C3=BCfung?= =?utf8?q?=20erweitert.=20Das=20behebt=20#7=20Lieferanten-EK-Preise=20/=20?= =?utf8?q?Lieferantenartikelnummern=20verschwinden.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/IC.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/SL/IC.pm b/SL/IC.pm index 810e226fa..f6ceaceb1 100644 --- a/SL/IC.pm +++ b/SL/IC.pm @@ -243,7 +243,7 @@ sub save { map { $form->{$_} = $form->parse_amount($myconfig, $form->{$_}) } qw(rop weight listprice sellprice gv lastcost); - my $makemodel = (($form->{make_1}) || ($form->{model_1})) ? 1 : 0; + my $makemodel = ($form->{make_1} || $form->{model_1} || ($form->{makemodel_rows} > 1)) ? 1 : 0; $form->{assembly} = ($form->{item} eq 'assembly') ? 1 : 0; @@ -1552,9 +1552,9 @@ sub retrieve_accounts { LEFT JOIN chart c1 ON bg.inventory_accno_id = c1.id LEFT JOIN chart c2 ON tc.income_accno_id = c2.id LEFT JOIN chart c3 ON tc.expense_accno_id = c3.id - WHERE - tc.taxzone_id = '$form->{taxzone_id}' - and + WHERE + tc.taxzone_id = '$form->{taxzone_id}' + and p.id IN ($in) SQL -- 2.20.1