Add problem report for invalid custdata
person number sequence
This commit is contained in:
parent
e838e5b514
commit
d57f18a1fe
6 changed files with 108 additions and 2 deletions
|
@ -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. This may throw off some logic which
|
||||
expects the sequence to be valid. 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 #"])}
|
Loading…
Add table
Add a link
Reference in a new issue