LaravelDaily / laravel-invoices

Laravel package to generate PDF invoices from various customizable parameters
GNU General Public License v3.0
1.4k stars 304 forks source link

Adding included price tax #109

Closed MoAlloh closed 3 years ago

MoAlloh commented 3 years ago

Hi, I would like to ask if there is any method to make the taxByPercent for Items included in the total unit price.

For example: Units 10 PricePerUnit 10$ TaxByPercent 20%

Result: Tax Amount: 20$ Net Price: 80$ Total Price: 100$

mc0de commented 3 years ago

you can already do that with taxByPercent() method on item

MoAlloh commented 3 years ago

Am using TaxByPercent() but it added the tax amount extra to the total unit price.

This is what I get Units: 10 Unit price: 10 Tax by percent: 20% Total: 120 (Unit * Unitprice + Tax)

My question if I can get this: Units: 10 Unit price: 10 Tax by percent: 20% Total: 100 (unit * Unit Price)

Thanks alot