diff --git a/py_app/app/__pycache__/__init__.cpython-312.pyc b/py_app/app/__pycache__/__init__.cpython-312.pyc index 2262216..7f35629 100644 Binary files a/py_app/app/__pycache__/__init__.cpython-312.pyc and b/py_app/app/__pycache__/__init__.cpython-312.pyc differ diff --git a/py_app/app/__pycache__/models.cpython-312.pyc b/py_app/app/__pycache__/models.cpython-312.pyc index c5f3bca..74d422f 100644 Binary files a/py_app/app/__pycache__/models.cpython-312.pyc and b/py_app/app/__pycache__/models.cpython-312.pyc differ diff --git a/py_app/app/__pycache__/routes.cpython-312.pyc b/py_app/app/__pycache__/routes.cpython-312.pyc index 1b03b80..c3f9a40 100644 Binary files a/py_app/app/__pycache__/routes.cpython-312.pyc and b/py_app/app/__pycache__/routes.cpython-312.pyc differ diff --git a/py_app/app/__pycache__/warehouse.cpython-312.pyc b/py_app/app/__pycache__/warehouse.cpython-312.pyc new file mode 100644 index 0000000..563fc06 Binary files /dev/null and b/py_app/app/__pycache__/warehouse.cpython-312.pyc differ diff --git a/py_app/app/db_create_scripts/create_warehouse_locations_table.py b/py_app/app/db_create_scripts/create_warehouse_locations_table.py new file mode 100644 index 0000000..37e6be5 --- /dev/null +++ b/py_app/app/db_create_scripts/create_warehouse_locations_table.py @@ -0,0 +1,25 @@ +import mariadb +from app.warehouse import get_db_connection +from flask import Flask +import os + +def create_warehouse_locations_table(): + conn = get_db_connection() + cursor = conn.cursor() + cursor.execute(''' + CREATE TABLE IF NOT EXISTS warehouse_locations ( + id BIGINT AUTO_INCREMENT PRIMARY KEY, + location_code VARCHAR(12) NOT NULL UNIQUE, + size INT, + description VARCHAR(250) + ) + ''') + conn.commit() + conn.close() + +if __name__ == "__main__": + instance_path = os.path.abspath("instance") + app = Flask(__name__, instance_path=instance_path) + with app.app_context(): + create_warehouse_locations_table() + print("warehouse_locations table created or already exists.") \ No newline at end of file diff --git a/py_app/app/templates/main_page_warehouse.html b/py_app/app/templates/main_page_warehouse.html new file mode 100644 index 0000000..56dcc6e --- /dev/null +++ b/py_app/app/templates/main_page_warehouse.html @@ -0,0 +1,34 @@ +{% extends "base.html" %} + +{% block title %}Warehouse Module{% endblock %} + +{% block content %} +
+

Warehouse Module

+

This is the page for managing warehouse operations.

+ + +
+ +
+

Store Articles

+

Add or update articles in the warehouse inventory.

+ Go to Store Articles +
+ + +
+

Create Warehouse Locations

+

Define and manage storage locations in the warehouse.

+ Go to Locations +
+ + +
+

Warehouse Reports

+

View and export warehouse activity and inventory reports.

+ Go to Reports +
+
+
+{% endblock %} diff --git a/py_app/app/templates/store_articles.html b/py_app/app/templates/store_articles.html new file mode 100644 index 0000000..da0e7e7 --- /dev/null +++ b/py_app/app/templates/store_articles.html @@ -0,0 +1,6 @@ +{% extends "base.html" %} +{% block title %}Store Articles{% endblock %} +{% block content %} +

Store Articles

+

This is the Store Articles page for the warehouse module.

+{% endblock %} diff --git a/py_app/app/templates/warehouse_reports.html b/py_app/app/templates/warehouse_reports.html new file mode 100644 index 0000000..4cd5120 --- /dev/null +++ b/py_app/app/templates/warehouse_reports.html @@ -0,0 +1,6 @@ +{% extends "base.html" %} +{% block title %}Warehouse Reports{% endblock %} +{% block content %} +

Warehouse Reports

+

This is the Warehouse Reports page for the warehouse module.

+{% endblock %}