INVENTRY CONTROL SYSTEM WITH ONLINE TRANSACTIONS

2,152 views
2,028 views

Published on

Sunila book shop in Ambalangoda still uses a conventional system for their transaction and inventory control. Even though the Book Shop runs in large scale, manual system gets the business down.
- It requires more space, time, labour and stationery
- It is Slow and less security.
- It is difficult to update data and retrieve details
This study shows that how systematic book sales and management is important to improve its quality by giving the chance for the customer to order books online

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
2,152
On SlideShare
0
From Embeds
0
Number of Embeds
8
Actions
Shares
0
Downloads
50
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • Good morning Sir, Goodmevybody, We belong to Panorama group. And our group consists of 6 members. We all worked together in unity. Everyone contributed in max to complete the project.
  • These r the points included in our presentation.
  • The industry that we selected for our project is Royal book shop , Ambalangoda. It uses a manual system. Staff consists of 5 members.After having a discussion with the owner and the employees the owner wanted us to implement an inventory control system with online transaction.We could prepare a req doc in a week.
  • New system allows cus to buy books on line. This is how we addressed it in ERD. Related mapping part is available here. We hope to discuss it in our full mapping.As u ol can c, This shows M:N relationship. 1 cus can buy many books & 1 book can be bought by many cus. AS BOOK TITLE IS ASSIGNED ONE ISBN, COPIES HAVE SAME ISBN. SO WE ASSUME THAT1 book can be bought by many cus. And also Participation constraints r available here. Each cus has a book where as each book may not have a cus. So, Cus side dipicts Tot Par & Book side Partial par.
  • In here we consider the order as shopping cart. He can update the order. But The payments should be made on the day that order is placed. We have mentioned it as a business rule.Aftr he places the order /made the payment cus relation is auto generated. We used SL commands for that.
  • Cus is given the chance to pay on line. He can either use CC or Paypalmthed. When on mapping ,Enforce the Covering constraints – Sub classes r disjoint. They cover the super class entity. ISA relationship is total. We created two new relations for sub Cs such that all the attr of super C r added to both new relations. PK of super C becomes the PK of new relations
  • Manager wants only 2 empS touse the system. They manage the orders placed by custmS. Manager should have all the previleges.
  • The bookstore owner wants the system to be designed as such when no of book reach 10 , re order level msg is auto generated.So we added an attr as “no of books” . Whenever an transaction takes place the value is auto updated.
  • This is how we addressed analizedreq in a EERD. As u ol can c, This shows M:N relationship. 1 cus can buy many books & 1 book can be bought by many cus. AS BOOK TITLE IS ASSIGNED ONE ISBN, COPIES HAVE SAME ISBN. SO WE ASSUME THAT1 book can be bought by many cus. And also Participation constraints r available here. Each cus has a book where as each book may not have a cus. So, Cus side dipicts Tot Par & Book side Partial par.
  • We introduced some BR
  • The DBMS that we used to implement our DB is MQSQL server. Coz…………………………………?????
  • By using the Mapping? we created R schema.
  • While on mapping our db
  • Check constraint does not performed by MYSQL. So we created triggers to validate ………???
  • when no of book reach 10 , re order level msg is auto generated. So we added an attr as “no of books” . Whenever an transaction takes place the value is auto updated.
  • We created an index for book table Giving the chance to customer to search the book using Author name. Index provides customer fast access.
  • We created dif user levels for 2 empS , manager and customer. 1emp is granted Select, View, insert and update the database whlie other emp is granted view particular tables only. Screen shot? Manager is granted full authorization of the DB. For eg, Deletion should be done by the emp under permission of manager. Cus?
  • To achieve the accuracy of the data in DB, we used Domain constraints which is a type of Integrity constraints. ……..picture ……….To maintain atomicity we created a new relation called “cidcontactno”.
  • Enforce the Covering constraints – Sub classes r disjoint. They cover the super class entity. ISA relationship is total. We created two new relations for sub Cs such that all the attr of super C r added to both new relations. PK of super C becomes the PK of new relations
  • INVENTRY CONTROL SYSTEM WITH ONLINE TRANSACTIONS

    1. 1. No Registration No Name 1 MMW/13/B1/14 K.K.M.Kodithuwakku 2 SOF/13/B1/18 I.P.S.Siriwardana 3 SOF/13/B1/21 E.M.K.Udayakanthi 4 SOF/13/B1/27 H.G.S.K.Wijenayaka 5 SOF/13/B1/07 H.A.V.Nishshanka 6 SOF/13/B1/16 H.M.P.Renuka
    2. 2.  Introduction  Requirements Analysis  Conceptual Database Design • • • • EER diagram Mapping Integrity constraints Business rules  Logical Database Design • Choosing a DBMS and Relational schema  Schema Refinement • Normalization
    3. 3.  Physical Database Design • • • • • Workload Analysis Creating tables Creating triggers Creating indexes Creating views  Security Design • Creating user levels and privileges  References  Q&A
    4. 4. Royal book shop in Ambalangoda still uses a conventional system for their transaction and inventory control. Even though the Book Shop runs in large scale, manual system gets the business down. - It requires more space, time, labour and stationery - It is Slow and less security. - It is difficult to update data and retrieve details This study shows that how systematic book sales and management is important to improve its quality by giving the chance for the customer to order books online.
    5. 5. • Order books online • Customer should be able to update the order • Online payment methods. • Various user levels and privileges. • Online stock control • Security levels and policies
    6. 6. Order books online
    7. 7. Customer should be able to update order
    8. 8. Online payment methods
    9. 9. Various user levels and privileges
    10. 10. Online stock control .
    11. 11. • Transactions can be done by the customers only in Sri Lanka. • 10%discount is given from total price for literary month • New entries are entered at the end of month. • The payments should be made on the day that order is placed.
    12. 12. Steps
    13. 13. Book (ISBN:CHAR(18), title:VARCHAR(60), author:VARCHAR(45) ,price:FLOAT, noofbooks:INT(11), category:VARCHAR(45)) Customer(CID:INT(11), name:VARCHAR(30), contactno:CHAR(13), email:VARCHAR(30), city:VARCHAR(15), loggpassword:VARCHAR(30), number:INT, street:VARCHAR(15)) BookCustomer(ISBN:VARCHAR(20), CID:INT(11))
    14. 14. Order(OID:INT(11), quantity:INT, dateCreated:DATE, bookName:VARCHAR(20), EmpID:INT(11)) Employee(EmpID:INT(11), name:VARCHAR(20)) Credit Card(paymentID:INT(11),CCN:CHAR(16), name:VARCHAR(30), date:DATE, type:VARCHAR(45), pinNumber:INT(16)) Paypal(paymentID:INT(11), email:VARCHAR(30), password:VARCHAR(30))
    15. 15. Query/Function Delimiter$$ If Char_ length(ISBN)!=14 then Signal SQL state ‘1200’ Set message.Text= ‘Invalid ISBN’; End if End$$ Delimiter Delimiter$$ If (Quantity)<10 then Signal SQL state ‘1200’ Set message.Text= ‘!!Alert Book Order; End if End$$ Delimiter Affected table Table data amount Affected attribute Book ISBN=14 ISBN Book Order 10< decrement How often Index required or not High Yes (Based on Title, Author) No_of_Books INSERT INTO Book VALUES(“ Book “) All the attributes in the Book table No One month Yes. Based on category
    16. 16. UPDATE Book set price=“ ” Where update price Price Book One month Yes. Based on category high Book No Price, Quantity, set `final_price` = `price` * (select ifnull(Quentity) from Product where .Order_ID= Order.Order_ID; varies Order Total price
    17. 17.  To check ISBN
    18. 18.  For re order level
    19. 19.  User Access Control User Privilege Administrator (Manager) All the privileges of the database Employee 1(Clerk1) Select, View, insert and update the database Employee 2 (Clerk2) View tables (book and customer tables)
    20. 20.  Sensitive Data and Secure connection (Credit card Number, PIN and PayPal password ) Encrypt the password and PIN  Get SSL certificate for the web site  Crash Recovery Take a dump file (backup) of the database  Email policy Send a code to user’s email to verify the user’s mail account.
    21. 21.  SQL Injection Install Firewalls and intrusion detection mechanisms. Patch server database, programming language (php) and operating system (windows server 2008)  Third Party Connection In order to get the payment facility Our database should be connected to a third party.  Data Governance
    22. 22. http://stackoverflow.com/questions http://www.cs.duke.edu/csl/docs/mysqlrefman/triggers.html https://academy.oracle.com/oa-web-overview.html https://www.mdgunasena.com https://www.deweydecimal.com
    23. 23.  Mapping Regular Entities
    24. 24.  Mapping Supertype/Subtype relationship Credit Card disjoint Paypal
    25. 25.  Mapping Binary Relationships 1:M Relationship
    26. 26.  Mapping Binary Relationships cont…
    27. 27.  Mapping Binary Relationships cont… 1:1 Relationship
    28. 28.  Mapping Binary Relationships cont… Back M:N Relationship

    ×