Add problem report for invalid custdata person number sequence

This commit is contained in:
Lance Edgar 2023-06-02 14:16:20 -05:00
parent e838e5b514
commit d57f18a1fe
6 changed files with 108 additions and 2 deletions

View file

@ -0,0 +1,24 @@
## -*- coding: utf-8; -*-
<%inherit file="/base_problems.html.mako" />
<%def name="summary()">
<p>
There are ${len(problems)} customer records which have unexpected
person number sequence.&nbsp; This may throw off some logic which
expects the sequence to be valid.&nbsp; Please investigate and fix
at your convenience.
</p>
</%def>
<%def name="simple_row(obj, i)">
<% customer, expected_person_number = obj %>
<tr>
<td>${customer.card_number}</td>
<td>${customer.first_name}</td>
<td>${customer.last_name}</td>
<td>${expected_person_number}</td>
<td>${customer.person_number}</td>
</tr>
</%def>
${self.simple_table(["Card #", "First Name", "Last Name", "Expected Person #", "Current Person #"])}