Open nickxhinobi opened 6 months ago
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 https://github.com/AhmedHelalAhmed/invobook/commit/4a7b68bba10699d5eb8ce565582865da52b3d10c
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