private PaymentInfo PaymentWithBarcode(int paymentType) { PaymentInfo pi = null; switch (paymentType) { case 0: //Continue selling break; case 1: //Pay with cash pi = new CashPaymentInfo(); break; case 2: //Pay with check pi = new CheckPaymentInfo(); break; default: //between 3 and 9 is credit payment ICredit credit = cr.DataConnector.GetCredits()[paymentType - 2]; if (credit != null) { pi = new CreditPaymentInfo(credit); } else { throw new Exception(PosMessage.PAYMENT_INVALID); } break; } return(pi); }
public override void Pay(CashPaymentInfo info) { info.Amount = input.ToDecimal(); paymentInfo = info; cr.State = CalculateTotal(paymentInfo); }
public virtual void Pay(CashPaymentInfo info) { cr.State = AlertCashier.Instance(cr.State.NotImplemented); }
public override void Pay(CashPaymentInfo info) { WriteChar(0, PosKey.Cash); }
public override void Pay(CashPaymentInfo info) { Operation(SUBTRACT); }
public override void Pay(CashPaymentInfo info) { return; }
public override void Pay(CashPaymentInfo info) { cr.State = Payment.Instance(String.Empty); cr.State.Pay(info); }
public override void Pay(CashPaymentInfo info) { Pay(info); }