Пример #1
0
        private static Cashier GetMerchantDetails(Cashier cashier, GiveCashier cashierGeneralData)
        {
            try
            {
                cashier.MerchantProfileID = cashierGeneralData.catalogTemp_fk;

                cashier.MerchantTerminalID = cashierGeneralData.terminal_id;

                cashier.MerchantPassword = cashierGeneralData.mer_password;

                cashier.IsMerchant = cashier.Password == cashierGeneralData.mer_password;

                return cashier;
            }
            catch (Exception exception)
            {
                return null;
            }
        }
Пример #2
0
        private static SalesSummary GetSalesSummary(Cashier cashier)
        {
            var salesSummary = new SalesSummary
            {
                DaylyBalance = cashier.DaylyBalance.Value,
                DailyCreditLimit = cashier.DailyCreditLimit,
                TodaySales = cashier.TodaySales,
                WeeklyBalance = cashier.WeeklyBalance.Value,
                WeeklyCreditLimit = cashier.WeeklyCreditLimit
            };

            return salesSummary;
        }