Download Code – Free and Open Source PHP-based Inventory Management System Source Code
Introduction to Free and Open Source Inventory Management System
In today’s competitive business world, managing your inventory efficiently is key to success. Keeping track of stock, monitoring sales, and ensuring smooth operations can be difficult without the right tools. Luckily, there are Free and Open Source Inventory Management Systems built with PHP that can improve how you manage your inventory. This article explores the benefits of using such a system and provides the PHP source code to help you streamline your inventory management.
Why is an Inventory Management System Important?
A well-organized Inventory Management System simplifies inventory control and offers many benefits to businesses:
- Real-time Stock Visibility: Monitor inventory levels in real-time to avoid running out of stock or overstocking.
- Accurate Sales Tracking: Track sales trends, identify best-selling products, and make informed business decisions.
- Order Management: Process orders faster and improve customer satisfaction.
- Cost Savings: Reduce losses from overstocking, spoilage, or theft, increasing profitability.
Advantages of Free and Open Source Inventory Management Systems
Opting for a Free and Open Source Inventory Management System offers several benefits:
- Cost-Effective: Save money by avoiding expensive licensing fees, while still having access to a customizable solution.
- Flexibility and Customization: Modify the source code to meet your specific business needs and workflows.
- Community Support: Gain assistance from a strong community of developers who actively contribute to improving and securing the system.
- Regular Updates: Stay up-to-date with new features and security fixes through regular updates.
Key Features of the PHP Inventory Management System
Our recommended PHP Inventory Management System is easy to use and offers powerful features, including:
- Product Management: Add, edit, and categorize products with descriptions, images, and stock levels.
- Inventory Tracking: Keep track of stock, set reorder points, and receive alerts when stock levels are low.
- Sales and Order Management: Efficiently process orders, create invoices, and manage sales records.
- Reporting and Analytics: Generate reports on sales, inventory levels, and profits.
- User Authentication and Access Control: Manage user accounts securely with role-based access.
How to Implement the Inventory Management System
Follow these steps to set up the Free PHP Inventory Management System:
- Download the Source Code: Download the source code (zip file) of the inventory management system and the SQL file.
- Extract Files: Extract the project folder from the zip file.
- Move to Server Directory: Copy the project folder (source code files) to your server’s htdocs directory.
- Create Database: Open localhost/phpmyadmin, create a database (make sure your PHP version is at least 7.1).
- Import Database: Import the SQL file to set up the database.
- Check Database Connection: Open the source code files and ensure the database name is correctly set.
- Log into the Admin Panel: Access the admin panel and log in using the provided credentials.
Conclusion
By using a Free and Open Source Inventory Management System in PHP, you can take control of your inventory more efficiently. With real-time stock monitoring, accurate sales tracking, and efficient order management, your business will see improved productivity and cost savings. With access to the PHP source code, you can customize the system to fit your business perfectly. Upgrade your inventory management today and take your business to new heights!
index PHP
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
<?php require_once 'inc/header.php'; ?> <?php require_once 'inc/sidebar.php'; ?> <!-- Content Wrapper. Contains page content --> <?php if (isset($_GET['page'])) { $page ='pages/' .$_GET['page'].'.php'; }else{ $page = 'pages/dashboard.php'; } if (file_exists($page)) { require_once $page; }else{ require_once 'pages/error_page.php'; } ?> <!-- Control Sidebar --> <aside class="control-sidebar control-sidebar-dark"> <!-- Control sidebar content goes here --> </aside> <!-- /.control-sidebar --> <?php require_once 'inc/footer.php'; ?> |
login PHP
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 |
<?php require_once 'app/init.php'; if ($Ouser->is_login() != false) { header("location:index.php"); } ?> <!DOCTYPE HTML> <html lang="en-us"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" href="assets/css/style.css" type='text/css' /> <link rel="stylesheet" href="assets/bootstrap/css/bootstrap.min.css" type="text/css" /> <title>Log in form</title> </head> <body> <div class="header text-center mb-5"> <div class="container-fluid"> <div class="login-form-bx"> <div class="row"> <div class="col-md-6 cards"> <div class="authincation-content"> <a class="login-logo " href=""> <img src="dist/img/log.jpg " alt="" height="200px" width="auto" > </a> <div class="mb-4"> </div> <form action="app/action/login.php" method="post"> <?php if (isset($_SESSION['login_error'])) { echo "<div class='alert alert-danger text-center'>".$_SESSION['login_error']."</div>"; } ?> <div class="form-group"> <label class="mb-2 tag"> <strong class="">Name</strong></label> <input type="text" name="username" placeholder="Enter your username"class="form-control input " required /> </div> <div class="form-group"> <label class="mb-2 tag"> <strong class="">Password</strong> </label> <input type="password" name="password" placeholder="Enter your password"class="form-control input " required/> </div> <div class="form-row d-flex justify-content-between mt-4 mb-2"> <div class="form-group"> <div class="custom-control custom-checkbox ml-1 "> <input type="checkbox" class="form-check-input" id="basic_checkbox_1"> <label class="form-check-label" for="basic_checkbox_1">Remember my preference</label> </div> </div> </div> <div class="text-center"> <button type="submit" name="admin_login" class="btn btn-primary btn-block">login</button> </div> </form> <div class="new-account mt-2 tag"> <b>If you have any requirement related to Project Development : <a href="https://mayurik.com">Click here</a></b> </p> </div> </div> </div> <div class="col-lg-6 col-md-5 d-flex box-skew1"> </div> </div> </div> </div> </div> </body> </html> |
ample SQL
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 |
-- phpMyAdmin SQL Dump -- version 5.1.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 22, 2023 at 01:04 PM -- Server version: 10.4.22-MariaDB -- PHP Version: 7.4.28 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `ample` -- -- -------------------------------------------------------- -- -- Table structure for table `catagory` -- CREATE TABLE `catagory` ( `id` int(11) NOT NULL, `name` varchar(100) DEFAULT NULL, `description` varchar(200) DEFAULT NULL, `created_by` int(2) DEFAULT NULL, `update_at` date DEFAULT NULL, `create_at` timestamp NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `catagory` -- INSERT INTO `catagory` (`id`, `name`, `description`, `created_by`, `update_at`, `create_at`) VALUES (1, 'Processors', 'A processor (CPU) is the logic circuitry that responds to and processes the basic instructions that drive a computer. The CPU is seen as the main and most crucial integrated circuitry (IC) chip in a c', 1, NULL, '2023-07-21 12:29:08'), (2, 'Motherboards', 'A motherboard (also called mainboard, main circuit board, MB, mboard, backplane board, base board, system board, mobo; or in Apple computers logic board)', 1, NULL, '2023-07-21 12:29:35'), (3, 'RAM (Memory)', 'Random-access memory is a form of computer memory that can be read and changed in any order, typically used to store working data and machine code.', 1, NULL, '2023-07-21 12:37:27'); -- -------------------------------------------------------- -- -- Table structure for table `expense` -- CREATE TABLE `expense` ( `id` int(11) NOT NULL, `ex_date` date NOT NULL, `expense_for` varchar(50) NOT NULL, `amount` float(15,2) NOT NULL DEFAULT 0.00, `expense_cat` int(10) NOT NULL, `ex_description` text NOT NULL, `added_by` int(4) DEFAULT NULL, `added_date` timestamp NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `expense` -- INSERT INTO `expense` (`id`, `ex_date`, `expense_for`, `amount`, `expense_cat`, `ex_description`, `added_by`, `added_date`) VALUES (1, '2023-07-19', 'Transport', 500.00, 1, 'order delivery', 1, '2023-07-21 12:35:30'); -- -------------------------------------------------------- -- -- Table structure for table `expense_catagory` -- CREATE TABLE `expense_catagory` ( `id` int(11) NOT NULL, `name` varchar(100) NOT NULL, `description` text NOT NULL, `added_by` int(4) NOT NULL, `added_time` timestamp NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `expense_catagory` -- INSERT INTO `expense_catagory` (`id`, `name`, `description`, `added_by`, `added_time`) VALUES (1, 'Petrol', 'Petrol for transport', 1, '2023-07-21 12:34:59'); -- -------------------------------------------------------- -- -- Table structure for table `factory_products` -- CREATE TABLE `factory_products` ( `id` int(11) NOT NULL, `product_name` varchar(255) NOT NULL, `product_id` varchar(50) NOT NULL, `brand_name` varchar(50) NOT NULL, `catagory_id` int(11) NOT NULL, `catagory_name` varchar(100) NOT NULL, `sku` varchar(50) NOT NULL, `quantity` int(10) NOT NULL, `alert_quantity` int(4) NOT NULL, `product_expense` float(15,2) NOT NULL DEFAULT 0.00, `sell_price` float(15,2) NOT NULL DEFAULT 0.00, `added_by` int(4) NOT NULL, `last_update_at` date NOT NULL, `added_time` timestamp NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `invoice` -- CREATE TABLE `invoice` ( `id` int(11) NOT NULL, `invoice_number` varchar(100) DEFAULT NULL, `customer_id` int(11) NOT NULL, `customer_name` varchar(50) DEFAULT NULL, `order_date` date DEFAULT NULL, `sub_total` float(15,2) NOT NULL DEFAULT 0.00, `discount` float(15,2) NOT NULL DEFAULT 0.00, `pre_cus_due` float(15,2) NOT NULL DEFAULT 0.00, `net_total` float(15,2) NOT NULL DEFAULT 0.00, `paid_amount` float(15,2) NOT NULL DEFAULT 0.00, `due_amount` float(15,2) NOT NULL DEFAULT 0.00, `payment_type` varchar(20) NOT NULL, `return_status` varchar(30) NOT NULL DEFAULT 'no', `last_update` date DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `invoice` -- INSERT INTO `invoice` (`id`, `invoice_number`, `customer_id`, `customer_name`, `order_date`, `sub_total`, `discount`, `pre_cus_due`, `net_total`, `paid_amount`, `due_amount`, `payment_type`, `return_status`, `last_update`) VALUES (1, 'S1689942866', 1, 'Nilesh Pandit', '2023-07-28', 9000.00, 0.00, 0.00, 9000.00, 9000.00, 0.00, 'Bank Transfer', 'no', NULL), (2, 'S1689943248', 1, 'Nilesh Pandit', '2023-07-27', 10000.00, 0.00, 0.00, 10000.00, 10000.00, 0.00, 'Debit Card', 'no', NULL); -- -------------------------------------------------------- -- -- Table structure for table `invoice_details` -- CREATE TABLE `invoice_details` ( `id` int(11) NOT NULL, `invoice_no` int(11) NOT NULL, `pid` int(11) NOT NULL, `product_name` varchar(100) NOT NULL, `price` varchar(50) NOT NULL, `quantity` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `invoice_details` -- INSERT INTO `invoice_details` (`id`, `invoice_no`, `pid`, `product_name`, `price`, `quantity`) VALUES (1, 1, 1, 'AMD Ryzen 9 5900X Processor', '9000', 2), (2, 2, 3, 'Adata XPG Gammix D30 8GB 3200MHz DDR4 CL16 RAM Memory Module', '10000', 5); -- -------------------------------------------------------- -- -- Table structure for table `member` -- CREATE TABLE `member` ( `id` int(11) NOT NULL, `member_id` varchar(50) DEFAULT NULL, `name` varchar(100) DEFAULT NULL, `company` varchar(100) DEFAULT NULL, `address` varchar(100) DEFAULT NULL, `con_num` varchar(50) DEFAULT NULL, `email` varchar(100) DEFAULT NULL, `total_buy` float(15,2) NOT NULL DEFAULT 0.00, `total_paid` float(15,2) NOT NULL DEFAULT 0.00, `total_due` float(15,2) NOT NULL DEFAULT 0.00, `reg_date` date NOT NULL, `update_by` int(8) DEFAULT NULL, `update_at` date DEFAULT NULL, `create_at` timestamp NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `member` -- INSERT INTO `member` (`id`, `member_id`, `name`, `company`, `address`, `con_num`, `email`, `total_buy`, `total_paid`, `total_due`, `reg_date`, `update_by`, `update_at`, `create_at`) VALUES (1, 'C1689940620', 'Nilesh Pandit', 'Nilesh Pandit Pvt Ltd', '2nd floor, Nikhil Pride Building, Lokmanya Bal Gangadhar Tilak Rd, near Kaka Halwai, Pune, Maharasht', '9090909090', 'nilesh@gmail.com', 19000.00, 19000.00, 0.00, '2023-07-21', 1, NULL, '2023-07-21 11:57:00'); -- -------------------------------------------------------- -- -- Table structure for table `paymethode` -- CREATE TABLE `paymethode` ( `id` int(11) NOT NULL, `name` varchar(50) DEFAULT NULL, `added_by` int(11) DEFAULT NULL, `added_time` timestamp NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `paymethode` -- INSERT INTO `paymethode` (`id`, `name`, `added_by`, `added_time`) VALUES (1, 'PhonePe', NULL, '2023-06-27 04:28:58'), (2, 'Gpay', NULL, '2023-06-27 04:29:29'), (3, 'Bank Transfer', NULL, '2023-06-27 04:29:29'), (4, 'Credit Card', NULL, '2023-06-27 04:30:08'), (5, 'Debit Card', NULL, '2023-06-27 04:30:08'); -- -------------------------------------------------------- -- -- Table structure for table `products` -- CREATE TABLE `products` ( `id` int(11) NOT NULL, `product_name` varchar(255) NOT NULL, `product_id` varchar(50) DEFAULT NULL, `brand_name` varchar(255) DEFAULT NULL, `catagory_id` int(10) NOT NULL, `catagory_name` varchar(100) DEFAULT NULL, `product_source` varchar(20) DEFAULT NULL, `sku` varchar(50) DEFAULT NULL, `quantity` int(10) DEFAULT 0, `alert_quanttity` int(3) DEFAULT NULL, `buy_price` varchar(10) DEFAULT NULL, `sell_price` varchar(10) DEFAULT NULL, `added_by` int(4) DEFAULT NULL, `last_update_at` date NOT NULL, `added_time` timestamp NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `products` -- INSERT INTO `products` (`id`, `product_name`, `product_id`, `brand_name`, `catagory_id`, `catagory_name`, `product_source`, `sku`, `quantity`, `alert_quanttity`, `buy_price`, `sell_price`, `added_by`, `last_update_at`, `added_time`) VALUES (1, 'AMD Ryzen 9 5900X Processor', 'P1689942626', 'Ryzen', 1, 'Processors', 'factory', '456AD5S', 48, 5, '3653', '4500', 1, '2023-07-27', '2023-07-21 12:30:26'), (2, 'Intel Core I5-10400 Processor', 'P1689942673', 'Intel', 1, 'Processors', 'factory', 'SDS55S', 0, 5, NULL, NULL, 1, '0000-00-00', '2023-07-21 12:31:13'), (3, 'Adata XPG Gammix D30 8GB 3200MHz DDR4 CL16 RAM Memory Module', 'P1689943120', 'XPG', 3, 'RAM (Memory)', 'factory', '2365SDSV', 0, 160, '1839', '2000', 1, '2023-07-19', '2023-07-21 12:38:40'); -- -------------------------------------------------------- -- -- Table structure for table `purchase_payment` -- CREATE TABLE `purchase_payment` ( `id` int(11) NOT NULL, `suppliar_id` int(11) DEFAULT NULL, `payment_date` date DEFAULT NULL, `payment_amount` float(15,2) NOT NULL DEFAULT 0.00, `payment_type` varchar(20) DEFAULT NULL, `pay_description` text NOT NULL, `added_by` int(4) DEFAULT NULL, `last_update` date DEFAULT NULL, `added_time` timestamp NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `purchase_payment` -- INSERT INTO `purchase_payment` (`id`, `suppliar_id`, `payment_date`, `payment_amount`, `payment_type`, `pay_description`, `added_by`, `last_update`, `added_time`) VALUES (1, 1, '2023-07-27', 180000.00, 'Gpay', '', 1, NULL, '2023-07-21 12:34:03'), (2, 1, '2023-07-19', 9195.00, 'Debit Card', '', 1, NULL, '2023-07-21 12:40:07'); -- -------------------------------------------------------- -- -- Table structure for table `purchase_products` -- CREATE TABLE `purchase_products` ( `id` int(11) NOT NULL, `product_id` int(11) DEFAULT NULL, `product_name` varchar(100) DEFAULT NULL, `purchase_date` date DEFAULT NULL, `purchase_suppliar` int(11) DEFAULT NULL, `suppliar_name` varchar(255) DEFAULT NULL, `prev_quantity` int(11) DEFAULT NULL, `purchase_quantity` int(11) DEFAULT NULL, `purchase_price` float(15,2) DEFAULT 0.00, `purchase_sell_price` float(15,2) DEFAULT 0.00, `purchase_subtotal` float(15,2) DEFAULT 0.00, `prev_total_due` float(15,2) DEFAULT 0.00, `purchase_net_total` float(15,2) DEFAULT 0.00, `purchase_paid_bill` float(15,2) DEFAULT 0.00, `purchase_due_bill` float(15,2) DEFAULT 0.00, `purchase_pamyent_by` varchar(20) DEFAULT NULL, `return_status` varchar(50) NOT NULL DEFAULT 'no', `added_by` int(4) DEFAULT NULL, `added_time` timestamp NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `purchase_products` -- INSERT INTO `purchase_products` (`id`, `product_id`, `product_name`, `purchase_date`, `purchase_suppliar`, `suppliar_name`, `prev_quantity`, `purchase_quantity`, `purchase_price`, `purchase_sell_price`, `purchase_subtotal`, `prev_total_due`, `purchase_net_total`, `purchase_paid_bill`, `purchase_due_bill`, `purchase_pamyent_by`, `return_status`, `added_by`, `added_time`) VALUES (1, 1, 'AMD Ryzen 9 5900X Processor', '2023-07-27', 1, 'Rakesh Jadhav', 0, 50, 3653.00, 4500.00, 182650.00, 500.00, 183150.00, 180000.00, 3150.00, 'Gpay', 'no', 1, '2023-07-21 12:34:03'), (2, 3, 'Adata XPG Gammix D30 8GB 3200MHz DDR4 CL16 RAM Memory Module', '2023-07-19', 1, 'Rakesh Jadhav', 0, 5, 1839.00, 2000.00, 9195.00, 3150.00, 12345.00, 9195.00, 3150.00, 'Debit Card', 'no', 1, '2023-07-21 12:40:07'); -- -------------------------------------------------------- -- -- Table structure for table `purchase_return` -- CREATE TABLE `purchase_return` ( `id` int(11) NOT NULL, `sell_id` int(11) DEFAULT NULL, `suppliar_id` int(11) DEFAULT NULL, `suppliar_name` varchar(50) NOT NULL, `return_date` date NOT NULL, `product_id` int(11) NOT NULL, `product_name` varchar(200) NOT NULL, `return_quantity` int(11) NOT NULL, `subtotal` float(15,2) NOT NULL DEFAULT 0.00, `discount` float(15,2) NOT NULL DEFAULT 0.00, `netTotal` float(15,2) NOT NULL DEFAULT 0.00, `create_by` int(4) NOT NULL, `added_date` timestamp NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `sell_payment` -- CREATE TABLE `sell_payment` ( `id` int(11) NOT NULL, `customer_id` int(11) DEFAULT NULL, `payment_date` date NOT NULL, `payment_amount` float(15,2) NOT NULL DEFAULT 0.00, `payment_type` varchar(20) NOT NULL, `pay_description` text NOT NULL, `added_by` int(4) NOT NULL, `last_update` date DEFAULT NULL, `added_time` timestamp NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `sell_payment` -- INSERT INTO `sell_payment` (`id`, `customer_id`, `payment_date`, `payment_amount`, `payment_type`, `pay_description`, `added_by`, `last_update`, `added_time`) VALUES (1, 1, '2023-07-28', 9000.00, 'Bank Transfer', '', 1, NULL, '2023-07-21 12:34:26'), (2, 1, '2023-07-27', 10000.00, 'Debit Card', '', 1, NULL, '2023-07-21 12:40:48'); -- -------------------------------------------------------- -- -- Table structure for table `sell_return` -- CREATE TABLE `sell_return` ( `id` int(11) NOT NULL, `customer_id` int(11) DEFAULT NULL, `customer_name` varchar(255) DEFAULT NULL, `invoice_id` int(11) DEFAULT NULL, `return_date` date DEFAULT NULL, `amount` float(15,2) NOT NULL DEFAULT 0.00, `added_by` int(11) DEFAULT NULL, `added_time` timestamp NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `staff` -- CREATE TABLE `staff` ( `id` int(11) NOT NULL, `name` varchar(100) DEFAULT NULL, `designation` varchar(50) DEFAULT NULL, `con_no` varchar(15) DEFAULT NULL, `email` varchar(50) DEFAULT NULL, `address` text DEFAULT NULL, `added_by` int(4) DEFAULT NULL, `added_time` timestamp NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `staff` -- INSERT INTO `staff` (`id`, `name`, `designation`, `con_no`, `email`, `address`, `added_by`, `added_time`) VALUES (1, 'Sushant Kolhe', 'Manager', '8708708702', 'sushant@gmail.com', 'besides maruti temple, Shahupuri 5th Ln, E Ward, Shahupuri, Kolhapur, Maharashtra 416001', 1, '2023-07-21 12:36:40'); -- -------------------------------------------------------- -- -- Table structure for table `suppliar` -- CREATE TABLE `suppliar` ( `id` int(11) NOT NULL, `suppliar_id` varchar(50) DEFAULT NULL, `name` varchar(100) DEFAULT NULL, `company` varchar(100) DEFAULT NULL, `address` text DEFAULT NULL, `con_num` varchar(20) NOT NULL, `email` varchar(50) NOT NULL, `total_buy` float(15,2) NOT NULL DEFAULT 0.00, `total_paid` float(15,2) NOT NULL DEFAULT 0.00, `total_due` float(15,2) NOT NULL DEFAULT 0.00, `reg_date` date DEFAULT NULL, `update_by` int(11) DEFAULT NULL, `update_at` date DEFAULT NULL, `create_at` timestamp NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `suppliar` -- INSERT INTO `suppliar` (`id`, `suppliar_id`, `name`, `company`, `address`, `con_num`, `email`, `total_buy`, `total_paid`, `total_due`, `reg_date`, `update_by`, `update_at`, `create_at`) VALUES (1, 'S1689942181', 'Rakesh Jadhav', 'Rakesh Jadhav Pvt Ltd.', 'Level 2, Hermes Palazzo, opposite St Anne\'s School, Camp, Pune, Maharashtra 411001', '7070707070', 'rakesh@gmail.com', 191845.00, 189195.00, 3150.00, '2023-07-21', 1, NULL, '2023-07-21 12:23:01'); -- -------------------------------------------------------- -- -- Table structure for table `user` -- CREATE TABLE `user` ( `id` int(11) NOT NULL, `username` varchar(50) DEFAULT NULL, `password` varchar(100) DEFAULT NULL, `user_role` varchar(10) DEFAULT NULL, `update_by` int(11) DEFAULT NULL, `last_update_at` int(11) DEFAULT NULL, `added_date` timestamp NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `user` -- INSERT INTO `user` (`id`, `username`, `password`, `user_role`, `update_by`, `last_update_at`, `added_date`) VALUES (1, 'mayuri.infospace@gmail.com', '21232f297a57a5a743894a0e4a801fc3', 'admin', 1, 0, '2023-08-24 18:00:00'); -- -- Indexes for dumped tables -- -- -- Indexes for table `catagory` -- ALTER TABLE `catagory` ADD PRIMARY KEY (`id`); -- -- Indexes for table `expense` -- ALTER TABLE `expense` ADD PRIMARY KEY (`id`); -- -- Indexes for table `expense_catagory` -- ALTER TABLE `expense_catagory` ADD PRIMARY KEY (`id`); -- -- Indexes for table `factory_products` -- ALTER TABLE `factory_products` ADD PRIMARY KEY (`id`); -- -- Indexes for table `invoice` -- ALTER TABLE `invoice` ADD PRIMARY KEY (`id`); -- -- Indexes for table `invoice_details` -- ALTER TABLE `invoice_details` ADD PRIMARY KEY (`id`), ADD KEY `invoice_no` (`invoice_no`); -- -- Indexes for table `member` -- ALTER TABLE `member` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `member_id` (`member_id`); -- -- Indexes for table `paymethode` -- ALTER TABLE `paymethode` ADD PRIMARY KEY (`id`); -- -- Indexes for table `products` -- ALTER TABLE `products` ADD PRIMARY KEY (`id`); -- -- Indexes for table `purchase_payment` -- ALTER TABLE `purchase_payment` ADD PRIMARY KEY (`id`); -- -- Indexes for table `purchase_products` -- ALTER TABLE `purchase_products` ADD PRIMARY KEY (`id`); -- -- Indexes for table `purchase_return` -- ALTER TABLE `purchase_return` ADD PRIMARY KEY (`id`); -- -- Indexes for table `sell_payment` -- ALTER TABLE `sell_payment` ADD PRIMARY KEY (`id`); -- -- Indexes for table `sell_return` -- ALTER TABLE `sell_return` ADD PRIMARY KEY (`id`); -- -- Indexes for table `staff` -- ALTER TABLE `staff` ADD PRIMARY KEY (`id`); -- -- Indexes for table `suppliar` -- ALTER TABLE `suppliar` ADD PRIMARY KEY (`id`); -- -- Indexes for table `user` -- ALTER TABLE `user` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `catagory` -- ALTER TABLE `catagory` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT for table `expense` -- ALTER TABLE `expense` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `expense_catagory` -- ALTER TABLE `expense_catagory` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `factory_products` -- ALTER TABLE `factory_products` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `invoice` -- ALTER TABLE `invoice` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `invoice_details` -- ALTER TABLE `invoice_details` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `member` -- ALTER TABLE `member` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `paymethode` -- ALTER TABLE `paymethode` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; -- -- AUTO_INCREMENT for table `products` -- ALTER TABLE `products` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT for table `purchase_payment` -- ALTER TABLE `purchase_payment` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `purchase_products` -- ALTER TABLE `purchase_products` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `purchase_return` -- ALTER TABLE `purchase_return` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `sell_payment` -- ALTER TABLE `sell_payment` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `sell_return` -- ALTER TABLE `sell_return` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `staff` -- ALTER TABLE `staff` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `suppliar` -- ALTER TABLE `suppliar` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `user` -- ALTER TABLE `user` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; |