ConstructionConsent Changes

This commit is contained in:
Frank Schubert
2025-02-13 14:35:57 +01:00
parent 21ae4fe212
commit ea9e91e6ab
9 changed files with 313 additions and 159 deletions

View File

@@ -90,8 +90,8 @@ class ConstructionConsentOwner extends mfBaseModel {
$model = new ConstructionConsentOwner();
$table_fields = [
"constructionconsent_id", "name", "street", "zip", "city", "country", "phone",
"fax", "email", "status", "result", "create_by","edit_by","create","edit"
"constructionconsent_id", "title", "firstname", "lastname", "street", "zip", "city", "country",
"phone", "phone2", "fax", "email", "status", "result", "create_by","edit_by","create","edit"
];
foreach($data as $field => $value) {
@@ -118,7 +118,7 @@ class ConstructionConsentOwner extends mfBaseModel {
$db = FronkDB::singleton();
$res = $db->select("ConstructionConsentOwner", "*", "1 = 1 ORDER BY name");
$res = $db->select("ConstructionConsentOwner", "*", "1 = 1 ORDER BY lastname,firstname");
if($db->num_rows($res)) {
while($data = $db->fetch_object($res)) {
$items[] = new ConstructionConsentOwner($data);
@@ -134,7 +134,7 @@ class ConstructionConsentOwner extends mfBaseModel {
$where = self::getSqlFilter($filter);
$sql = "SELECT * FROM ConstructionConsentOwner
WHERE $where
ORDER BY name LIMIT 1";
ORDER BY lastname,firstname LIMIT 1";
//var_dump($sql);exit;
$res = $db->query($sql);
if($db->num_rows($res)) {
@@ -171,7 +171,7 @@ class ConstructionConsentOwner extends mfBaseModel {
$items = [];
if(!$order) {
$order = "name ASC";
$order = "lastname,firstname ASC";
}
$db = FronkDB::singleton();