Fix: Remove duplicate client_id parameter in url_for call

- Fixed TypeError: jinja2.runtime.Context.call() got multiple values for keyword argument 'client_id'
- Removed explicit client_id=client.client_id from url_for call since it's already in **filters
- This fixes the template rendering error on the reports page
parent 25fd8462
...@@ -255,7 +255,7 @@ ...@@ -255,7 +255,7 @@
<td class="text-end">{{ "{:,.2f}".format(client.cap_balance) }}</td> <td class="text-end">{{ "{:,.2f}".format(client.cap_balance) }}</td>
<td class="text-end">{{ "{:,.2f}".format(client.accumulated_shortfall) }}</td> <td class="text-end">{{ "{:,.2f}".format(client.accumulated_shortfall) }}</td>
<td> <td>
<a href="{{ url_for('main.client_report_detail', client_id=client.client_id, **filters) }}" class="btn btn-sm btn-info"> <a href="{{ url_for('main.client_report_detail', **filters) }}" class="btn btn-sm btn-info">
<i class="fas fa-eye"></i> View Details <i class="fas fa-eye"></i> View Details
</a> </a>
</td> </td>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment