Class CashierPaymentPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class CashierPaymentPanel extends JPanel
Provides the interface and logic for processing customer payments and finalizing orders. This component synchronizes with the current order summary, calculates the final total, and executes atomic database transactions to record orders, customer data, and individual order items. * @author Team 60
See Also:
  • Constructor Details

    • CashierPaymentPanel

      public CashierPaymentPanel(Connection conn, JPanel parentPanel, CashierView mainView)
      Constructs the payment panel and links it to the active order data. * @param conn The active SQL database connection for recording transactions.
      Parameters:
      parentPanel - The container panel used for switching back to the menu.
      mainView - The reference to the CashierView to access the current order model and selected employee information.