Updates for tests for html generation

This commit is contained in:
David Bomba 2023-08-09 10:47:50 +10:00
parent 721bc60f64
commit b426788de3
2 changed files with 4 additions and 3 deletions

View File

@ -702,11 +702,11 @@ class HtmlEngine
$tax_label = ''; $tax_label = '';
if (collect($this->entity->line_items)->contains('tax_id', \App\Models\Product::PRODUCT_TYPE_REVERSE_TAX)) { if (collect($this->entity->line_items)->contains('tax_id', \App\Models\Product::PRODUCT_TYPE_REVERSE_TAX)) {
$tax_label .= ctrans('texts.reverse_tax_info') . "\n"; $tax_label .= ctrans('texts.reverse_tax_info') . "<br>";
} }
if($this->client->country_id !== (int)$this->company->settings->country_id){ if($this->client->country_id !== (int)$this->company->settings->country_id){
$tax_label .= ctrans('texts.tax_info') . "\n"; $tax_label .= ctrans('texts.intracommunity_tax_info') . "<br>";
} }
return $tax_label; return $tax_label;

View File

@ -41,6 +41,8 @@ class ClientTest extends TestCase
use DatabaseTransactions; use DatabaseTransactions;
use MockAccountData; use MockAccountData;
public $faker;
protected function setUp() :void protected function setUp() :void
{ {
parent::setUp(); parent::setUp();
@ -63,7 +65,6 @@ class ClientTest extends TestCase
$this->makeTestData(); $this->makeTestData();
} }
public function testClientMergeContactDrop() public function testClientMergeContactDrop()
{ {