Ver Fonte

Added contact details to address section.

Alan Lam há 8 anos atrás
pai
commit
5542338e25
1 ficheiros alterados com 4 adições e 9 exclusões
  1. 4 9
      controllers/test_invoice.php

+ 4 - 9
controllers/test_invoice.php

@@ -30,6 +30,9 @@ $address_parts = array_filter([
 	$address->city,
 	$address->county,
 	$address->postal_code,
+	str_repeat("-", 32),
+	"Tel: " . $tester->phone,
+	"Email: " . $tester->email,
 ]);
 
 $reference =
@@ -119,7 +122,7 @@ $pdf->SetFont("Arial", "B", $normal_font_size);
 $pdf->SetTextColor(0, 0, 0);
 $pdf->Cell(90, 4, APP_NAME, 0, 1);
 $pdf->SetFont("Arial");
-$pdf->MultiCell(90, 4, implode("\n", ["8 Market Street", "Liskeard", "Cornwall", "PL14 3JJ"]));
+$pdf->MultiCell(90, 4, implode("\n", ["8 Market Street", "Liskeard", "Cornwall", "PL14 3JJ", str_repeat("-", 32), "Tel: 07841 353775"]));
 
 // Header
 $pdf->MoveY(8);
@@ -205,14 +208,6 @@ switch($tester->preferred_payment_method) {
 	}
 }
 
-$pdf->MoveY(10);
-
-$pdf->SetTextColor(128);
-$pdf->MultiCell(190, 6, "Contact Info:");
-$pdf->SetTextColor(0);
-$pdf->MultiCell(190, 6, "Email: $tester->email");
-$pdf->MultiCell(190, 6, "Phone: $tester->phone");
-
 // Output
 
 $pdf->Output();