public Receipt(Pos posData, Transaction transaction, SalesDataStruct salesData) { _receiptType = salesData.ReceiptType; Pos = posData; Transaction = transaction; _products = salesData.Products; SalesData = salesData; }
internal void Execute_DocumentPreviewCommand(object parameter) { ////Create new document //string fileName = @"G:\wibsar-pos-solution\ticket.oxps"; //var doc = new System.Windows.Xps.Packaging.XpsDocument(fileName, FileAccess.Read); //FixedDocumentSequence fds = doc.GetFixedDocumentSequence(); //Document = fds; //Generate receipt var transaction = new Transaction(null); var salesData = new SalesDataStruct(); var receipt = new Receipt(MainWindowViewModel.PosInstance, transaction, salesData); //save receipt //open receipt }