Merge branch 'fronkdev' into 'master'

added script to list missing document files

See merge request fronk/thetool!1552
This commit is contained in:
Frank Schubert
2025-07-16 15:37:58 +00:00
3 changed files with 51 additions and 5 deletions
@@ -64,7 +64,7 @@ class ContractFileModel {
}
public static function getFirst() {
public static function getFirst($filter = []) {
$db = FronkDB::singleton();
$where = self::getSqlFilter($filter);
@@ -81,7 +81,7 @@ class ContractFileModel {
return null;
}
public static function search($filter) {
public static function search($filter = []) {
$items = [];
$db = FronkDB::singleton();
+3 -3
View File
@@ -54,7 +54,7 @@ class OrderFileModel {
$db = FronkDB::singleton();
$res = $db->select("OrderFile", "*", "1=1 ORDER BY name, filename");
$res = $db->select("OrderFile", "*", "1=1 ORDER BY name");
if($db->num_rows($res)) {
while($data = $db->fetch_object($res)) {
$items[] = new OrderFile($data);
@@ -64,11 +64,11 @@ class OrderFileModel {
}
public static function getFirst() {
public static function getFirst($filter = []) {
$db = FronkDB::singleton();
$where = self::getSqlFilter($filter);
$res = $db->select("OrderFile", "*", "$where ORDER BY name, filename");
$res = $db->select("OrderFile", "*", "$where ORDER BY name");
if($db->num_rows($res)) {
$data = $db->fetch_object($res);
$item = new OrderFile($data);