Entering a sale into the system

  1. The program exercises/acme/sale.pl provides an interface which can be used to input data pertinent to the occurence of a sale

  2. Write a script which records the sale in the sales table

  3. Your script will also have to update the stock_item table to reduce the number of items still in stock.

  4. What happens if you try to buy/sell more items than are available? Put in a check to stop this from happening.