Esempio n. 1
0
        public static IState Instance(Number amount)
        {
            input = amount;

            MenuList list = new MenuList();

            list.Add(new CheckPaymentInfo());
            list.AddRange(CurrencyPaymentInfo.GetCurrencies());
            list.AddRange(CreditPaymentInfo.GetCredits());
            States.List.Instance(list);
            return(state);
        }
Esempio n. 2
0
        public static void PayByForeignCurrency(CurrencyPaymentInfo currency)
        {
            if (currency.Amount >= 10000000)
            {
                //Should probably be in document.pay
                cr.State = States.AlertCashier.Instance(new Confirm(PosMessage.CURRENCY_LIMIT_EXCEEDED_PAYMENT_INVALID));
                return;
            }
            currency.Amount = Rounder.RoundDecimal(currency.Amount * currency.ExchangeRate, 2, true);

            //cr.State = cr.Document.Pay(currency);
            cr.State = CalculateTotal(currency);
        }
Esempio n. 3
0
        public override void Pay(CurrencyPaymentInfo info)
        {
            paymentInfo = info;
            MenuList tempCurrencies = CurrencyPaymentInfo.GetCurrencies();
            MenuList currencies     = new MenuList();

            foreach (CurrencyPaymentInfo cpi in tempCurrencies)
            {
                CurrencyPaymentInfo currency = (CurrencyPaymentInfo)cpi.Clone();
                currency.Amount = input.ToDecimal();
                currencies.Add(currency);
            }
            paymentInfo.Amount = 0;
            input         = new Number();
            promoDocument = null;
            cr.State      = ListCurrencies.Instance(currencies,
                                                    new ProcessSelectedItem <CurrencyPaymentInfo>(PayByForeignCurrency));
        }
Esempio n. 4
0
 public virtual void Pay(CurrencyPaymentInfo info)
 {
     cr.State = AlertCashier.Instance(cr.State.NotImplemented);
 }
Esempio n. 5
0
 public override void  Pay(CurrencyPaymentInfo info)
 {
     Operation(MULTIPLY);
 }
Esempio n. 6
0
 public override void Pay(CurrencyPaymentInfo info)
 {
     WriteChar(0, PosKey.ForeignCurrency);
 }
Esempio n. 7
0
        public override void Enter()
        {
            CurrencyPaymentInfo cpi = (CurrencyPaymentInfo)ie.Current;

            ProcessSelected((CurrencyPaymentInfo)cpi.Clone());
        }
Esempio n. 8
0
 public override void Pay(CurrencyPaymentInfo info)
 {
     base.DownArrow();
 }
Esempio n. 9
0
 public override void Pay(CurrencyPaymentInfo info)
 {
     return;
 }
Esempio n. 10
0
 public override void Pay(CurrencyPaymentInfo info)
 {
     cr.State = Payment.Instance(String.Empty);
     cr.State.Pay(info);
 }
Esempio n. 11
0
 public override void Pay(CurrencyPaymentInfo info)
 {
     Pay(info);
 }