Fixed invoicing only one of several voicezones with same name
This commit is contained in:
@@ -153,7 +153,6 @@ class BillingController extends mfBaseController {
|
|||||||
$v = 0;
|
$v = 0;
|
||||||
|
|
||||||
$today = new DateTime("now");
|
$today = new DateTime("now");
|
||||||
//$today = new DateTime("2026-01-09");
|
|
||||||
$today->setTime(0,0,0);
|
$today->setTime(0,0,0);
|
||||||
|
|
||||||
$now_year = date("Y");
|
$now_year = date("Y");
|
||||||
@@ -192,7 +191,7 @@ class BillingController extends mfBaseController {
|
|||||||
$contract_search = [
|
$contract_search = [
|
||||||
"finish_date<" => mktime(2,0,0,$now_month, $now_day, $now_year),
|
"finish_date<" => mktime(2,0,0,$now_month, $now_day, $now_year),
|
||||||
"cancel_date_null_or_gte" => mktime(0,0,0,$now_month, 1, $now_year),
|
"cancel_date_null_or_gte" => mktime(0,0,0,$now_month, 1, $now_year),
|
||||||
"owner_id" => 7719
|
//"owner_id" => 7719
|
||||||
];
|
];
|
||||||
|
|
||||||
foreach(ContractModel::search($contract_search) as $contract) {
|
foreach(ContractModel::search($contract_search) as $contract) {
|
||||||
|
|||||||
Reference in New Issue
Block a user