Tweak for 1st time billing
This commit is contained in:
@@ -90,10 +90,10 @@ $this->setReturnValue(['filename' => $invoice->invoice_number . ".pdf"]);
|
||||
|
||||
<table style="border-collapse: collapse; width: 100%;" id="invoiceTable">
|
||||
<tr style="font-weight: bold; border-bottom: 1px solid black;" class="uneven">
|
||||
<th style="text-align: center">Dienstleistung</th>
|
||||
<th style="text-align: center">Leitung / Produkt</th>
|
||||
<th style="text-align: center">Zeitraum</th>
|
||||
<th style="text-align: right">Preis</th>
|
||||
<th style="text-align: center;">Menge</th>
|
||||
<th style="text-align: center">Menge</th>
|
||||
<th style="text-align: right">Netto €</th>
|
||||
<th style="text-align: right">Ust. %</th>
|
||||
<th style="text-align: right; padding-right: 4pt">Brutto €</th>
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user