public Receipt(Pos posData, ReceiptType receiptType, TransactionDataStruct endOfDayReceiptData, EndOfSalesDataStruct endOfDayAmountData) { _receiptType = receiptType; Pos = posData; EndOfDayReceiptData = endOfDayReceiptData; EndOfDayAmountData = endOfDayAmountData; }
/// <summary> /// Collect information required for the end of sales receipt based on user inputs during procedure /// </summary> private void CollectEndOfSalesReceiptInformation() { EndOfSalesData = new EndOfSalesDataStruct() { User = MainWindowViewModel.GetInstance().CurrentUser.Name, Comments = Comments, EndOfSalesReceiptType = EndOfSalesType, ExpensesCash = ExpensesCashTotal, ExpensesTotal = ExpensesTotal, ExchangeRate = MainWindowViewModel.GetInstance().ExchangeRate, InitialCash = RegisterPreviousCash, NewInitialCash = RegisterNewCash, SalesOffset = Delta, MxnCoins = MxnPesoCoinsTotal, Mxn20 = MxnPeso20, Mxn50 = MxnPeso50, Mxn100 = MxnPeso100, Mxn200 = MxnPeso200, Mxn500 = MxnPeso500, Mxn1000 = MxnPeso1000, UsdCoins = UsdDollarCoinsTotal, Usd1 = UsdDollar1, Usd5 = UsdDollar5, Usd10 = UsdDollar10, Usd20 = UsdDollar20, Usd50 = UsdDollar50, Usd100 = UsdDollar100, Delta = Delta, UsdTotalCash = UsdDollar1 + UsdDollar5 * 5 + UsdDollar10 * 10 + UsdDollar20 * 20 + UsdDollar50 * 50 + UsdDollar100 * 100 + UsdDollarCoinsTotal, MxnTotalCash = MxnPeso20 * 20 + MxnPeso50 * 50 + MxnPeso100 * 100 + MxnPeso200 * 200 + MxnPeso500 * 500 + MxnPeso1000 * 1000 + MxnPesoCoinsTotal }; }