Would it be possible to customise/control a default set of inventory items to be automatically populated with every new invoice/estimate that was created?
Currenty we get the 2 blank item lines in order to add in the inventory items, but I was curious as to whether or not it was possible to control a specific inventory item (or number of inventory items) to be automatically populated to replace the blank item lines in a new invoice/estimate?
You could use this script to create a copy of an invoice from a link on the dashboard;
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