Browse Source

prevent extra useless second page

pull/9/head
Vincent Vinet 10 years ago
committed by Maxime Chambreuil
parent
commit
97d63a205a
  1. 8
      account_partner_aged_statement_webkit/report/partner_aged_statement.mako

8
account_partner_aged_statement_webkit/report/partner_aged_statement.mako

@ -21,10 +21,15 @@
def amount(text): def amount(text):
# replace by a non-breaking hyphen (it will not word-wrap between hyphen and numbers) # replace by a non-breaking hyphen (it will not word-wrap between hyphen and numbers)
return text.replace('-', '‑') return text.replace('-', '‑')
first = True
%> %>
<body> <body>
%for partner in objects: %for partner in objects:
<%setLang(partner.lang)%> <%setLang(partner.lang)%>
%if not first:
<div class="break"></div>
%endif
<br/> <br/>
<br/> <br/>
<%from datetime import date %> <%from datetime import date %>
@ -161,7 +166,8 @@
</table> </table>
%endif ## if getLines60(partner) %endif ## if getLines60(partner)
%endif ## if (partner.credit + partner.debit == 0 %endif ## if (partner.credit + partner.debit == 0
<div class="break"></div>
<%! first = False %>
%endfor ## for partner in objects %endfor ## for partner in objects
</body> </body>
</html> </html>
Loading…
Cancel
Save