updated reports

This commit is contained in:
2025-09-14 19:07:36 +03:00
parent f8ce4baa7a
commit 2ab098063e
5 changed files with 1181 additions and 83 deletions

View File

@@ -16,6 +16,10 @@
<label class="report-description">Select day for daily report will export all orders scanned at quality scanning points</label>
<button class="btn report-btn" id="select-day-report">Select Day Daily Report</button>
</div>
<div class="form-centered">
<label class="report-description">Select date range for custom report - from start date 00:00 to end date 23:59</label>
<button class="btn report-btn" id="date-range-report">Date Range Report</button>
</div>
<div class="form-centered">
<label class="report-description">5-day report will export all orders scanned at quality scanning points</label>
<button class="btn report-btn" data-report="2">5-Day Complete Orders Report</button>
@@ -24,6 +28,10 @@
<label class="report-description">Report on items with quality issues for the current day</label>
<button class="btn report-btn" data-report="3">Report on Items with Defects for the Current Day</button>
</div>
<div class="form-centered">
<label class="report-description">Select specific day for quality defects report - items with quality issues</label>
<button class="btn report-btn" id="select-day-defects-report">Select Day Quality Defects Report</button>
</div>
<div class="form-centered">
<label class="report-description">Report on items with quality issues for the last 5 days</label>
<button class="btn report-btn" data-report="4">Report on Items with Defects for the Last 5 Days</button>
@@ -44,6 +52,7 @@
<div class="button-row">
<button class="btn export-btn" id="export-csv">Export CSV</button>
<!-- <button class="btn export-btn" id="export-excel">Export excell</button> -->
<button class="btn export-btn test-db-btn" id="test-database">Test Database</button>
</div>
</div>
</div>
@@ -104,5 +113,33 @@
</div>
</div>
<!-- Date Range Popup Modal -->
<div id="date-range-modal" class="modal">
<div class="modal-content">
<div class="modal-header">
<h4>Select Date Range for Report</h4>
<span class="close-modal" id="close-date-range">&times;</span>
</div>
<div class="modal-body">
<div class="date-range-container">
<div class="date-input-group">
<label for="start-date">Start Date:</label>
<input type="date" id="start-date" class="date-input" />
<small class="date-help">Report will include data from 00:00:00</small>
</div>
<div class="date-input-group">
<label for="end-date">End Date:</label>
<input type="date" id="end-date" class="date-input" />
<small class="date-help">Report will include data until 23:59:59</small>
</div>
</div>
</div>
<div class="modal-footer">
<button class="btn btn-secondary" id="cancel-date-range">Cancel</button>
<button class="btn btn-primary" id="confirm-date-range" disabled>Generate Report</button>
</div>
</div>
</div>
{% endblock %}