WIP Contract/Billing/Invoice 2024-06-28
This commit is contained in:
@@ -101,7 +101,7 @@ $tbms = 0;
|
||||
$tbys = 0;
|
||||
$tbs = 0;
|
||||
|
||||
foreach(BillingModel::search(["price>=" => 0]) as $bill) {
|
||||
foreach(BillingModel::search(["price>=" => 0, "start_date" => "2024-06-01"]) as $bill) {
|
||||
if($bill->billing_period == 1) {
|
||||
$tbms += $bill->price;
|
||||
}
|
||||
@@ -129,7 +129,7 @@ $tbcms = 0;
|
||||
$tbcys = 0;
|
||||
$tbcs = 0;
|
||||
|
||||
foreach(BillingModel::search(["price<" => 0]) as $bill) {
|
||||
foreach(BillingModel::search(["price<" => 0, "start_date" => "2024-06-01"]) as $bill) {
|
||||
if($bill->billing_period == 1) {
|
||||
$tbcms += $bill->price;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user