You are on page 1of 5

Sub Problem-2

To update stock availability based on purchase


Stock Availability
Stock Availability refers to the availability of a product on
premises for use or sale.
Keeping products available is vital for one’s business. Poor
availability means dissatisfied customers which results in
poor financial performance.
Ways of monitoring stock availability include Barcode
Scanners, RFID etc.
Such technologies can be used to-
• Keep track of the number of products available for sale,
• To prevent under-stocking or over-stocking of a product,
• Quality control for certain items like food which have a
limited shelf life etc.
• Using such data one can analyze customer trends and
forecast demand.
Algorithm
Updating stock availability based on purchase-
Step 1: start
Step 2.1: Identify product using RFID tag and Barcode scanner and
check current availability in stock from the database. Say for product ‘X’
there, there are ‘N’ number of items available for sale.
Step 2.2: Check the number of items that the customer wants to buy.
Say ‘n’.
Step 2.3: Update the stock by subtracting the number of items bought
from the available stock i.e. N-n.
Step 2.4: Now with the updated stock check for under-stocking/over-
stocking.
Step 2.5.1: If product is under-stocked/over-stocked
Appropriate re-order of products must be done.
Step 2.5.2: Else
Move on to the next product the customer is purchasing.
Step 2.5.3: Else
Stop

You might also like