From e8a7acd2b4084115ec4a1f17fe5a887453c7ccc0 Mon Sep 17 00:00:00 2001 From: Paminger Date: Thu, 16 Apr 2015 10:33:33 +0200 Subject: [PATCH] Extensions for AddOn Odoo --- include/appdaten.class.php | 1 + include/person.class.php | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/include/appdaten.class.php b/include/appdaten.class.php index e025866bd..e7fc4a19e 100644 --- a/include/appdaten.class.php +++ b/include/appdaten.class.php @@ -171,6 +171,7 @@ class appdaten extends basis_db else { $this->new = true; + return 0; } } else diff --git a/include/person.class.php b/include/person.class.php index dacf3bf4a..5ff6ebc37 100644 --- a/include/person.class.php +++ b/include/person.class.php @@ -28,7 +28,7 @@ require_once(dirname(__FILE__).'/datum.class.php'); class person extends basis_db { public $errormsg; // string - public $new; // boolean + public $new=true; // boolean public $personen = array(); // person Objekt public $done=false; // boolean @@ -51,12 +51,12 @@ class person extends basis_db public $ersatzkennzeichen; // char(10) public $familienstand; // char(1) public $anzahlkinder; // smalint - public $aktiv; // boolean + public $aktiv=true; // boolean public $insertamum; // timestamp public $insertvon; // varchar(16) public $updateamum; // timestamp public $updatevon; // varchar(16) - public $geschlecht; // varchar(1) + public $geschlecht='u'; // varchar(1) - Default: undefined public $staatsbuergerschaft;// varchar(3) public $geburtsnation; // varchar(3); public $ext_id; // bigint @@ -137,7 +137,7 @@ class person extends basis_db $this->errormsg = "Es ist kein Personendatensatz mit dieser ID vorhanden"; return false; } - + $this->new=false; return true; } else