diff --git a/app/routes/file_report.py b/app/routes/file_report.py index f7db588..5fa0c0f 100644 --- a/app/routes/file_report.py +++ b/app/routes/file_report.py @@ -199,7 +199,7 @@ def client_vs_all_subcontractor(): df_lay_cmp = clientBill.df_laying.merge(df_sub_lay_grp, on=["Location", "MH_NO"], how="left", suffixes=("_Client", "_Sub")) except KeyError as e: flash(f"Merge Error: Missing column {str(e)}. Check if 'Location' is defined in your database models.", "danger") - return render_template("generate_comparison_client_vs_subcont.html", tables=tables, ra_val=ra_val) + return render_template("client_report.html", tables=tables, ra_val=ra_val) # Convert to HTML for preview diff --git a/app/templates/client_report.html b/app/templates/client_report.html index edd5355..ee633c3 100644 --- a/app/templates/client_report.html +++ b/app/templates/client_report.html @@ -33,7 +33,7 @@ - {% if tables.tr or tables.mh or tables.dc %} + {% if tables.tr or tables.mh or tables.dc or tables.laying %}