178 | | self.printVar(_("Invoice"), "#%s" % invoicenumber, 22) |
179 | | self.printVar(_("Username"), entry.Name, 22) |
180 | | self.ypos -= 20 |
181 | | if start : |
182 | | self.printVar(_("Since"), start, 14) |
183 | | if end : |
184 | | self.printVar(_("Until"), end, 14) |
185 | | self.printVar(_("Edited on"), time.strftime("%c", time.localtime()), 14) |
186 | | |
187 | | self.ypos -= 20 |
188 | | # self.printVar(_("Number of bytes"), str(numberofbytes), 14) |
189 | | self.printVar(_("Number of pages printed"), str(numberofpages), 14) |
190 | | self.ypos -= 20 |
191 | | self.printVar(_("Amount due"), "%.2f %s" % (amount, unitname), 22) |
192 | | if vat : |
193 | | self.ypos += 8 |
194 | | self.printVar("%s (%.2f%%)" % (_("Included VAT"), vat), "%.2f %s" % (vatamount, unitname), 14) |
195 | | self.canvas.showPage() |
196 | | return 1 |
| 178 | self.printVar(_("Invoice"), "#%s" % invoicenumber, 22) |
| 179 | self.printVar(_("Username"), entry.Name, 22) |
| 180 | self.ypos -= 20 |
| 181 | if start : |
| 182 | self.printVar(_("Since"), start, 14) |
| 183 | if end : |
| 184 | self.printVar(_("Until"), end, 14) |
| 185 | self.printVar(_("Edited on"), time.strftime("%c", time.localtime()), 14) |
| 186 | |
| 187 | self.ypos -= 20 |
| 188 | # self.printVar(_("Number of bytes"), str(numberofbytes), 14) |
| 189 | self.printVar(_("Number of pages printed"), str(numberofpages), 14) |
| 190 | self.ypos -= 20 |
| 191 | self.printVar(_("Amount due"), "%.2f %s" % (amount, unitname), 22) |
| 192 | if vat : |
| 193 | self.ypos += 8 |
| 194 | self.printVar("%s (%.2f%%)" % (_("Included VAT"), vat), "%.2f %s" % (vatamount, unitname), 14) |
| 195 | self.canvas.showPage() |
| 196 | return 1 |