Skip to content

Commit

Permalink
readme update
Browse files Browse the repository at this point in the history
  • Loading branch information
Sofiosko committed Jan 23, 2019
1 parent da5cd60 commit 3865743
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,16 @@
The whole library purpose is to simplify working with Czech VAT while it allows to extend and bend computing logic of every important operation.
The whole library purpose is to simplify working with Czech VAT while it allows to extend and bend computing logic of every important operation.

```php
$cl = new \BiteIT\Taxes\CalcLogic();

$pl = new \BiteIT\Taxes\PriceList(\BiteIT\Taxes\Rates::HIGH_PERCENT, $cl);

$pl->addWithVat(121, 1);
$pl->addWithVat(200, 2, \BiteIT\Taxes\Rates::MEDIUM_PERCENT);
$pl->addWithVat(299, 4, \BiteIT\Taxes\Rates::LOW_PERCENT);

var_dump([
$pl->getTotalsWithVat(),
$pl->getTotalsWithoutVat()
]);
```

0 comments on commit 3865743

Please sign in to comment.