ApplyTax Error
Opened this issue · 3 comments
I'm not sure what causes this, what I tried to do to get this error by generating a new invoice and I received this error.
LaravelDaily\Invoices\Services\PricingService::applyTax(): Argument #1 ($target) must be of type float, null given, called in C:\Users\XXXX\invobook\vendor\laraveldaily\laravel-invoices\src\Traits\InvoiceHelpers.php on line 292
I'm not sure what causes this, what I tried to do to get this error by generating a new invoice and I received this error.
LaravelDaily\Invoices\Services\PricingService::applyTax(): Argument #1 ($target) must be of type float, null given, called in C:\Users\XXXX\invobook\vendor\laraveldaily\laravel-invoices\src\Traits\InvoiceHelpers.php on line 292
does this issue still happens?
I faced the same issue
in GenerateInvoicePdf
we need to set totalAmount with value in case we have vat
or remove totalTaxes to set tax with null
for my use case I don't need tax so I removed it AhmedHelalAhmed@4a7b68b