mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-18 16:22:14 +00:00
PDF Invoice
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user