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); }
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); }
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)); }
public virtual void Pay(CurrencyPaymentInfo info) { cr.State = AlertCashier.Instance(cr.State.NotImplemented); }
public override void Pay(CurrencyPaymentInfo info) { Operation(MULTIPLY); }
public override void Pay(CurrencyPaymentInfo info) { WriteChar(0, PosKey.ForeignCurrency); }
public override void Enter() { CurrencyPaymentInfo cpi = (CurrencyPaymentInfo)ie.Current; ProcessSelected((CurrencyPaymentInfo)cpi.Clone()); }
public override void Pay(CurrencyPaymentInfo info) { base.DownArrow(); }
public override void Pay(CurrencyPaymentInfo info) { return; }
public override void Pay(CurrencyPaymentInfo info) { cr.State = Payment.Instance(String.Empty); cr.State.Pay(info); }
public override void Pay(CurrencyPaymentInfo info) { Pay(info); }