formatting
This commit is contained in:
parent
192a93fd7c
commit
a2e1ef6664
3 changed files with 6 additions and 14 deletions
|
@ -49,7 +49,7 @@ class Invoice(Invoice):
|
|||
|
||||
if self.invoice.comment:
|
||||
notes.extend(self.invoice.comment.split('\n'))
|
||||
if len(notes) > 0:
|
||||
if notes:
|
||||
return '; '.join(notes)
|
||||
|
||||
def invoice_line_tax(self, line):
|
||||
|
@ -75,10 +75,7 @@ class Invoice(Invoice):
|
|||
def taxident_data(self, tax_identifier):
|
||||
""" get tax-scheme-id and codes
|
||||
"""
|
||||
result = {
|
||||
'code': None,
|
||||
'id': None,
|
||||
}
|
||||
result = {'code': None, 'id': None}
|
||||
|
||||
if tax_identifier:
|
||||
if tax_identifier.type == 'de_vat':
|
||||
|
@ -120,7 +117,7 @@ class Invoice(Invoice):
|
|||
def quote_text(self, text):
|
||||
""" replace critical chars
|
||||
"""
|
||||
if text is not None:
|
||||
if text:
|
||||
return html.quote(text)
|
||||
|
||||
def _get_template(self, version):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue