# What if I send a erroneous parameter 'emitter_rfc' failing with a constraint in the xsd.
# schema: cdfv33.xsd
# template: cfdv33.xml

{
    'serie': 'VAU',
    'number': 'ABC456',
    'date_invoice_tz': '2016-06-01T06:07:08',
    'payment_policy': '01',
    'certificate_number': '00001000000301059770',
    'certificate': 'CERTIFXSFT',
    'conditions': 'Condiciones',
    'subtotal': 100.0,
    'discount_amount': 10.0,
    'amount_total': 90.0,
    'currency': 'MXN',
    'rate': '1',
    'document_type': 'I',
    'pay_method': 'PUE',
    'emitter_zip': '37205',
    'cfdi_related_type': '01',
    'cfdi_related': [{'uuid': '61C47F1C-B9A6-4E99-ABFD-C967E07D476E'}],
    'emitter_name': 'Vauxoo SA de CV',
    'emitter_fiscal_position': '601',
    'receiver_rfc': 'ECI0006019E0',
    'receiver_name': 'Some Customer SC',
    'receiver_country': 'MEX',
    'receiver_reg_trib': '0000000000000',
    'receiver_use_cfdi': 'G03',
    'invoice_lines': [{
        'code_sat': '84111505',
        'code': 'XYZ',
        'quantity': 1.0,
        'code_unit': 'ACT',
        'unit': 'Unidad',
        'name': 'CPU XYZ',
        'price_unit': 50.0,
        'subtotal_wo_discount': 50.0,
        'discount': 10.0,
        'taxes': {
            'transferred': [{
                'base': '2250000',
                'name': '001',
                'type': 'Tasa',
                'rate': '0.160000',
                'amount': 360000}],
            'withholding': [{
                'base': '2250000',
                'name': '002',
                'type': 'Tasa',
                'rate': '0.530000',
                'amount': 247500}],
        },
    }],
    'taxes': {
        'total_withhold': 1.0,
        'total_transferred': 1.0,
        'withholding': [{
            'name': '002',
            'amount': '247500', }],
        'transferred': [{
            'name': '001',
            'type': 'Tasa',
            'amount': 360000,
            'rate': '0.160000'}]
    },
}
