A smart POS system for pharmacies that assists them in optimizing their sales and purchasing decisions by suggesting alternative products, and assessing stock levels and historical data. In addition to the usual features, the POS also helps pharmacies avoid selling drugs that might cause dangerous side effects or interactions.