Closed rabol closed 5 years ago
Hi @rabol ,
Thanks for submitting this issue.
You can use the view()
method on the Invoice
for this.
If you want to implement this behavior on your own, take a look at the method's contents:
Problem is that the view() on the invoice use a not so nice layout and I wanted to use my own.
and the view() method does not allow one to parse a view as argument.
But I got it working
If you publish the receipt view (I don't look like the current looks either... ;) ) you can adapt it to your needs, while having the benefit of using the default Invoice methods.
I'll close this issue for now, thanks for following up. Let me know if it needs to be reopened.
Hi
when trying to render a invoice like this:
$so = SalesOder::find(1); $invoice = $so->invoices()->first(); return view('vendor.invoicable.receipt')->withInvoice($invoice);
I get the following error:
Undefined variable: moneyFormatter (View: /home/vagrant/code/xxxx/resources/views/vendor/invoicable/receipt.blade.php)