import cross-industry-invoice-d22

This commit is contained in:
Frederik Jaeckel 2025-01-23 11:43:11 +01:00
parent 83bb948e78
commit 48385f9250
3 changed files with 261 additions and 7 deletions

View file

@ -7,6 +7,86 @@
from decimal import Decimal
from datetime import date
parsed_data_ci_invoice = {
'buyer_party': {
'city': 'Potsdam',
'name': 'Our Company',
'postal_code': '23456',
'street': 'Address Line 1\nAddress Line 2'},
'invoice_date': date(2024, 6, 17),
'invoice_number': 'RE2024.01234',
'lines_data': [{
'taxes': [{
'type': 'VAT',
'percent': Decimal('19.00'),
'category_code': 'S'}],
'total': {'amount': Decimal('1350.00')},
'line_no': '1',
'quantity': {
'billed': Decimal('1.0'),
'unit_code': 'KGM'},
'unit_net_price': {'amount': Decimal('1350.00')},
}, {
'taxes': [{
'type': 'VAT',
'percent': Decimal('19.00'),
'category_code': 'S'}],
'total': {'amount': Decimal('1200.00')},
'line_no': '2',
'quantity': {
'billed': Decimal('1.5'),
'unit_code': 'KGM'},
'unit_net_price': {'amount': Decimal('800.00')},
}, {
'taxes': [{'percent': Decimal('7.00')}],
'total': {'amount': Decimal('300.00')},
'line_no': '3',
'quantity': {
'billed': Decimal('2.0'),
'unit_code': 'MTR'},
'unit_net_price': {'amount': Decimal('150.00')}}],
'note_list': [{
'Content': 'Description of invoice',
'ContentCode': None,
'SubjectCode': None,
}, {
'Content': 'Some notes to the customer.',
'ContentCode': '1',
'SubjectCode': None,
}, {
'Content': 'Goes to field comment.',
'ContentCode': '22',
'SubjectCode': '42'}],
'payment': {
'bank': [{'type': '1'}],
'currency': 'EUR',
'reference': 'RE2024.01234',
'taxes': [{
'base': Decimal('2550.00'),
'type': 'VAT',
'amount': Decimal('484.50'),
'percent': Decimal('19.00'),
'category_code': 'S',
}, {
'base': Decimal('300.00'),
'amount': Decimal('21.00'),
'percent': Decimal('7.00')}],
'terms': [{
'amount': Decimal('3355.50'),
'duedate': date(2024, 7, 1)}]},
'seller_party': {
'city': 'Berlin',
'name': 'Name of the Supplier',
'postal_code': '12345',
'street': 'Street of Supplier No 1'},
'total': {
'amount': Decimal('2850.00'),
'duepayable': Decimal('3355.50'),
'grand': Decimal('3355.50'),
'taxbase': Decimal('2850.00'),
'taxtotal': Decimal('505.50')}}
parsed_data_facturx_en16931 = {
'buyer_party': {
'city': 'Potsdam',