-
Notifications
You must be signed in to change notification settings - Fork 292
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
Error on Sample Demo #4
Comments
@igun997 very weird, it works perfectly for me. Your error points to this parameter missing:
Which should be set by default anyway, but maybe something is missing on your end. Have you done |
this |
yes i have done instalation like on insruction |
@igun997 no idea, to be honest, tried with exact same config - copy-pasted your values, I get this PDF: Maybe try to copy-paste the code once again, and make sure you didn't mix any symbol, maybe some bracket or other symbol is incorrect? Or, you can put your code to github and attach me as collaborator, then I could debug it for you on your project, maybe. |
Describe the bug
Like on laraveldaily\laravel-invoices\src\Classes\InvoiceItem.php function 'calculate()' have null value
To Reproduce
Steps to reproduce the behavior:
Install all as docs instruction
Copy Sample demos code
` $customer = new Buyer([
'name' => 'John Doe',
'custom_fields' => [
'email' => 'test@example.com',
],
]);
$item = (new InvoiceItem())->title('Service 1')->pricePerUnit(2);
$invoice = Invoice::make()
->buyer($customer)
->addItem($item);
return $invoice->stream();`
I Included
use LaravelDaily\Invoices\Invoice; use LaravelDaily\Invoices\Classes\Buyer; use LaravelDaily\Invoices\Classes\Party; use LaravelDaily\Invoices\Classes\InvoiceItem;
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: