Initialize POS System
The POS class initializes a list of products. Each item has a name, price, and available stock.
A comprehensive list of stationery items, with their prices and stock quantities.
Ability to add products to the cart, calculate totals, and manage payment.
Accepting different payment methods (cash, card, or mobile payment).
Applying discounts based on specific criteria or promotional codes.
Adding applicable taxes (e.g., GST) to the final price.
Generating sales reports and stock reports for inventory management.
The POS class initializes a list of products. Each item has a name, price, and available stock.
Once the customer selects their items, the system calculates the total cost of the items in the cart.
The system can apply a discount to the total price if any promotions or offers are active.
The customer enters the payment amount, and the system checks if it covers the total. If the payment is sufficient, the transaction is completed, and a receipt is generated.
After the successful transaction, the system generates a receipt showing the details of the purchased items, the total price, any discounts and taxes applied, and the change
Customers can select items by their ID and specify the quantity they wish to buy. The stock of each item is checked, and if there is enough quantity, the item is added to the cart.