The Discount Rules Engine for the retail store is a Scala application designed to automate the discount calculation process based on specific qualifying rules. This application reads order data from a CSV file, applies discount rules, calculates final prices, and inserts the processed data into an Oracle database.
Features:
Discount Rules: Implements various discount rules based on product types, remaining days before expiry, quantity sold, and special dates.
Database Interaction: Utilizes Oracle JDBC driver to connect to a database and insert processed order data.
Logging Mechanisms: Logs engine rule interactions and errors to a text file for debugging and auditing purposes.