From 0efaacee75b966aa01e8a4e0358b5753a9e52a22 Mon Sep 17 00:00:00 2001 From: Bernd Blessmann Date: Fri, 5 Mar 2010 12:39:05 +0100 Subject: [PATCH] Warenimport: Verwende shop-Flag von der Import-Datei, falls das Feld vorhanden ist, ansonsten verwende Einstellung aus der Maske. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fix für Bug 1342. --- lxo-import/partsB.php | 2 +- lxo-import/parts_import.php | 11 ++++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/lxo-import/partsB.php b/lxo-import/partsB.php index a1d206cc5..49341c0a1 100644 --- a/lxo-import/partsB.php +++ b/lxo-import/partsB.php @@ -130,7 +130,7 @@ if ($_POST["ok"]) { Testja Textupdateja Warengruppen
verbinder -Shopartikelja nein +Shopartikel,
falls Feld leerja nein ArtWare   Dienstleistung gemischt (Spalte 'art' vorhanden) diff --git a/lxo-import/parts_import.php b/lxo-import/parts_import.php index 5a02ee4f8..83370167e 100644 --- a/lxo-import/parts_import.php +++ b/lxo-import/parts_import.php @@ -30,6 +30,7 @@ function insertParts($db,$insert,$show,$data) { show($data["buchungsgruppen_id"]);show($data["income_accno"]); show($data["expense_accno"]); show($data["inventory_accno"]); show($data["microfiche"]); show($data["drawing"]); show($data["rop"]); show($data["assembly"]); show($data["makemodel"]); + show($data["shop"]); } /*foreach ($data as $key=>$val) { echo $key.":".gettype($val).":".gettype($data[$key]).":".$val."
"; @@ -221,7 +222,7 @@ function import_parts($db, $file, $trenner, $trennzeichen, $fields, $check, $ins show("weight"); show("image"); show("partsgroup_id"); show("bg"); show("income_accno"); show("expense_accno"); show("inventory_accno"); show("microfiche");show("drawing");show("rop"); - show("assembly");show("makemodel"); show(""); + show("assembly");show("makemodel");show("shop"); show(""); show("\n",false); } @@ -382,6 +383,14 @@ function import_parts($db, $file, $trenner, $trennzeichen, $fields, $check, $ins if ($zeile[$fldpos["rop"]]) $rop = 1 * str_replace(",", ".",$zeile[$fldpos["rop"]]); if ($zeile[$fldpos["weight"]]) $weight = 1 * str_replace(",", ".", $zeile[$fldpos["weight"]]); + // Shop-Artikel + if ($zeile[$fldpos["shop"]]) { + $shop = ($zeile[$fldpos["shop"]] > 0)?'t':'f'; + } else { + $shop = $maske["shop"]; + } + + // Artikel updaten if (getPartsid($db,trim($zeile[$fldpos["partnumber"]]))) { /* es gibt die Artikelnummer */ if ($Update) { -- 2.20.1