diff options
author | Camil Staps | 2016-07-27 21:06:48 +0200 |
---|---|---|
committer | Camil Staps | 2016-07-27 21:06:48 +0200 |
commit | 390251ac43ca889a318369342b4663ef928349d8 (patch) | |
tree | b2b0a68dd6fccf6fa52d2c1fc95bdd70811a60b3 /classes/Correspondence.php | |
parent | Discount: use Model (diff) |
Contact: use Model
Diffstat (limited to 'classes/Correspondence.php')
-rw-r--r-- | classes/Correspondence.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/classes/Correspondence.php b/classes/Correspondence.php index 4c7a23b..09873c3 100644 --- a/classes/Correspondence.php +++ b/classes/Correspondence.php @@ -183,7 +183,7 @@ class Correspondence extends FPDF { function SetContact($contact) { $this->contact = $contact; - $this->language = $contact->getLanguage(); + $this->language = $contact->language; } /** @@ -262,16 +262,16 @@ class Correspondence extends FPDF { $this->SetFont('','',11); $this->SetXY(30,56.5); - $this->Cell(90,5.5,utf8_decode($this->contact->getName())); + $this->Cell(90,5.5,utf8_decode($this->contact->name)); $this->Ln(); $this->SetXY(30,61.5); - $this->Cell(90,5.5,utf8_decode($this->contact->getAddress())); + $this->Cell(90,5.5,utf8_decode($this->contact->address)); $this->Ln(); $this->SetXY(30,66.5); - $this->Cell(90,5.5,utf8_decode($this->contact->getPostalCode().' '.$this->contact->getCity())); + $this->Cell(90,5.5,utf8_decode($this->contact->postal_code.' '.$this->contact->city)); $this->Ln(); $this->SetXY(30,71.5); - $this->Cell(90,5.5,utf8_decode($this->contact->getCountry())); + $this->Cell(90,5.5,utf8_decode($this->contact->country)); $this->Ln(); } |