diff --git a/Layout/default/Invoice/PDF_MAIN.php b/Layout/default/Invoice/PDF_MAIN.php index 3d925dda9..6554b5834 100644 --- a/Layout/default/Invoice/PDF_MAIN.php +++ b/Layout/default/Invoice/PDF_MAIN.php @@ -90,10 +90,10 @@ $this->setReturnValue(['filename' => $invoice->invoice_number . ".pdf"]);
| Dienstleistung | +Leitung / Produkt | Zeitraum | Preis | -Menge | +Menge | Netto € | Ust. % | Brutto € | diff --git a/application/Billing/BillingController.php b/application/Billing/BillingController.php index 45e9525c6..79dcde5e8 100644 --- a/application/Billing/BillingController.php +++ b/application/Billing/BillingController.php @@ -275,6 +275,11 @@ class BillingController extends mfBaseController { continue; } + if($contract->billing_period == 1 && $start_date->format("Y") < 2024 || ($start_date->format("Y") == 2024 && $start_date->format("m") < 7)) { + // XXX only for 1st Billing after IVT Import + $this->log->debug(__METHOD__.": Ignoring Contract ".$contract->id." with start_date ".$start_date->format("Y-m-d")." because is before this month"); + } + // if contract has cancel date this month // use cancel date as end_date if ($cancel_date) {
|---|