PDF Invoice

This commit is contained in:
Peter Papp
2021-04-24 07:40:20 +02:00
parent 9a5f9fe49d
commit e65e3e88d7
8 changed files with 864 additions and 239 deletions

View File

@@ -51,6 +51,38 @@ class OasisInvoiceTest extends TestCase
];
}
/**
* @test
*/
public function it_test_invoice_item_only_tax_price_function()
{
$item = [
'description' => 'Test 1',
'amount' => 1,
'tax_rate' => 20,
'price' => 20,
];
$this->assertEquals(4, invoice_item_only_tax_price($item));
$this->assertEquals('4,00 Kč', invoice_item_only_tax_price($item, true));
}
/**
* @test
*/
public function it_test_invoice_item_with_tax_price_function()
{
$item = [
'description' => 'Test 1',
'amount' => 1,
'tax_rate' => 20,
'price' => 20,
];
$this->assertEquals(24, invoice_item_with_tax_price($item));
$this->assertEquals('24,00 Kč', invoice_item_with_tax_price($item, true));
}
/**
* @test
*/