From 0cb4a89156d5fe3a8be26aa4fd8c9c6752b42405 Mon Sep 17 00:00:00 2001 From: Frank Schubert Date: Tue, 19 Nov 2024 18:43:40 +0100 Subject: [PATCH 1/3] carrying over create+edit dates from Order when committing Contractqueue --- application/Contract/Contract.php | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/application/Contract/Contract.php b/application/Contract/Contract.php index f217fc7fa..ce37f5c08 100644 --- a/application/Contract/Contract.php +++ b/application/Contract/Contract.php @@ -350,7 +350,9 @@ class Contract extends mfBaseModel { "name" => $file->name, "description" => $file->description, "create_by" => $file->create_by, - "edit_by" => $file->edit_by + "edit_by" => $file->edit_by, + "create" => $file->create, + "edit" => $file->edit ]); $cfile->save(); @@ -358,7 +360,11 @@ class Contract extends mfBaseModel { "contract_id" => $this->id, "type" => "file", "value" => $cfile->id, - "text" => (array_key_exists($cfile->name, TT_ORDER_FILE_TYPES)) ? TT_ORDER_FILE_TYPES[$cfile->name] : $cfile->name + "text" => (array_key_exists($cfile->name, TT_ORDER_FILE_TYPES)) ? TT_ORDER_FILE_TYPES[$cfile->name] : $cfile->name, + "create_by" => $file->create_by, + "edit_by" => $file->edit_by, + "create" => $file->create, + "edit" => $file->edit ]); $journal->save(); } @@ -378,7 +384,11 @@ class Contract extends mfBaseModel { 'contract_id' => $this->id, 'type' => "text", 'value' => "", - 'text' => $order_journal->text + 'text' => $order_journal->text, + 'create_by' => $order_journal->create_by, + 'edit_by' => $order_journal->edit_by, + 'create' => $order_journal->create, + 'edit' => $order_journal->edit ]); $journal->save(); } From e7f07e1486a5a685a0cdd8a0f33fc190e73954c9 Mon Sep 17 00:00:00 2001 From: Frank Schubert Date: Tue, 19 Nov 2024 19:02:23 +0100 Subject: [PATCH 2/3] Added ORDER BY in ContractjournalModel::search() --- application/Contractjournal/ContractjournalModel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/Contractjournal/ContractjournalModel.php b/application/Contractjournal/ContractjournalModel.php index 33007cd43..39f4ea47c 100644 --- a/application/Contractjournal/ContractjournalModel.php +++ b/application/Contractjournal/ContractjournalModel.php @@ -79,7 +79,7 @@ class ContractjournalModel { $res = $db->query($sql); */ - $res = $db->select("Contractjournal", "*", $where); + $res = $db->select("Contractjournal", "*", "$where ORDER BY contract_id,`create`"); if($db->num_rows($res)) { while($data = $db->fetch_object($res)) { $items[] = new Contractjournal($data); From 492cc784e7d8863d7dd315cea3dcb69522cdac3c Mon Sep 17 00:00:00 2001 From: Frank Schubert Date: Wed, 20 Nov 2024 14:10:03 +0100 Subject: [PATCH 3/3] Preorder/Index: Borderpoint now visible for all users --- Layout/default/Preorder/include/preorder-detail.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Layout/default/Preorder/include/preorder-detail.php b/Layout/default/Preorder/include/preorder-detail.php index bd0f6b917..e90a7591b 100644 --- a/Layout/default/Preorder/include/preorder-detail.php +++ b/Layout/default/Preorder/include/preorder-detail.php @@ -9,7 +9,7 @@ - is("Admin") && $preorder->adb_hausnummer->borderpoint_lat && $preorder->adb_hausnummer->borderpoint_long): ?> + adb_hausnummer->borderpoint_lat && $preorder->adb_hausnummer->borderpoint_long): ?> @@ -596,8 +596,7 @@ - is("Admin")): ?> -
-