function getTicketId(inputTicketNumber) {
var ticketIdQry = "SELECT [Id] FROM [Tickets] WHERE [TicketNumber] = '"+inputTicketNumber+"'";
var ticketIdLookup = sql.Query(ticketIdQry).First;
return ticketIdLookup;
}
No it would not. Its hard to tell what your doing. So your printing tickets… but you might cancel an order even if its printed? Wouldnt you only want to print for submitted?
Its for a system for claiming unused loyalty points, there will be a barcode on the receipt and using ticket id obviously gives an error on printing if not saved/submitted and didnt want to create a second template.