Exemplo n.º 1
0
 public override void Enter()
 {
     //TODO: Tutarli etiket satislari
     if (!input.IsEmpty)
     {
         cr.Item.TotalAmount = input.ToDecimal();
     }
     cr.State = EnterNumber.Instance();
 }
Exemplo n.º 2
0
 public static IState VoidSale()
 {
     DisplayAdapter.Cashier.Pause();
     cr.State = EnterNumber.Instance();
     cr.State.Numeric('1');
     DisplayAdapter.Cashier.Play();
     cr.State.Void();
     return(cr.State);
 }
Exemplo n.º 3
0
        public override void Void()
        {
            /*Check cashier authorization level whether has authority or not.*/

            if (!cr.IsAuthorisedFor(Authorizations.VoidSale))
            {
                cr.State = ConfirmAuthorization.Instance(VoidSale, Continue, Authorizations.VoidSale);
            }
            else
            {
                //do as 1X[IPTAL]
                DisplayAdapter.Cashier.Pause();
                cr.State = EnterNumber.Instance();
                cr.State.Numeric('1');
                DisplayAdapter.Cashier.Play();
                cr.State.Void();
            };
        }