Revision 0efaacee
Von Bernd Blessmann vor mehr als 14 Jahren hinzugefügt
lxo-import/partsB.php | ||
---|---|---|
130 | 130 |
<tr><td>Test</td><td><input type="checkbox" name="test" value="1">ja</td></tr> |
131 | 131 |
<tr><td>Textupdate</td><td><input type="checkbox" name="TextUpd" value="1">ja</td></tr> |
132 | 132 |
<tr><td>Warengruppen<br>verbinder</td><td><input type="text" name="wgtrenner" value="!" size="3"></td></tr> |
133 |
<tr><td>Shopartikel</td><td><input type="radio" name="shop" value="t">ja <input type="radio" name="shop" value="f" checked>nein</td></tr> |
|
133 |
<tr><td>Shopartikel,<br>falls Feld leer</td><td><input type="radio" name="shop" value="t">ja <input type="radio" name="shop" value="f" checked>nein</td></tr>
|
|
134 | 134 |
<tr><td>Art</td><td><input type="Radio" name="ware" value="W" checked>Ware |
135 | 135 |
<input type="Radio" name="ware" value="D">Dienstleistung |
136 | 136 |
<input type="Radio" name="ware" value="G">gemischt (Spalte 'art' vorhanden)</td></tr> |
lxo-import/parts_import.php | ||
---|---|---|
30 | 30 |
show($data["buchungsgruppen_id"]);show($data["income_accno"]); show($data["expense_accno"]); |
31 | 31 |
show($data["inventory_accno"]); show($data["microfiche"]); show($data["drawing"]); |
32 | 32 |
show($data["rop"]); show($data["assembly"]); show($data["makemodel"]); |
33 |
show($data["shop"]); |
|
33 | 34 |
} |
34 | 35 |
/*foreach ($data as $key=>$val) { |
35 | 36 |
echo $key.":".gettype($val).":".gettype($data[$key]).":".$val."<br>"; |
... | ... | |
221 | 222 |
show("weight"); show("image"); show("partsgroup_id"); |
222 | 223 |
show("bg"); show("income_accno"); show("expense_accno"); |
223 | 224 |
show("inventory_accno"); show("microfiche");show("drawing");show("rop"); |
224 |
show("assembly");show("makemodel"); show(""); |
|
225 |
show("assembly");show("makemodel");show("shop"); show("");
|
|
225 | 226 |
show("</tr>\n",false); |
226 | 227 |
} |
227 | 228 |
|
... | ... | |
382 | 383 |
if ($zeile[$fldpos["rop"]]) $rop = 1 * str_replace(",", ".",$zeile[$fldpos["rop"]]); |
383 | 384 |
if ($zeile[$fldpos["weight"]]) $weight = 1 * str_replace(",", ".", $zeile[$fldpos["weight"]]); |
384 | 385 |
|
386 |
// Shop-Artikel |
|
387 |
if ($zeile[$fldpos["shop"]]) { |
|
388 |
$shop = ($zeile[$fldpos["shop"]] > 0)?'t':'f'; |
|
389 |
} else { |
|
390 |
$shop = $maske["shop"]; |
|
391 |
} |
|
392 |
|
|
393 |
// Artikel updaten |
|
385 | 394 |
if (getPartsid($db,trim($zeile[$fldpos["partnumber"]]))) { |
386 | 395 |
/* es gibt die Artikelnummer */ |
387 | 396 |
if ($Update) { |
Auch abrufbar als: Unified diff
Warenimport: Verwende shop-Flag von der Import-Datei, falls
das Feld vorhanden ist, ansonsten verwende Einstellung aus
der Maske.