As always it came to me in the night! To make a custom link to copy an invoice of your choosing…
In global customisations add;
$(document).ready(function() {
if (location.hash.slice(1,5) == 'copy') {
Modal.confirm("Are you sure you want to make a copy of this invoice?", function() {
var n = location.hash.slice(-8), t = "invoiceID=" + n;
loadingOverlayVisibility("Working on it..", !0);
$.ajax({
type: "GET",
url: "/handlers/invoice/duplicateInvoice",
async: !0,
dataType: "json",
data: t,
success: function(n) {
n.jval.success === "true" ? location.assign("/sales/create?invoiceID=" + n.jval.newInvoiceID) : (loadingOverlayVisibility(" ", !1), Modal.alert("Ooops!! Something just broke. Here is the error: " + n.jval.errorMsg));
},
error: function() {
loadingOverlayVisibility(" ", !1);
Modal.alert("We have been unable to duplicate this document, please retry later.");
}
});
});
}
});
And then on the dashboard add a link (where xxxxxxxx is the QF invoice ref (the one you see when you hover over the link to the invoice in your list of sales));
https://yourcompany.quickfile.co.uk/sales/create#copyxxxxxxxx
The subscription is going to run out on my test account in a couple of days so get your requests in quick!