mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Updates for tests for html generation
This commit is contained in:
parent
721bc60f64
commit
b426788de3
@ -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;
|
||||||
|
@ -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()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user