mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
Updates for tests for html generation
This commit is contained in:
parent
721bc60f64
commit
b426788de3
@ -702,11 +702,11 @@ class HtmlEngine
|
||||
$tax_label = '';
|
||||
|
||||
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){
|
||||
$tax_label .= ctrans('texts.tax_info') . "\n";
|
||||
$tax_label .= ctrans('texts.intracommunity_tax_info') . "<br>";
|
||||
}
|
||||
|
||||
return $tax_label;
|
||||
|
@ -41,6 +41,8 @@ class ClientTest extends TestCase
|
||||
use DatabaseTransactions;
|
||||
use MockAccountData;
|
||||
|
||||
public $faker;
|
||||
|
||||
protected function setUp() :void
|
||||
{
|
||||
parent::setUp();
|
||||
@ -63,7 +65,6 @@ class ClientTest extends TestCase
|
||||
$this->makeTestData();
|
||||
}
|
||||
|
||||
|
||||
public function testClientMergeContactDrop()
|
||||
{
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user