+
+ if ($Update) {
+ $sellprice=$zeile[$posprice];
+ $partnumber=$zeile[$posnumber];
+ $sellprice = str_replace(",", ".", $sellprice);
+ if ($quotation<>0) {
+ if ($quottype=="A") { $sellprice += $quotation; }
+ else { $sellprice = $sellprice * $quotation; }
+ };
+ if ($precision>=0) $sellprice = round($sellprice,$precision);
+ if ($UpdText) {
+ $description=$zeile[$posdescript];
+ $note=$zeile[$posnotes];
+ $note1=$zeile[$posnotes1];
+ $note=mb_convert_encoding($note,"ISO-8859-15","ISO-8859-15");
+ $note=preg_replace('/""[^ ]/','"',$note);
+ $note=" \n".addslashes($note);
+ $note1=mb_convert_encoding($note1,"ISO-8859-15","ISO-8859-15");
+ $note1=preg_replace('/""[^ ]/','"',$note1);
+ $note.=" \n".addslashes($note1);
+ $rc=chkPartNumberUpd($db,$sellprice,$partnumber,$description,$note,$check);
+ } else {
+ $rc=chkPartNumberUpd($db,$sellprice,$partnumber,false,false,$check);
+ }
+ if ($rc==-1) {
+ show($show,"<tr><td>Update </td><td>$partnumber:$sellprice</td></tr>\n");
+ continue;
+ } else if ($rc==-99) {
+ show($show,"<tr><td>Fehler Zeile $m</td></tr>\n");
+ continue;
+ } else {
+ $zeile[$posnumber]=$rc;
+ }
+ };