X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=peppershop%2Ferplib.php;h=edbe7546576d5e9f9a686e2a13618f86bae6739c;hb=36dcbd724cb061f35c22d5a31c1a47aba30f348c;hp=28902e9853a4c63dacf3d0b6b6e52057e685374b;hpb=2b44867fc2d4e3c061c126890cc90fcaa84b6baa;p=kivitendo-erp.git diff --git a/peppershop/erplib.php b/peppershop/erplib.php index 28902e985..edbe75465 100644 --- a/peppershop/erplib.php +++ b/peppershop/erplib.php @@ -171,7 +171,7 @@ class erp { $this->db->rollback(); return false; } else { - $this->err->out(" Auftrag: ".$data["ordnumber"]." "); + $this->error->out(" Auftrag: ".$data["ordnumber"]." "); return $rs['id']; } } @@ -224,7 +224,7 @@ class erp { return true; } function insCustomer($data) { - $this->err->out('Insert:'.$data["name"].' '); + $this->error->out('Insert:'.$data["name"].' '); if ($this->docustnr == 1) { $data['customernumber'] = $this->getNewNr('customer'); } else { @@ -239,7 +239,7 @@ class erp { $sql = "SELECT id FROM customer WHERE customernumber = '".$data['customernumber']."'"; $rs = $this->db->getOne($sql); $rc = $rs['id']; - $this->err->out("Kd-Nr: ".$data['customernumber'].":".$rs['id']); + $this->error->out("Kd-Nr: ".$data['customernumber'].":".$rs['id']); } else { $this->error->write('erplib','Kunde anlegen: '.$data["name"]); $this->db->rollback(); @@ -252,7 +252,7 @@ class erp { $sql = "SELECT * FROM customer WHERE id = ".$data['customer_id']; $rs = $this->db->getOne($sql); if ($rs['id'] == $data['customer_id']) { - $this->err->out('Update:'.$data['customer_id'].' '); + $this->error->out('Update:'.$data['customer_id'].' '); $sql = "UPDATE customer SET greeting = :greeting,name = :name,street = :street,city = :city,country = :country,"; $sql .= "zipcode = :zipcode,contact = :contact,phone = :phone,email = :email WHERE id = :customer_id"; $rc = $this->db->update($sql,$data); @@ -295,7 +295,7 @@ class erp { $this->error->write('erplib','Auftrag anlegen'); return -1; } - $this->err->out($data["customer"]["firma"]." "); + $this->error->out($data["customer"]["firma"]." "); $rc = $this->db->Commit(); return $data["customer_id"]; } @@ -351,7 +351,7 @@ class erp { } else { return $rs['id']; } - } else if ($this->mkPart and $new) { + } else if ($new and $this->mkPart) { $data['id'] = $this->mkNewPart($data); if ($long) { return $data; @@ -409,7 +409,7 @@ class erp { $sql .= ":image,:buchungsgruppen_id,1,1,1)"; $rc = $this->db->insert($sql,$data); $x = $this->chkPartnumber($data,False); - $this->err->out('Neuer Artikel: '.$data['partnumber'],true); + $this->error->out('Neuer Artikel: '.$data['partnumber'],true); $this->error->write('erplib','Artikel neu: '.$data['partnumber']); return $x; }