formatting

This commit is contained in:
Frederik Jaeckel 2023-06-30 15:31:47 +02:00
parent 28a96bc7c9
commit 740b1e57d9

View file

@ -122,9 +122,11 @@ class Invoice(Invoice):
os.path.join(os.path.dirname(__file__), 'template'), os.path.join(os.path.dirname(__file__), 'template'),
auto_reload=True) auto_reload=True)
if self.type_code in ['380', '389']: 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']: 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: else:
raise ValueError('invalid type-code "%s"' % self.type_code) raise ValueError('invalid type-code "%s"' % self.type_code)
else: else: