예제 #1
0
        private void buttonPayout_Click(object sender, RoutedEventArgs e)
        {
            RegisterContextMenu.IsOpen = false;
            string reason = PosDialogWindow.PromptKeyboard(Types.Strings.RegisterMenuPayoutReason, null);

            if (reason != null)
            {
                double?amount = PosDialogWindow.PromptCurrency(Types.Strings.RegisterMenuPayoutAmount, null);
                if (amount.HasValue && (amount.Value > 0))
                {
                    RegisterPayout.Add(RegisterManager.ActiveRegisterDrawer.Id,
                                       SessionManager.ActiveEmployee.Id, amount.Value, reason, DateTime.Now);
                    RegisterManager.ActiveRegisterDrawer.RemoveFromCurrentAmount(amount.Value);
                    RegisterManager.OpenCashDrawer();
                }
            }
        }
예제 #2
0
 private static void ResetTransactionalTables()
 {
     SettingManager.SetStoreSetting("DailyIdOffset", 0);
     DayOfOperation.Reset(typeof(DayOfOperation));
     EmployeeTimesheet.Reset(typeof(EmployeeTimesheet));
     EmployeeTimesheetChangeLog.Reset(typeof(EmployeeTimesheetChangeLog));
     Lock.Reset(typeof(Lock));
     Party.Reset(typeof(Party));
     PartyInvite.Reset(typeof(PartyInvite));
     RegisterDeposit.Reset(typeof(RegisterDeposit));
     RegisterDrawer.Reset(typeof(RegisterDrawer));
     RegisterDrop.Reset(typeof(RegisterDrop));
     RegisterNoSale.Reset(typeof(RegisterNoSale));
     RegisterPayout.Reset(typeof(RegisterPayout));
     Ticket.Reset(typeof(Ticket));
     TicketCoupon.Reset(typeof(TicketCoupon));
     TicketDiscount.Reset(typeof(TicketDiscount));
     TicketItem.Reset(typeof(TicketItem));
     TicketItemOption.Reset(typeof(TicketItemOption));
     TicketItemReturn.Reset(typeof(TicketItemReturn));
     TicketPayment.Reset(typeof(TicketPayment));
     TicketRefund.Reset(typeof(TicketRefund));
     TicketVoid.Reset(typeof(TicketVoid));
 }