WIP Contract linking / productchange

This commit is contained in:
Frank Schubert
2023-01-11 15:53:13 +01:00
parent b47bf6ca0f
commit 25236493ee
15 changed files with 672 additions and 127 deletions
+2 -2
View File
@@ -59,7 +59,7 @@ class ContractModel {
$db = FronkDB::singleton();
$res = $db->select("Contract", "*", "1 = 1 ORDER BY owner_id,product_id,`create`");
$res = $db->select("Contract", "*", "1 = 1 ORDER BY owner_id,`create`");
if($db->num_rows($res)) {
while($data = $db->fetch_object($res)) {
$items[] = new Contract($data);
@@ -129,7 +129,7 @@ class ContractModel {
LEFT JOIN Product ON (Contract.product_id = Product.id)
WHERE $where
GROUP BY Contract.id
ORDER BY Contract.owner_id,Contract.product_id,Contract.`create`";
ORDER BY Contract.owner_id,Contract.`create`";
if(is_array($limit) && count($limit)) {
if(is_numeric($limit['start']) && is_numeric($limit['count'])) {