Misc. sale model method fixes

createInvoiceNo() now properly uses $order_id and
getEmailsByProductsOrdered() uses $start and $end for query limits