WIP Contract/Billing/Invoice 2024-06-28

This commit is contained in:
Frank Schubert
2024-07-01 11:44:19 +02:00
parent 4589e61ab8
commit ae298a0665
30 changed files with 1898 additions and 212 deletions

View File

@@ -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;
}