Contractqueue: commit to Contract finished
This commit is contained in:
@@ -141,7 +141,7 @@ class ContractqueueModel {
|
||||
LEFT JOIN Product ON (Contractqueue.product_id = Product.id)
|
||||
WHERE $where
|
||||
GROUP BY Contractqueue.id
|
||||
ORDER BY Contractqueue.owner_id,Contractqueue.product_id,Contractqueue.`create`
|
||||
ORDER BY Contractqueue.order_id,Contractqueue.orderproduct_id,Contractqueue.owner_id,Contractqueue.product_id,Contractqueue.`create`
|
||||
LIMIT 1";
|
||||
//var_dump($sql);exit;
|
||||
$res = $db->query($sql);
|
||||
@@ -196,7 +196,7 @@ class ContractqueueModel {
|
||||
WHERE $where
|
||||
AND (cancel_date IS NULL OR cancel_date > UNIX_TIMESTAMP())
|
||||
GROUP BY Contractqueue.id
|
||||
ORDER BY Contractqueue.owner_id,Contractqueue.`create`";
|
||||
ORDER BY Contractqueue.order_id,Contractqueue.orderproduct_id,Contractqueue.owner_id,Contractqueue.`create`";
|
||||
|
||||
if(is_array($limit) && count($limit)) {
|
||||
if(is_numeric($limit['start']) && is_numeric($limit['count'])) {
|
||||
@@ -231,7 +231,7 @@ class ContractqueueModel {
|
||||
LEFT JOIN Product ON (Contractqueue.product_id = Product.id)
|
||||
WHERE $where
|
||||
GROUP BY Contractqueue.id
|
||||
ORDER BY Contractqueue.owner_id,Contractqueue.`create`";
|
||||
ORDER BY Contractqueue.order_id,Contractqueue.orderproduct_id,Contractqueue.owner_id,Contractqueue.`create`";
|
||||
|
||||
if(is_array($limit) && count($limit)) {
|
||||
if(is_numeric($limit['start']) && is_numeric($limit['count'])) {
|
||||
|
||||
Reference in New Issue
Block a user