formatting
This commit is contained in:
parent
28a96bc7c9
commit
740b1e57d9
1 changed files with 6 additions and 4 deletions
|
@ -122,9 +122,11 @@ class Invoice(Invoice):
|
|||
os.path.join(os.path.dirname(__file__), 'template'),
|
||||
auto_reload=True)
|
||||
if self.type_code in ['380', '389']:
|
||||
return loader.load(os.path.join(version, 'XRechnung_invoice.xml'))
|
||||
return loader.load(os.path.join(
|
||||
version, 'XRechnung_invoice.xml'))
|
||||
elif self.type_code in ['381', '261']:
|
||||
return loader.load(os.path.join(version, 'XRechnung_credit.xml'))
|
||||
return loader.load(os.path.join(
|
||||
version, 'XRechnung_credit.xml'))
|
||||
else:
|
||||
raise ValueError('invalid type-code "%s"' % self.type_code)
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue