Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 496f2f9f

Von Holger Lindemann vor mehr als 12 Jahren hinzugefügt

Fehler im Namensraum err -> error

Unterschiede anzeigen:

peppershop/erplib.php
171 171
            $this->db->rollback();
172 172
            return false;
173 173
        } else {
174
            $this->err->out(" Auftrag: ".$data["ordnumber"]." ");
174
            $this->error->out(" Auftrag: ".$data["ordnumber"]." ");
175 175
            return $rs['id'];
176 176
        }
177 177
    }
......
224 224
        return true;
225 225
    }
226 226
    function insCustomer($data) {
227
        $this->err->out('Insert:'.$data["name"].' ');
227
        $this->error->out('Insert:'.$data["name"].' ');
228 228
        if ($this->docustnr == 1) {
229 229
            $data['customernumber'] = $this->getNewNr('customer');
230 230
        } else {
......
239 239
                $sql = "SELECT id FROM customer WHERE customernumber = '".$data['customernumber']."'";
240 240
                $rs = $this->db->getOne($sql);
241 241
                $rc = $rs['id'];
242
                $this->err->out("Kd-Nr: ".$data['customernumber'].":".$rs['id']);
242
                $this->error->out("Kd-Nr: ".$data['customernumber'].":".$rs['id']);
243 243
            } else {
244 244
                $this->error->write('erplib','Kunde anlegen: '.$data["name"]);
245 245
                $this->db->rollback();
......
252 252
            $sql = "SELECT * FROM customer WHERE id = ".$data['customer_id'];
253 253
            $rs = $this->db->getOne($sql);
254 254
            if ($rs['id'] == $data['customer_id']) {
255
                 $this->err->out('Update:'.$data['customer_id'].' ');
255
                 $this->error->out('Update:'.$data['customer_id'].' ');
256 256
                 $sql  = "UPDATE customer SET greeting = :greeting,name = :name,street = :street,city = :city,country = :country,";
257 257
                 $sql .= "zipcode = :zipcode,contact = :contact,phone = :phone,email = :email WHERE id = :customer_id";
258 258
                 $rc =  $this->db->update($sql,$data);
......
295 295
            $this->error->write('erplib','Auftrag anlegen');
296 296
            return -1;
297 297
        }
298
        $this->err->out($data["customer"]["firma"]." ");
298
        $this->error->out($data["customer"]["firma"]." ");
299 299
        $rc = $this->db->Commit();
300 300
        return $data["customer_id"];
301 301
    }
......
351 351
           } else {
352 352
               return $rs['id'];
353 353
           }
354
       } else if ($this->mkPart and $new) {
354
       } else if ($new and $this->mkPart) {
355 355
           $data['id'] = $this->mkNewPart($data);
356 356
           if ($long) {
357 357
               return $data;
......
409 409
       $sql .= ":image,:buchungsgruppen_id,1,1,1)";
410 410
       $rc = $this->db->insert($sql,$data);
411 411
       $x =  $this->chkPartnumber($data,False);
412
       $this->err->out('Neuer Artikel: '.$data['partnumber'],true);
412
       $this->error->out('Neuer Artikel: '.$data['partnumber'],true);
413 413
       $this->error->write('erplib','Artikel neu: '.$data['partnumber']);
414 414
       return $x;
415 415
    }

Auch abrufbar als: Unified diff