Update payroll export

This commit is contained in:
Nguyen Ngo
2025-08-22 16:57:30 -04:00
parent dd74c010d9
commit 49b222ab1f
3 changed files with 375 additions and 9 deletions
+15
View File
@@ -444,6 +444,7 @@
<form method="POST" action="{{ url_for('export_payroll_excel') }}" style="display: inline;">
<input type="hidden" name="date_from" value="{{ date_from }}">
<input type="hidden" name="date_to" value="{{ date_to }}">
<input type="hidden" name="project_filter" value="{{ project_filter }}">
<input type="hidden" name="include_travel_time" value="{{ include_travel_time|lower }}">
<input type="hidden" name="report_type" value="payroll">
<button type="submit" class="btn btn-success">
@@ -455,6 +456,7 @@
<form method="POST" action="{{ url_for('export_payroll_excel') }}" style="display: inline;">
<input type="hidden" name="date_from" value="{{ date_from }}">
<input type="hidden" name="date_to" value="{{ date_to }}">
<input type="hidden" name="project_filter" value="{{ project_filter }}">
<input type="hidden" name="include_travel_time" value="{{ include_travel_time|lower }}">
<input type="hidden" name="report_type" value="detailed">
<button type="submit" class="btn btn-secondary">
@@ -462,6 +464,19 @@
Export Detailed Hours
</button>
</form>
<form method="POST" action="{{ url_for('export_payroll_excel') }}" style="display: inline;">
<input type="hidden" name="date_from" value="{{ date_from }}">
<input type="hidden" name="date_to" value="{{ date_to }}">
<input type="hidden" name="project_filter" value="{{ project_filter }}">
<input type="hidden" name="project_filter" value="{{ request.form.get('project_filter', '') }}">
<input type="hidden" name="include_travel_time" value="{{ include_travel_time|lower }}">
<input type="hidden" name="report_type" value="template">
<button type="submit" class="btn btn-info">
<i class="fas fa-file-contract"></i>
Export Template Format
</button>
</form>
</div>
<div style="margin-top: 1rem; padding: 1rem; background: #f7fafc; border-radius: 8px; color: #4a5568; font-size: 0.9rem;">