no message
This commit is contained in:
@@ -115,7 +115,7 @@ class Abrechnung extends IPSModule
|
|||||||
|
|
||||||
// ====================== PDF-Erstellung ======================
|
// ====================== PDF-Erstellung ======================
|
||||||
|
|
||||||
public function GenerateInvoices()
|
public function GenerateInvoices()
|
||||||
{
|
{
|
||||||
$from = GetValue($this->GetIDForIdent('FromDate'));
|
$from = GetValue($this->GetIDForIdent('FromDate'));
|
||||||
$to = GetValue($this->GetIDForIdent('ToDate'));
|
$to = GetValue($this->GetIDForIdent('ToDate'));
|
||||||
@@ -148,12 +148,11 @@ class Abrechnung extends IPSModule
|
|||||||
$pdf->SetFont('dejavusans', '', 8);
|
$pdf->SetFont('dejavusans', '', 8);
|
||||||
|
|
||||||
foreach ($users as $user) {
|
foreach ($users as $user) {
|
||||||
$pdf->printFooterText = true; // Fusszeile für die Rechnung aktivieren
|
|
||||||
$pdf->AddPage();
|
$pdf->AddPage();
|
||||||
|
$pdf->printFooterText = true; // Fusszeile für diese Rechnungsseite EINSCHALTEN
|
||||||
|
|
||||||
$grandTotal = $this->BuildUserInvoice($pdf, $user, $power, $water, $tariffs, $from, $to);
|
$grandTotal = $this->BuildUserInvoice($pdf, $user, $power, $water, $tariffs, $from, $to);
|
||||||
|
|
||||||
$pdf->printFooterText = false; // Fusszeile für den QR-Schein deaktivieren
|
|
||||||
$this->BuildQRBill($pdf, $user, $grandTotal);
|
$this->BuildQRBill($pdf, $user, $grandTotal);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -245,7 +244,7 @@ class Abrechnung extends IPSModule
|
|||||||
|
|
||||||
// ====================== QR-Einzahlungsschein (Schweiz) ======================
|
// ====================== QR-Einzahlungsschein (Schweiz) ======================
|
||||||
|
|
||||||
private function BuildQRBill($pdf, $user, $amount)
|
private function BuildQRBill($pdf, $user, $amount)
|
||||||
{
|
{
|
||||||
$iban = str_replace(' ', '', $this->ReadPropertyString('BankIBAN'));
|
$iban = str_replace(' ', '', $this->ReadPropertyString('BankIBAN'));
|
||||||
|
|
||||||
@@ -253,7 +252,8 @@ class Abrechnung extends IPSModule
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$pdf->AddPage();
|
$pdf->AddPage(); // Schliesst die vorherige Seite (Fusszeile wird dort noch gedruckt)
|
||||||
|
$pdf->printFooterText = false; // Fusszeile für diese QR-Seite AUSSCHALTEN
|
||||||
$pdf->SetAutoPageBreak(false);
|
$pdf->SetAutoPageBreak(false);
|
||||||
|
|
||||||
// Wir nutzen Helvetica für den QR-Schein (Standard gemäss Richtlinien)
|
// Wir nutzen Helvetica für den QR-Schein (Standard gemäss Richtlinien)
|
||||||
|
|||||||
Reference in New Issue
Block a user