Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ApplyTax Error #1501

Open
nickxhinobi opened this issue May 31, 2024 · 3 comments
Open

ApplyTax Error #1501

nickxhinobi opened this issue May 31, 2024 · 3 comments

Comments

@nickxhinobi
Copy link

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

@Hasnayeen
Copy link
Owner

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?

@AhmedHelalAhmed
Copy link

I faced the same issue

@AhmedHelalAhmed
Copy link

AhmedHelalAhmed commented Jul 23, 2024

in GenerateInvoicePdf

we need to set totalAmount with value in case we have vat

or remove totalTaxes to set tax with null

image

for my use case I don't need tax so I removed it AhmedHelalAhmed@4a7b68b

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants