Sample document for customization

When I go to Customize & preview my invoice design, I keep getting the first sample invoice with 2 lines that I created just to have something to work with and get the basics right.
Now that I have an actual invoice with much more varied details in it, I want to use that as my sample document for the final stages of the design.
But no matter what I do, I keep getting that crappy first draft with 2 lines of items. I changed the design type on the invoice, I deleted it, I marked it paid, I deleted all lines, I changed the number…it stubbornly keeps coming up as soon as I open my design view.
What am I missing here?

@Francesco

The app just grabs the first invoice at the moment… we’ll look into changing this to get the last invoice.

Well, hurry. Got to finish my design :wink:
Ideally one would be able to select a sample, but last is definitely better than first.
Is there any hackaround to make them switch places?

@Francesco

Line 314 in PreviewController change to this:

$invitation = InvoiceInvitation::where(‘company_id’, auth()->user()->company()->id)->orderBy(‘id’, ‘desc’)->first();

In the next release this will be the default.

1 Like

Works like a charm.
I will retroactively name my first-born after you.

1 Like