Changeset 3148276
- Timestamp:
- 09/08/2024 08:18:21 PM (19 months ago)
- Location:
- my-easy-compta
- Files:
-
- 2 edited
-
tags/1.1.0/includes/Modules/PDFGenerator.php (modified) (4 diffs)
-
trunk/includes/Modules/PDFGenerator.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
my-easy-compta/tags/1.1.0/includes/Modules/PDFGenerator.php
r3148192 r3148276 537 537 } 538 538 if ($this->siret) { 539 $html .= '<b> SIRET: </b>' . $this->siret . '<br>';539 $html .= '<b>' . __('SIRET n°', 'my-easy-compta') . ' : </b>' . $this->siret . '<br>'; 540 540 } 541 541 if ($this->tax_number) { … … 553 553 554 554 if ($client->phone && $this->show_phone == 1) { 555 $html .= '<b>' . __('Phone', 'my-easy-compta') . ' : </b>' . $ this->company_phone . '<br>';555 $html .= '<b>' . __('Phone', 'my-easy-compta') . ' : </b>' . $client->phone . '<br>'; 556 556 } 557 557 if ($client->email && $this->show_email == 1) { … … 559 559 } 560 560 if ($client->siren_number && $this->show_siren == 1) { 561 $html .= '<b> SIREN: </b>' . $client->siren_number . '<br>';561 $html .= '<b>' . __('SIREN n°', 'my-easy-compta') . ' : </b>' . $client->siren_number . '<br>'; 562 562 } 563 563 if ($client->tax_number && $this->show_tax_number == 1) { … … 568 568 $tva_totaux = []; 569 569 foreach ($items as $item) { 570 $discount_percentage = intval($encrypt->decrypt($item->discount)); 571 if ($discount_percentage > 0) { 572 $discount_exist = true; 570 if ($type == 'invoice' || $type == 'credit_invoice') { 571 $discount_percentage = intval($encrypt->decrypt($item->discount)); 572 if ($discount_percentage > 0) { 573 $discount_exist = true; 574 } 575 } else { 576 $discount_percentage = intval($item->discount); 577 if ($discount_percentage > 0) { 578 $discount_exist = true; 579 } 573 580 } 574 581 } -
my-easy-compta/trunk/includes/Modules/PDFGenerator.php
r3148192 r3148276 537 537 } 538 538 if ($this->siret) { 539 $html .= '<b> SIRET: </b>' . $this->siret . '<br>';539 $html .= '<b>' . __('SIRET n°', 'my-easy-compta') . ' : </b>' . $this->siret . '<br>'; 540 540 } 541 541 if ($this->tax_number) { … … 553 553 554 554 if ($client->phone && $this->show_phone == 1) { 555 $html .= '<b>' . __('Phone', 'my-easy-compta') . ' : </b>' . $ this->company_phone . '<br>';555 $html .= '<b>' . __('Phone', 'my-easy-compta') . ' : </b>' . $client->phone . '<br>'; 556 556 } 557 557 if ($client->email && $this->show_email == 1) { … … 559 559 } 560 560 if ($client->siren_number && $this->show_siren == 1) { 561 $html .= '<b> SIREN: </b>' . $client->siren_number . '<br>';561 $html .= '<b>' . __('SIREN n°', 'my-easy-compta') . ' : </b>' . $client->siren_number . '<br>'; 562 562 } 563 563 if ($client->tax_number && $this->show_tax_number == 1) { … … 568 568 $tva_totaux = []; 569 569 foreach ($items as $item) { 570 $discount_percentage = intval($encrypt->decrypt($item->discount)); 571 if ($discount_percentage > 0) { 572 $discount_exist = true; 570 if ($type == 'invoice' || $type == 'credit_invoice') { 571 $discount_percentage = intval($encrypt->decrypt($item->discount)); 572 if ($discount_percentage > 0) { 573 $discount_exist = true; 574 } 575 } else { 576 $discount_percentage = intval($item->discount); 577 if ($discount_percentage > 0) { 578 $discount_exist = true; 579 } 573 580 } 574 581 }
Note: See TracChangeset
for help on using the changeset viewer.