├── destroy.php
├── connection
└── connection.php
├── README.md
├── css
├── styleOld.css
├── headerFooter.css
├── storeFetch.css
└── style.css
├── LICENSE
├── js
├── buttons.print.min.js
├── parallax.min.js
├── dataTables.select.min.js
├── dataTables.buttons.min.js
├── popper.min.js
└── buttons.html5.min.js
├── index.php
├── home.html
├── help.html
├── adminHelp.html
├── addScheme.php
├── db
├── db-without-dummy-data.sql
└── db-with-dummy-data.sql
├── addDepartment.php
├── addItem.php
├── addVendor.php
├── stockReceive.php
├── stockIssue.php
├── stockIssueForm.php
├── stockReceiveForm.php
└── viewReceived.php
/destroy.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/connection/connection.php:
--------------------------------------------------------------------------------
1 | alert("Connection Failure")';
5 | }
6 | ?>
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Store-Inventory-Management
2 | This is a simple Inventory Management web based software. This project uses php as server side language and html, css, js and some css and js frameworks for front-end. This project is made for organisatins, institutes and colleges to made the inventory management easy and automated from traditional paper to computer.
3 |
4 | # Features
5 | Store-Inventory-Management provides a bunch of features like taking print out of all the entries of inventory. This project is latest and user can use features like managing Bills along with GST(Goods and Services Tax). A user manual is also there for user to understand the project.
6 |
7 | # Upcoming Features
8 | Store-Inventory-Management is supposed to merged with Aysnchronous programming to enhance the user experience. Apart from this, project will be using single page principal of Asynchronous programmin soon. Get in touch and help to get better.
9 |
--------------------------------------------------------------------------------
/css/styleOld.css:
--------------------------------------------------------------------------------
1 | body {
2 | background-color:rgba(0,0,0,0.1);
3 | }
4 | .login-one-form {
5 | transform:translate(-50%, -50%);
6 | top:50%;
7 | max-width:350px;
8 | width:350px;
9 | left:50%;
10 | background-color:#fff;
11 | padding:30px;
12 | padding-right: 45px;
13 | border-radius:5px;
14 | position:absolute;
15 | box-shadow:2px 2px 4px rgba(0,0,0,0.2);
16 | }
17 | .login-one-ico {
18 | padding:0px;
19 | font-size:50px;
20 | text-align:center;
21 | }
22 |
23 | .form-group {
24 | text-align:center;
25 | }
26 |
27 | #input {
28 | margin:10px;
29 |
30 | }
31 | #input:focus {
32 | box-shadow: 0px 0px 3px #ee6e73;
33 | border:1px solid transparent;
34 |
35 | }
36 |
37 | #button {
38 | width:100%;
39 | margin:10px;
40 | background-color:#ee6e73;
41 | border: none;
42 | box-shadow: 0px 0px 3px #ee6e73;
43 | }
44 |
45 | #heading {
46 | padding-bottom:10px;
47 | }
48 |
49 | #or{
50 | font-size: 14px;
51 | font-weight: bolder;
52 | }
53 | #guest{
54 | background-color: transparent;
55 | border: none;
56 | cursor: pointer;
57 | }
58 | #guest i{
59 | font-size: 60px;
60 | }
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2019 Amanjot Singh
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/css/headerFooter.css:
--------------------------------------------------------------------------------
1 | body {
2 | margin: 0;
3 | font-family: Segoe UI;
4 | width:100vw;
5 | overflow-x: hidden;
6 | }
7 | .topnav {
8 | overflow: hidden;
9 | background-color: #000;
10 | position: fixed;
11 | top: 0;
12 | width: 100%;
13 | z-index: 9999999;
14 | }
15 | .topnav button{
16 | margin-top:-6px;
17 | }
18 | .topnav a{
19 | float: left;
20 | display: block;
21 | color: #f2f2f2;
22 | text-align: center;
23 | padding: 16px 16px;
24 | text-decoration: none !important;
25 | font-size: 17px;
26 | margin-bottom:-8px;
27 | }
28 |
29 | .topnav a:hover:not(:nth-child(2)) {
30 | background-color: #007BFF;
31 | color: black;
32 | }
33 |
34 | .topnav a:not(:first-child) {
35 | position: relative;
36 | float:right;
37 |
38 | }
39 |
40 |
41 | .topnav .icon {
42 | display: none;
43 | }
44 | @media screen and (max-width: 600px) {
45 | .topnav a:not(:first-child) {display: none;}
46 | .topnav a.icon {
47 | float: right;
48 | display: block;
49 | }
50 | }
51 |
52 | @media screen and (max-width: 600px) {
53 | .topnav.responsive {position: fixed;}
54 | .topnav.responsive .icon {
55 | position: absolute;
56 | right: 0;
57 | top: 0;
58 | }
59 | .topnav.responsive a {
60 | float: none;
61 | display: block;
62 | text-align: left;
63 | }
64 | }
65 |
66 |
67 |
68 | .copyft{
69 | position: relative;
70 | width: 100vw;
71 | height: 40px;
72 | background-color:#333;
73 | bottom: 0px;
74 | }
75 |
76 | .copyft2{
77 | color: #FFF;
78 | position: relative;
79 | top: 10px;
80 | left:30px;
81 | }
82 |
83 | @media screen and (max-width: 600px){
84 | .copyft{
85 |
86 | font-size: 14px;
87 | }
88 | }
89 | @media screen and (max-width: 600px){
90 | .copyft2{
91 | left:15px;
92 | }
93 | }
--------------------------------------------------------------------------------
/js/buttons.print.min.js:
--------------------------------------------------------------------------------
1 | (function(c){"function"===typeof define&&define.amd?define(["jquery","datatables.net","datatables.net-buttons"],function(f){return c(f,window,document)}):"object"===typeof exports?module.exports=function(f,b){f||(f=window);if(!b||!b.fn.dataTable)b=require("datatables.net")(f,b).$;b.fn.dataTable.Buttons||require("datatables.net-buttons")(f,b);return c(b,f,f.document)}:c(jQuery,window,document)})(function(c,f,b,n){var i=c.fn.dataTable,e=b.createElement("a"),m=function(a){e.href=a;a=e.host;-1===a.indexOf("/")&&
2 | 0!==e.pathname.indexOf("/")&&(a+="/");return e.protocol+"//"+a+e.pathname+e.search};i.ext.buttons.print={className:"buttons-print",text:function(a){return a.i18n("buttons.print","Print")},action:function(a,b,e,h){var a=b.buttons.exportData(c.extend({decodeEntities:!1},h.exportOptions)),e=b.buttons.exportInfo(h),i=c.map(b.settings()[0].aoColumns,function(b){return b.sClass}),k=function(b,a){for(var d="
",c=0,e=b.length;c"+(null===b[c]||b[c]===n?
3 | "":b[c])+""+a+">";return d+" "},d='';h.header&&(d+=""+k(a.header,"th")+" ");for(var d=d+"",l=0,o=a.body.length;l";h.footer&&a.footer&&(d+=""+k(a.footer,"th")+" ");var d=d+"
",g=f.open("","");g.document.close();var j=""+e.title+" ";c("style, link").each(function(){var b=j,a=c(this).clone()[0];"link"===a.nodeName.toLowerCase()&&(a.href=m(a.href));j=b+a.outerHTML});
4 | try{g.document.head.innerHTML=j}catch(p){c(g.document.head).html(j)}g.document.body.innerHTML=""+e.title+" "+(e.messageTop||"")+"
"+d+""+(e.messageBottom||"")+"
";c(g.document.body).addClass("dt-print-view");c("img",g.document.body).each(function(b,a){a.setAttribute("src",m(a.getAttribute("src")))});h.customize&&h.customize(g,h,b);g.setTimeout(function(){h.autoPrint&&(g.print(),g.close())},1E3)},title:"*",messageTop:"*",messageBottom:"*",exportOptions:{},header:!0,footer:!1,
5 | autoPrint:!0,customize:null};return i.Buttons});
6 |
--------------------------------------------------------------------------------
/index.php:
--------------------------------------------------------------------------------
1 |
5 |
6 |
7 |
8 | Store Management(STC)
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 | Store Management (STC)
23 |
25 |
26 |
27 |
34 |
35 |
36 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
--------------------------------------------------------------------------------
/css/storeFetch.css:
--------------------------------------------------------------------------------
1 | .h3{
2 | font-size:20px !important;
3 | }
4 | a{
5 | text-decoration: none !important;
6 |
7 | }
8 | input[type="search"]{
9 | display: block;
10 | width: 100%;
11 | padding: 0.375rem 0.75rem;
12 | font-size: 1rem;
13 | line-height: 1.5;
14 | color: #495057;
15 | background-color: #fff;
16 | background-clip: padding-box;
17 | border: 1px solid #ced4da;
18 | border-radius: 0.25rem;
19 | transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
20 | }
21 | input[type="search"]:focus {
22 | color: #495057;
23 | background-color: #fff;
24 | border-color: #80bdff;
25 | outline: 0;
26 | box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
27 | }
28 | .dt-button{
29 | position: absolute;
30 | display: inline-block;
31 | font-weight: 400;
32 | text-align: center;
33 | border: 1px solid transparent;
34 | padding: 0.375rem 0.75rem;
35 | font-size: 1rem;
36 | line-height: 1.5;
37 | border-radius: 0.25rem;
38 | transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
39 | color: #fff;
40 | background-color: #007BFF;
41 | }
42 | .buttons-copy{
43 | left: 0;
44 | }
45 | .buttons-excel{
46 | left: 63px;
47 | }
48 | .buttons-pdf{
49 | left: 125px;
50 | }
51 | .buttons-print{
52 | left: 180px;
53 | }
54 | .dt-button:hover {
55 | color: #fff;
56 | border-color: #545b62;
57 | }
58 |
59 | .dt-button:focus, .dt-button.focus {
60 | box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.5);
61 | }
62 | /* */
63 |
64 | .masterFetch{
65 | display:grid;
66 | grid-template-rows:auto 1fr auto;
67 | }
68 | .enthead {
69 | display: grid;
70 | grid-row:1/2;
71 | grid-template-columns: repeat(3, 1fr);
72 | grid-template-rows: repeat(2, 70px)
73 | }
74 | .entbuttons {
75 | grid-column: 2/3;
76 | grid-row: 2/3;
77 | margin: auto;
78 | }
79 | .entactive {
80 | font-size: 20px !important;
81 | }
82 | .fetchContAll{
83 | display: grid;
84 | grid-row:2/3;
85 | grid-template-rows: 1fr auto;
86 | grid-template-columns: 3fr 4fr 4fr 3fr;
87 | padding-top: 20px;
88 | padding-bottom: 20px;
89 | }
90 | .deptcontent2{
91 | grid-column: 2/3;
92 | }
93 |
94 | .entbtn {
95 | width: 100px;
96 | }
97 | .tableView{
98 | display: grid;
99 | grid-column: 1/5;
100 | grid-row:3/4;
101 | grid-template-columns: 1fr minmax(auto,auto) 1fr;
102 | height: auto;
103 | }
104 | .tableGridContent{
105 | grid-column: 2/3;
106 | }
107 | @media screen and (max-width:768px){
108 | .enthead {
109 | display: grid;
110 | grid-template-columns: 1fr;
111 | width: 100%;
112 | }
113 | .entbuttons {
114 | grid-column: 1/2;
115 | margin: auto;
116 | }
117 | .entactive {
118 | font-size: 20px;
119 | }
120 | }
121 | .fetchContRecieve{
122 | display: grid;
123 | grid-template-columns: 1fr minmax(auto,auto) 1fr;
124 | padding-bottom: 30px;
125 | padding-top: 30px;
126 | }
127 | .fetchContIssue{
128 | display: grid;
129 | grid-template-columns: 1fr minmax(auto,auto) 1fr;
130 | padding-bottom: 30px;
131 | padding-top: 30px;
132 | }
133 | .viewRecieved{
134 | grid-column: 2/3;
135 | }
136 | .viewIssued{
137 | grid-column: 2/3;
138 | }
--------------------------------------------------------------------------------
/home.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | Store Management(STC)
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
39 |
40 |
41 |
42 |
43 |
44 | Store Management (STC)
45 |
47 |
48 |
49 |
79 |
80 |
81 |
82 |
83 |
Welcome Admin!
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
--------------------------------------------------------------------------------
/help.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | Help
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
33 |
34 |
35 |
36 |
37 |
38 | Store Management (STC)
39 |
41 |
42 |
43 |
73 |
74 |
75 |
76 |
77 |
78 |
User guide for Store Management
79 |
Stock Entry
80 |
Stock Receive
81 |
This option is used to enter any bill entry received from the vendor. This page will show the list of category and schemes then after selecting the options the form for receiving
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
--------------------------------------------------------------------------------
/adminHelp.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | Help
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
33 |
34 |
35 |
36 |
37 |
38 | Store Management (STC)
39 |
41 |
42 |
43 |
73 |
74 |
75 |
76 |
77 |
78 |
User guide for Store Management
79 |
Stock Entry
80 |
Stock Receive
81 |
This option is used to enter any bill entry received from the vendor. This page will show the list of category and schemes then after selecting the options the form for receiving
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
--------------------------------------------------------------------------------
/css/style.css:
--------------------------------------------------------------------------------
1 | body{
2 | background: #eeeeee !important;
3 | }
4 | .head{
5 | font-size: 18px !important;
6 | }
7 | .content {
8 | padding: 20px;
9 | min-height: 100%;
10 | margin: 0 auto -50px;
11 | }
12 | .footer{
13 | height: 50px;
14 | background: dodgerblue;
15 | }
16 | .push {
17 | height: 50px;
18 | }
19 | .navbar-toggler, .navbar-toggler-icon
20 | {
21 | border:0px !important;
22 | outline:0px !important;
23 | }
24 |
25 | /* Form issuing and receiving */
26 |
27 |
28 | .enthead {
29 | display: grid;
30 | grid-template-columns: repeat(3, 1fr);
31 | grid-template-rows: repeat(2, 70px);
32 | }
33 | .entbuttons {
34 | grid-column: 2/3;
35 | grid-row: 2/3;
36 | margin: auto;
37 | }
38 | .entmainndi {
39 | display: grid;
40 | height: 100vh;
41 | width: 100vw;
42 | grid-template-rows: 1fr minmax(500px, 550px) 1fr;
43 | grid-template-columns: 1fr minmax(500px, 600px) 1fr;
44 | }
45 | #entformarea {
46 | height:550px;
47 | display: grid;
48 | grid-row: 2/3;
49 | grid-column: 2/3;
50 | grid-template-columns: repeat(2, 1fr);
51 | grid-template-rows: repeat(6, 1fr);
52 | }
53 | .entform-group {
54 | width: 250px;
55 | height: 10px;
56 | }
57 | .entform-group:nth-child(even) {
58 | grid-column: 2/3;
59 | }
60 | .entform-group:nth-child(odd) {
61 | grid-column: 1/2;
62 | }
63 | .entform-group:nth-child(9) {
64 | grid-column: 1/3;
65 | grid-row: 5/6;
66 | margin-left: auto;
67 | margin-right: auto;
68 | }
69 | #entformsubb {
70 | grid-row: 6/7;
71 | grid-column: 1/3;
72 | width: 200px;
73 | height: 38px;
74 | margin: auto;
75 | }
76 | .entactive {
77 | font-size: 20px;
78 | }
79 | .entbtn {
80 | width: 100px;
81 | }
82 | .entselect {
83 | width: 250px;
84 | }
85 | .entselect select {
86 | border: 2px solid #0069D9;
87 | color: #0069D9;
88 | }
89 | .entselect select:focus {
90 | border: 2px solid #0069D9;
91 | color: #0069D9;
92 | }
93 | .entselect select option {
94 | background: #fff;
95 | color: #0069D9;
96 | }
97 | legend{
98 | text-align: center;
99 | grid-column: 2/3;
100 | }
101 | @media screen and (max-width:768px){
102 | .enthead {
103 | display: grid;
104 | grid-template-columns: 1fr;
105 | width: 100%;
106 | }
107 | .entbuttons {
108 | grid-column: 1/2;
109 | margin: auto;
110 | }
111 | .entmainndi {
112 | display: grid;
113 | height: 100vh;
114 | width: 100vw;
115 | grid-template-rows: 1fr minmax(300px, 650px);
116 | grid-template-columns: 1fr minmax(300px, 500px) 1fr;
117 | }
118 | #entformarea {
119 | display: grid;
120 | grid-row: 2/3;
121 | grid-column: 2/3;
122 | grid-template-columns: 1fr 1fr 1fr;
123 | grid-template-rows: repeat(8, minmax(85px,150px));
124 | }
125 | .entform-group {
126 | width: 250px;
127 | height: 10px;
128 | }
129 | .entform-group:nth-child(even) {
130 | grid-column: 2/3;
131 | }
132 | .entform-group:nth-child(odd) {
133 | grid-column: 2/3;
134 | }
135 | .entform-group:nth-child(9) {
136 | grid-column: 2/3;
137 | grid-row: 7/8;
138 | margin-left: auto;
139 | margin-right: auto;
140 | }
141 | #entformsubb {
142 | grid-row: 8;
143 | grid-column: 2/3;
144 | width: 200px;
145 | height: 38px;
146 | margin: auto;
147 | }
148 | .entactive {
149 | font-size: 20px;
150 | }
151 | .entbtn {
152 | width: 100px;
153 | }
154 | .entselect {
155 | width: 250px;
156 | grid-row: 6/7;
157 | grid-column: 2/3;
158 | }
159 | .entdept {
160 | grid-row: 7/8;
161 | grid-column: 2/3;
162 | }
163 | .entselect select {
164 | border: 2px solid #0069D9;
165 | color: #0069D9;
166 | }
167 | .entselect select:focus {
168 | border: 2px solid #0069D9;
169 | color: #0069D9;
170 | }
171 | .entselect select option {
172 | background: #fff;
173 | color: #0069D9;
174 | }
175 | legend{
176 | text-align: center;
177 | grid-column: 2/3;
178 | }
179 | }
180 | #timing{
181 | width:250px;
182 | margin:0;
183 | }
184 |
185 | /* form issuing and receiveing end */
186 |
187 | body {
188 | background-color:rgba(0,0,0,0.1);
189 | }
190 | .login-one-form {
191 | transform:translate(-50%, -50%);
192 | top:50%;
193 | max-width:350px;
194 | width:350px;
195 | left:50%;
196 | background-color:#fff;
197 | padding:30px;
198 | padding-right: 45px;
199 | border-radius:5px;
200 | position:absolute;
201 | box-shadow:2px 2px 4px rgba(0,0,0,0.2);
202 | }
203 | .login-one-ico {
204 | padding:0px;
205 | font-size:50px;
206 | text-align:center;
207 | }
208 |
209 | .form-group {
210 | text-align:center;
211 | }
212 |
213 | #input {
214 | margin:10px;
215 |
216 | }
217 | #input:focus {
218 | box-shadow: 0px 1px 4px rgba(0, 123, 255, 0.815);
219 | border:1px solid transparent;
220 |
221 | }
222 |
223 | #button {
224 | width:100%;
225 | margin:10px;
226 | border: none;
227 | }
228 |
229 | #heading {
230 | padding-bottom:10px;
231 | }
232 |
233 | #or{
234 | font-size: 14px;
235 | font-weight: bolder;
236 | }
237 | #guest{
238 | background-color: transparent;
239 | border: none;
240 | cursor: pointer;
241 | }
242 | #guest i{
243 | font-size: 60px;
244 | }
--------------------------------------------------------------------------------
/addScheme.php:
--------------------------------------------------------------------------------
1 |
7 |
8 |
9 |
10 |
11 | Insert
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
45 |
46 |
47 |
48 |
49 | Store Management (STC)
50 |
52 |
53 |
54 |
97 |
98 |
99 |
141 |
142 |
143 |
144 |
145 |
156 |