small changes to invoice & removed debugging
This commit is contained in:
@@ -500,12 +500,26 @@ class ContractModel {
|
||||
}
|
||||
}
|
||||
|
||||
if(array_key_exists("cancel_date_null_or_gte", $filter)) {
|
||||
$cancel_date = $filter['cancel_date_null_or_gte'];
|
||||
if(is_numeric($cancel_date)) {
|
||||
$where .= " AND (Contract.cancel_date IS NULL OR Contract.cancel_date >= $cancel_date)";
|
||||
}
|
||||
}
|
||||
|
||||
if(array_key_exists("cancel_date<", $filter)) {
|
||||
$cancel_date = $filter['cancel_date<'];
|
||||
if(is_numeric($cancel_date)) {
|
||||
$where .= " AND Contract.cancel_date <= $cancel_date";
|
||||
}
|
||||
}
|
||||
|
||||
if(array_key_exists("cancel_date_null_or_lte", $filter)) {
|
||||
$cancel_date = $filter['cancel_date_null_or_lte'];
|
||||
if(is_numeric($cancel_date)) {
|
||||
$where .= " AND (Contract.cancel_date IS NULL OR Contract.cancel_date <= $cancel_date)";
|
||||
}
|
||||
}
|
||||
|
||||
if(array_key_exists("add-where", $filter)) {
|
||||
$where .= " ".$filter['add-where'];
|
||||
|
||||
Reference in New Issue
Block a user