Create a quote instead of an invoice?

Self hosted, latest version.

I’m currently creating invoices with the code below:

It works perfectly for creating invoices, but when I try to create a quote with createQuote() I get:

Fatal error:  Uncaught Error: Call to undefined method InvoiceNinja\Models\Client::createQuote() 

Do you have a tiny snippet or hint for how to create a quote with the PHP api?

Thanks!

Terry

echo "Creating Invoice";
$client->createInvoice();
$client->save();
$invoice = $client->createInvoice();
$invoice->addInvoiceItem('Diagnostic Charge', 'Diagnostic Charge (includes first 30 minutes)', 75, 1);

You can use createInvoice() to create quotes, you just need to set is_quote to true.

1 Like

> You can use createInvoice() to create quotes, you just need to set is_quote to true.

Ahhh. Sneaky! :sunglasses:

Thank you again for an awesome product, it’s “just right” for my tiny service business.

Terry

nice