690 lines
34 KiB
XML
690 lines
34 KiB
XML
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
<Invoice xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2"
|
|
xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2"
|
|
xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2"
|
|
xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
|
|
xmlns:ext="urn:oasis:names:specification:ubl:schema:xsd:CommonExtensionComponents-2"
|
|
xmlns:sts="dian:gov:co:facturaelectronica:Structures-2-1"
|
|
xmlns:xades="http://uri.etsi.org/01903/v1.3.2#"
|
|
xmlns:xades141="http://uri.etsi.org/01903/v1.4.1#"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:schemaLocation="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2 http://docs.oasis-open.org/ubl/os-UBL-2.1/xsd/maindoc/UBL-Invoice-2.1.xsd">
|
|
<ext:UBLExtensions>
|
|
<ext:UBLExtension>
|
|
<ext:ExtensionContent>
|
|
<sts:DianExtensions>
|
|
<sts:InvoiceControl>
|
|
<sts:InvoiceAuthorization>{{InvoiceControl.InvoiceAuthorization}}</sts:InvoiceAuthorization>
|
|
<sts:AuthorizationPeriod>
|
|
<cbc:StartDate>{{InvoiceControl.StartDate}}</cbc:StartDate>
|
|
<cbc:EndDate>{{InvoiceControl.EndDate}}</cbc:EndDate>
|
|
</sts:AuthorizationPeriod>
|
|
<sts:AuthorizedInvoices>
|
|
{% if InvoiceControl.Prefix %}
|
|
<sts:Prefix>{{InvoiceControl.Prefix}}</sts:Prefix>
|
|
{% endif %}
|
|
<sts:From>{{InvoiceControl.From}}</sts:From>
|
|
<sts:To>{{InvoiceControl.To}}</sts:To>
|
|
</sts:AuthorizedInvoices>
|
|
</sts:InvoiceControl>
|
|
<sts:InvoiceSource>
|
|
<cbc:IdentificationCode listAgencyID="6"
|
|
listAgencyName="United Nations Economic Commission for Europe"
|
|
listSchemeURI="urn:oasis:names:specification:ubl:codelist:gc:CountryIdentificationCode-2.1">CO</cbc:IdentificationCode>
|
|
</sts:InvoiceSource>
|
|
<sts:SoftwareProvider>
|
|
<sts:ProviderID schemeAgencyID="195"
|
|
schemeAgencyName="CO, DIAN (Dirección de Impuestos y Aduanas Nacionales)"
|
|
schemeID="{{ProviderIDschemeID}}"
|
|
schemeName="{{ProviderIDschemeName}}">{{ProviderID}}</sts:ProviderID>
|
|
<sts:SoftwareID schemeAgencyID="195"
|
|
schemeAgencyName="CO, DIAN (Dirección de Impuestos y Aduanas Nacionales)">{{SoftwareID}}</sts:SoftwareID>
|
|
</sts:SoftwareProvider>
|
|
<sts:SoftwareSecurityCode schemeAgencyID="195"
|
|
schemeAgencyName="CO, DIAN (Dirección de Impuestos y Aduanas Nacionales)">{{SoftwareSecurityCode}}</sts:SoftwareSecurityCode>
|
|
<sts:AuthorizationProvider>
|
|
<sts:AuthorizationProviderID schemeAgencyID="195"
|
|
schemeAgencyName="CO, DIAN (Dirección de Impuestos y Aduanas Nacionales)"
|
|
schemeID="4"
|
|
schemeName="31">800197268</sts:AuthorizationProviderID>
|
|
</sts:AuthorizationProvider>
|
|
<sts:QRCode>NumFac: {{ID}}
|
|
FecFac: {{IssueDate}}
|
|
HorFac: {{IssueTime}}
|
|
NitFac: {{NitFac}}
|
|
DocAdq: {{DocAdq}}
|
|
ValFac: {{LineExtensionAmount}}
|
|
ValIva: {{ValIva}}
|
|
ValOtroIm: {{ValOtroIm}}
|
|
ValTolFac: {{PayableAmount}}
|
|
CU{% if InvoiceTypeCode != '03' %}F{% else %}D{% endif %}E: {{UUID}}
|
|
{{QRCodeURL}}</sts:QRCode>
|
|
</sts:DianExtensions>
|
|
</ext:ExtensionContent>
|
|
</ext:UBLExtension>
|
|
<ext:UBLExtension>
|
|
<ext:ExtensionContent/>
|
|
</ext:UBLExtension>
|
|
</ext:UBLExtensions>
|
|
<cbc:UBLVersionID>UBL 2.1</cbc:UBLVersionID>
|
|
<cbc:CustomizationID>{{CustomizationID}}</cbc:CustomizationID>
|
|
<cbc:ProfileID>DIAN 2.1: Factura Electrónica de Venta</cbc:ProfileID>
|
|
<cbc:ProfileExecutionID>{{ProfileExecutionID}}</cbc:ProfileExecutionID>
|
|
<cbc:ID>{{ID}}</cbc:ID>
|
|
<cbc:UUID schemeID="{{ProfileExecutionID}}"
|
|
schemeName="CU{% if InvoiceTypeCode != '03' %}F{% else %}D{% endif %}E-SHA384">{{UUID}}</cbc:UUID>
|
|
<cbc:IssueDate>{{IssueDate}}</cbc:IssueDate>
|
|
<cbc:IssueTime>{{IssueTime}}</cbc:IssueTime>
|
|
<cbc:DueDate>{{DueDate}}</cbc:DueDate>
|
|
<cbc:InvoiceTypeCode>{{InvoiceTypeCode}}</cbc:InvoiceTypeCode>
|
|
<!--TODO 1.0: Que nota colocar?-->
|
|
<cbc:Note>{{Note}}</cbc:Note>
|
|
<cbc:DocumentCurrencyCode listAgencyID="6"
|
|
listAgencyName="United Nations Economic Commission for Europe"
|
|
listID="ISO 4217 Alpha">{{DocumentCurrencyCode}}</cbc:DocumentCurrencyCode>
|
|
<cbc:LineCountNumeric>{{LineCountNumeric}}</cbc:LineCountNumeric>
|
|
<!--TODO 3.0: Grupo de campos relativos al Periodo de Facturación: Intervalo de fechas la las que
|
|
referencia la factura por ejemplo en servicios públicos>
|
|
<cac:InvoicePeriod>
|
|
<cbc:StartDate>{{InvoicePeriodStartDate}}</cbc:StartDate>
|
|
<cbc:EndDate>{{InvoicePeriodEndDate}}</cbc:EndDate>
|
|
</cac:InvoicePeriod-->
|
|
{% if OrderReferenceID %}
|
|
<cac:OrderReference>
|
|
<cbc:ID>{{OrderReferenceID}}</cbc:ID>
|
|
<!--TODO 2.0: No hay un campo validado aun, para la fecha de la orden del cliente>
|
|
<cbc:IssueDate>{{OrderReferenceIssueDate}}</cbc:IssueDate-->
|
|
</cac:OrderReference>
|
|
{% endif %}
|
|
<!--TODO 2.0: Se debe diligenciar únicamente cuando la FE se origina a partir de la corrección o
|
|
ajuste que se da mediante un Nota Crédito, ES POSIBLE PERO NO HAY PROBLEMA SI NO ESTA,
|
|
odoo esto es poco probable y no esta la relacion directa, desarrollo para cumplir con esto>
|
|
<cac:BillingReference>
|
|
<cac:CreditNoteDocumentReference>
|
|
<cbc:ID>SFR3123856</cbc:ID>
|
|
<cbc:UUID schemeName="CUFE-SHA1">a675432fecc1d537361dcdbdfbd08d6e5283f2bc</cbc:UUID>
|
|
<cbc:IssueDate>2018-09-29</cbc:IssueDate>
|
|
</cac:InvoiceDocumentReference>
|
|
</cac:BillingReference-->
|
|
<!--TODO 2.0: Se debe diligenciar únicamente cuando la FE se origina a partir de la corrección o
|
|
ajuste que se da mediante un Nota Débito, CREO QUE ESTO ES IMPOSIBLE DESDE EL ODOO, Y TAMPOCO TIENE SENTIDO
|
|
GENERAR UNA NUEVA FACTURA, SABIENDO QUE LA NOTA DEBITO PRECISAMENTE ES LA CORRECCION PARA NO GENERAR UNA NOTA
|
|
CREDITO Y UNA FACTURA DE NUEVO EN EL CASO DE QUE LA FACTURA ORIGINAL ESTE ERRADA POR FALTA DE UN ITEM O VALOR>
|
|
<cac:BillingReference>
|
|
<cac:DebitNoteDocumentReference>
|
|
<cbc:ID>SETP990000101</cbc:ID>
|
|
<cbc:UUID schemeName="CUFE-SHA384">1dc661228f152332d876e1f1cd2042ecdea1804ed0da78f84dc9ee0938d69f17037dc53f97778ed2721d65c1fc3c73ac</cbc:UUID>
|
|
<cbc:IssueDate>2018-09-29</cbc:IssueDate>
|
|
</cac:InvoiceDocumentReference>
|
|
</cac:BillingReference-->
|
|
<!--TODO 3.0: opcional, solo interés mercantil, para referenciar uno o más documentos de despacho asociado>
|
|
<cac:DespatchDocumentReference>
|
|
<cbc:ID>8124167214 DA</cbc:ID>
|
|
<cbc:IssueDate>2019-12-12</cbc:IssueDate>
|
|
</cac:DespatchDocumentReference-->
|
|
<!--TODO 3.0: opcional, solo interés mercantil, para referenciar uno o más documentos de recepción asociado-->
|
|
{% if ReceiptDocumentReferenceID %}
|
|
<cac:ReceiptDocumentReference>
|
|
<cbc:ID>{{ReceiptDocumentReferenceID}}</cbc:ID>
|
|
<!--TODO 2.0: No hay un campo validado aun, para la fecha de la orden del cliente>
|
|
<cbc:IssueDate>{{ReceiptDocumentReferenceDate}}</cbc:IssueDate-->
|
|
</cac:ReceiptDocumentReference>
|
|
{% endif %}
|
|
{% if InvoiceTypeCode == '03' %}
|
|
<cac:AdditionalDocumentReference>
|
|
<cbc:ID>{{ID}}</cbc:ID>
|
|
<cbc:IssueDate>{{IssueDate}}</cbc:IssueDate>
|
|
<!--TODO 2.0: Opcional, Corresponde a una codificación propia de la empresa.
|
|
<cbc:DocumentTypeCode></cbc:DocumentTypeCode-->
|
|
</cac:AdditionalDocumentReference>
|
|
{% endif %}
|
|
<cac:AccountingSupplierParty>
|
|
<cbc:AdditionalAccountID>{{AccountingSupplierParty.AdditionalAccountID}}</cbc:AdditionalAccountID>
|
|
<cac:Party>
|
|
{% if IndustryClassificationCode %}
|
|
<cbc:IndustryClassificationCode>{{IndustryClassificationCode}}</cbc:IndustryClassificationCode>
|
|
{% endif %}
|
|
{% if AccountingSupplierParty.PartyName %}
|
|
<cac:PartyName>
|
|
<cbc:Name>{{AccountingSupplierParty.PartyName}}</cbc:Name>
|
|
</cac:PartyName>
|
|
{% endif %}
|
|
<cac:PhysicalLocation>
|
|
<cac:Address>
|
|
<cbc:ID>{{AccountingSupplierParty.AddressID}}</cbc:ID>
|
|
<cbc:CityName>{{AccountingSupplierParty.AddressCityName}}</cbc:CityName>
|
|
{% if AccountingSupplierParty.AddressPostalZone %}
|
|
<cbc:PostalZone>{{AccountingSupplierParty.AddressPostalZone}}</cbc:PostalZone>
|
|
{% endif %}
|
|
<cbc:CountrySubentity>{{AccountingSupplierParty.AddressCountrySubentity}}</cbc:CountrySubentity>
|
|
<cbc:CountrySubentityCode>{{AccountingSupplierParty.AddressCountrySubentityCode}}</cbc:CountrySubentityCode>
|
|
<cac:AddressLine>
|
|
<cbc:Line>{{AccountingSupplierParty.AddressLine}}</cbc:Line>
|
|
</cac:AddressLine>
|
|
<cac:Country>
|
|
<cbc:IdentificationCode>{{AccountingSupplierParty.CountryIdentificationCode}}</cbc:IdentificationCode>
|
|
<!--TODO 2.0: languageID podria variar, siguiente version revisar esto-->
|
|
<cbc:Name languageID="es">{{AccountingSupplierParty.CountryName}}</cbc:Name>
|
|
</cac:Country>
|
|
</cac:Address>
|
|
</cac:PhysicalLocation>
|
|
<cac:PartyTaxScheme>
|
|
<cbc:RegistrationName>{{AccountingSupplierParty.Name}}</cbc:RegistrationName>
|
|
<cbc:CompanyID schemeAgencyID="195"
|
|
schemeAgencyName="CO, DIAN (Dirección de Impuestos y Aduanas Nacionales)"
|
|
schemeID="{{AccountingSupplierParty.CompanyIDschemeID}}"
|
|
schemeName="{{AccountingSupplierParty.CompanyIDschemeName}}">{{AccountingSupplierParty.CompanyID}}</cbc:CompanyID>
|
|
<!--TODO 2.0: listName el anexo dice que eliminar o valor No aplica,
|
|
pero para consumidor final dice informar 49-->
|
|
<cbc:TaxLevelCode listName="{{AccountingSupplierParty.listName}}">{{AccountingSupplierParty.TaxLevelCode}}</cbc:TaxLevelCode>
|
|
<cac:RegistrationAddress>
|
|
<cbc:ID>{{AccountingSupplierParty.AddressID}}</cbc:ID>
|
|
<cbc:CityName>{{AccountingSupplierParty.AddressCityName}}</cbc:CityName>
|
|
{% if AccountingSupplierParty.AddressPostalZone %}
|
|
<cbc:PostalZone>{{AccountingSupplierParty.AddressPostalZone}}</cbc:PostalZone>
|
|
{% endif %}
|
|
<cbc:CountrySubentity>{{AccountingSupplierParty.AddressCountrySubentity}}</cbc:CountrySubentity>
|
|
<cbc:CountrySubentityCode>{{AccountingSupplierParty.AddressCountrySubentityCode}}</cbc:CountrySubentityCode>
|
|
<cac:AddressLine>
|
|
<cbc:Line>{{AccountingSupplierParty.AddressLine}}</cbc:Line>
|
|
</cac:AddressLine>
|
|
<cac:Country>
|
|
<cbc:IdentificationCode>{{AccountingSupplierParty.CountryIdentificationCode}}</cbc:IdentificationCode>
|
|
<!--TODO 2.0: languageID podria variar, siguiente version revisar esto-->
|
|
<cbc:Name languageID="es">{{AccountingSupplierParty.CountryName}}</cbc:Name>
|
|
</cac:Country>
|
|
</cac:RegistrationAddress>
|
|
<cac:TaxScheme>
|
|
<cbc:ID>{{AccountingSupplierParty.TaxSchemeID}}</cbc:ID>
|
|
<cbc:Name>{{AccountingSupplierParty.TaxSchemeName}}</cbc:Name>
|
|
</cac:TaxScheme>
|
|
</cac:PartyTaxScheme>
|
|
<cac:PartyLegalEntity>
|
|
<cbc:RegistrationName>{{AccountingSupplierParty.Name}}</cbc:RegistrationName>
|
|
<cbc:CompanyID schemeAgencyID="195"
|
|
schemeAgencyName="CO, DIAN (Dirección de Impuestos y Aduanas Nacionales)"
|
|
schemeID="{{AccountingSupplierParty.CompanyIDschemeID}}"
|
|
schemeName="{{AccountingSupplierParty.CompanyIDschemeName}}">{{AccountingSupplierParty.CompanyID}}</cbc:CompanyID>
|
|
{% if InvoiceControl.Prefix or AccountingSupplierParty.CorporateRegistrationSchemeName %}
|
|
<cac:CorporateRegistrationScheme>
|
|
{% if InvoiceControl.Prefix %}
|
|
<cbc:ID>{{InvoiceControl.Prefix}}</cbc:ID>
|
|
{% endif %}
|
|
{% if AccountingSupplierParty.CorporateRegistrationSchemeName %}
|
|
<cbc:Name>{{AccountingSupplierParty.CorporateRegistrationSchemeName}}</cbc:Name>
|
|
{% endif %}
|
|
</cac:CorporateRegistrationScheme>
|
|
{% endif %}
|
|
<!--TODO 3.0: Si se va a opera bajo modalidad de Consorcio, entonces este grupo de información
|
|
debe ser informada. Se debe completar un grupo de elementos por cada participante del consorcio.>
|
|
<cac:ShareholderParty>
|
|
<cbc:PartecipationPercent>10.00</cbc:PartecipationPercent>
|
|
<cac:Party>
|
|
<cac:PartyTaxScheme>
|
|
<cbc:RegistrationName></cbc:RegistrationName>
|
|
<cbc:CompanyID schemeAgencyID="195"
|
|
schemeAgencyName="CO, DIAN (Dirección de Impuestos y Aduanas Nacionales)"
|
|
schemeID=""
|
|
schemeName=""></cbc:CompanyID>
|
|
<TODO 2.0: listName el anexo dice que eliminar o valor No aplica,
|
|
pero para consumidor final dice informar 49>
|
|
<cbc:TaxLevelCode listName=""></cbc:TaxLevelCode>
|
|
<cac:TaxScheme>
|
|
<cbc:ID></cbc:ID>
|
|
<cbc:Name></cbc:Name>
|
|
</cac:TaxScheme>
|
|
</cac:PartyTaxScheme>
|
|
</cac:Party>
|
|
</cac:ShareholderParty-->
|
|
</cac:PartyLegalEntity>
|
|
{% if AccountingSupplierParty.Telephone or AccountingSupplierParty.Telefax or AccountingSupplierParty.ElectronicMail %}
|
|
<cac:Contact>
|
|
<!--TODO 3.0: opcional, de momento se manda info de la empresa sin nombre de contacto>
|
|
<cbc:Name>Diana Cruz</cbc:Name-->
|
|
{% if AccountingSupplierParty.Telephone %}
|
|
<cbc:Telephone>{{AccountingSupplierParty.Telephone}}</cbc:Telephone>
|
|
{% endif %}
|
|
{% if AccountingSupplierParty.Telefax %}
|
|
<cbc:Telefax>{{AccountingSupplierParty.Telefax}}</cbc:Telefax>
|
|
{% endif %}
|
|
{% if AccountingSupplierParty.ElectronicMail %}
|
|
<cbc:ElectronicMail>{{AccountingSupplierParty.ElectronicMail}}</cbc:ElectronicMail>
|
|
{% endif %}
|
|
<!--TODO 2.0: opcional, de momento se manda info de la empresa no se sabe que mandar aca de momento>
|
|
<cbc:Note></cbc:Note-->
|
|
</cac:Contact>
|
|
{% endif %}
|
|
</cac:Party>
|
|
</cac:AccountingSupplierParty>
|
|
<cac:AccountingCustomerParty>
|
|
<cbc:AdditionalAccountID>{{AccountingCustomerParty.AdditionalAccountID}}</cbc:AdditionalAccountID>
|
|
<cac:Party>
|
|
<cac:PartyIdentification>
|
|
<cbc:ID {% if AccountingCustomerParty.CompanyIDschemeName == '31' %}schemeID="{{AccountingCustomerParty.CompanyIDschemeID}}"{% endif %}
|
|
schemeName="{{AccountingCustomerParty.CompanyIDschemeName}}">{{AccountingCustomerParty.CompanyID}}</cbc:ID>
|
|
</cac:PartyIdentification>
|
|
{% if AccountingCustomerParty.PartyName %}
|
|
<cac:PartyName>
|
|
<cbc:Name>{{AccountingCustomerParty.PartyName}}</cbc:Name>
|
|
</cac:PartyName>
|
|
{% endif %}
|
|
{% if AccountingCustomerParty.CompanyID != '222222222222' %}
|
|
<cac:PhysicalLocation>
|
|
<cac:Address>
|
|
<cbc:ID>{{AccountingCustomerParty.AddressID}}</cbc:ID>
|
|
<cbc:CityName>{{AccountingCustomerParty.AddressCityName}}</cbc:CityName>
|
|
{% if AccountingCustomerParty.AddressPostalZone %}
|
|
<cbc:PostalZone>{{AccountingCustomerParty.AddressPostalZone}}</cbc:PostalZone>
|
|
{% endif %}
|
|
<cbc:CountrySubentity>{{AccountingCustomerParty.AddressCountrySubentity}}</cbc:CountrySubentity>
|
|
<cbc:CountrySubentityCode>{{AccountingCustomerParty.AddressCountrySubentityCode}}</cbc:CountrySubentityCode>
|
|
<cac:AddressLine>
|
|
<cbc:Line>{{AccountingCustomerParty.AddressLine}}</cbc:Line>
|
|
</cac:AddressLine>
|
|
<cac:Country>
|
|
<cbc:IdentificationCode>{{AccountingCustomerParty.CountryIdentificationCode}}</cbc:IdentificationCode>
|
|
<!--TODO 2.0: languageID podria variar, siguiente version revisar esto-->
|
|
<cbc:Name languageID="es">{{AccountingCustomerParty.CountryName}}</cbc:Name>
|
|
</cac:Country>
|
|
</cac:Address>
|
|
</cac:PhysicalLocation>
|
|
{% endif %}
|
|
<cac:PartyTaxScheme>
|
|
<cbc:RegistrationName>{{AccountingCustomerParty.Name}}</cbc:RegistrationName>
|
|
<cbc:CompanyID schemeAgencyID="195"
|
|
schemeAgencyName="CO, DIAN (Dirección de Impuestos y Aduanas Nacionales)"
|
|
{% if AccountingCustomerParty.CompanyIDschemeName == '31' %}schemeID="{{AccountingCustomerParty.CompanyIDschemeID}}"{% endif %}
|
|
schemeName="{{AccountingCustomerParty.CompanyIDschemeName}}">{{AccountingCustomerParty.CompanyID}}</cbc:CompanyID>
|
|
<!--TODO 2.0: listName el anexo dice que eliminar o valor No aplica, pero para consumidor final dice informar 49-->
|
|
<cbc:TaxLevelCode listName="{{AccountingCustomerParty.listName}}">{{AccountingCustomerParty.TaxLevelCode}}</cbc:TaxLevelCode>
|
|
{% if AccountingCustomerParty.CompanyID != '222222222222' %}
|
|
<cac:RegistrationAddress>
|
|
<cbc:ID>{{AccountingCustomerParty.AddressID}}</cbc:ID>
|
|
<cbc:CityName>{{AccountingCustomerParty.AddressCityName}}</cbc:CityName>
|
|
{% if AccountingCustomerParty.AddressPostalZone %}
|
|
<cbc:PostalZone>{{AccountingCustomerParty.AddressPostalZone}}</cbc:PostalZone>
|
|
{% endif %}
|
|
<cbc:CountrySubentity>{{AccountingCustomerParty.AddressCountrySubentity}}</cbc:CountrySubentity>
|
|
<cbc:CountrySubentityCode>{{AccountingCustomerParty.AddressCountrySubentityCode}}</cbc:CountrySubentityCode>
|
|
<cac:AddressLine>
|
|
<cbc:Line>{{AccountingCustomerParty.AddressLine}}</cbc:Line>
|
|
</cac:AddressLine>
|
|
<cac:Country>
|
|
<cbc:IdentificationCode>{{AccountingCustomerParty.CountryIdentificationCode}}</cbc:IdentificationCode>
|
|
<!--TODO 2.0: languageID podria variar, siguiente version revisar esto-->
|
|
<cbc:Name languageID="es">{{AccountingCustomerParty.CountryName}}</cbc:Name>
|
|
</cac:Country>
|
|
</cac:RegistrationAddress>
|
|
{% endif %}
|
|
<cac:TaxScheme>
|
|
<cbc:ID>{{AccountingCustomerParty.TaxSchemeID}}</cbc:ID>
|
|
<cbc:Name>{{AccountingCustomerParty.TaxSchemeName}}</cbc:Name>
|
|
</cac:TaxScheme>
|
|
</cac:PartyTaxScheme>
|
|
<cac:PartyLegalEntity>
|
|
<cbc:RegistrationName>{{AccountingCustomerParty.Name}}</cbc:RegistrationName>
|
|
<cbc:CompanyID schemeAgencyID="195"
|
|
schemeAgencyName="CO, DIAN (Dirección de Impuestos y Aduanas Nacionales)"
|
|
{% if AccountingCustomerParty.CompanyIDschemeName == '31' %}schemeID="{{AccountingCustomerParty.CompanyIDschemeID}}"{% endif %}
|
|
schemeName="{{AccountingCustomerParty.CompanyIDschemeName}}">{{AccountingCustomerParty.CompanyID}}</cbc:CompanyID>
|
|
{% if AccountingCustomerParty.CorporateRegistrationSchemeName %}
|
|
<cac:CorporateRegistrationScheme>
|
|
<cbc:Name>{{AccountingCustomerParty.CorporateRegistrationSchemeName}}</cbc:Name>
|
|
</cac:CorporateRegistrationScheme>
|
|
{% endif %}
|
|
</cac:PartyLegalEntity>
|
|
{% if AccountingCustomerParty.CompanyID != '222222222222' and (AccountingCustomerParty.Telephone or AccountingCustomerParty.Telefax or AccountingCustomerParty.ElectronicMail) %}
|
|
<cac:Contact>
|
|
<!--TODO 2.0: opcional, de momento se manda info de la empresa sin nombre de contacto>
|
|
<cbc:Name>Diana Cruz</cbc:Name-->
|
|
{% if AccountingCustomerParty.Telephone %}
|
|
<cbc:Telephone>{{AccountingCustomerParty.Telephone}}</cbc:Telephone>
|
|
{% endif %}
|
|
{% if AccountingCustomerParty.Telefax %}
|
|
<cbc:Telefax>{{AccountingCustomerParty.Telefax}}</cbc:Telefax>
|
|
{% endif %}
|
|
{% if AccountingCustomerParty.ElectronicMail %}
|
|
<cbc:ElectronicMail>{{AccountingCustomerParty.ElectronicMail}}</cbc:ElectronicMail>
|
|
{% endif %}
|
|
<!--TODO 2.0: opcional, de momento se manda info de la empresa no se sabe que mandar aca de momento>
|
|
<cbc:Note></cbc:Note-->
|
|
</cac:Contact>
|
|
{% endif %}
|
|
</cac:Party>
|
|
</cac:AccountingCustomerParty>
|
|
<!--TODO 2.0 Grupo de información de la Persona autorizada para descargar documentos-->
|
|
<!--cac:TaxRepresentativeParty>
|
|
<cac:PartyIdentification>
|
|
<cbc:ID schemeAgencyID="195"
|
|
schemeAgencyName="CO, DIAN (Dirección de Impuestos y Aduanas Nacionales)"
|
|
schemeID=""
|
|
schemeName=""></cbc:ID>
|
|
</cac:PartyIdentification>
|
|
</cac:TaxRepresentativeParty-->
|
|
<cac:Delivery>
|
|
<cbc:ActualDeliveryDate>{{ActualDeliveryDate}}</cbc:ActualDeliveryDate>
|
|
<cbc:ActualDeliveryTime>{{ActualDeliveryTime}}</cbc:ActualDeliveryTime>
|
|
{% if AccountingCustomerParty.CompanyID != '222222222222' %}
|
|
<cac:DeliveryAddress>
|
|
<cbc:ID>{{Delivery.AddressID}}</cbc:ID>
|
|
<cbc:CityName>{{Delivery.AddressCityName}}</cbc:CityName>
|
|
{% if Delivery.AddressPostalZone %}
|
|
<cbc:PostalZone>{{Delivery.AddressPostalZone}}</cbc:PostalZone>
|
|
{% endif %}
|
|
<cbc:CountrySubentity>{{Delivery.AddressCountrySubentity}}</cbc:CountrySubentity>
|
|
<cbc:CountrySubentityCode>{{Delivery.AddressCountrySubentityCode}}</cbc:CountrySubentityCode>
|
|
<cac:AddressLine>
|
|
<cbc:Line>{{Delivery.AddressLine}}</cbc:Line>
|
|
</cac:AddressLine>
|
|
<cac:Country>
|
|
<cbc:IdentificationCode>{{Delivery.CountryIdentificationCode}}</cbc:IdentificationCode>
|
|
<!--TODO 2.0: languageID podria variar, siguiente version revisar esto-->
|
|
<cbc:Name languageID="es">{{Delivery.CountryName}}</cbc:Name>
|
|
</cac:Country>
|
|
</cac:DeliveryAddress>
|
|
{% endif %}
|
|
<!--TODO 3.0, Grupo de datos con información sobre la empresa de transporte, desarrollo futuro>
|
|
<cac:DeliveryParty>
|
|
<cac:PartyName>
|
|
<cbc:Name></cbc:Name>
|
|
</cac:PartyName>
|
|
<cac:PhysicalLocation>
|
|
<cac:Address>
|
|
<cbc:ID>11001</cbc:ID>
|
|
<cbc:CityName>Bogotá, D.c. </cbc:CityName>
|
|
<cbc:PostalZone>Bogotá, D.c. </cbc:PostalZone>
|
|
<cbc:CountrySubentity>Bogotá</cbc:CountrySubentity>
|
|
<cbc:CountrySubentityCode>11</cbc:CountrySubentityCode>
|
|
<cac:AddressLine>
|
|
<cbc:Line>Av. #17 - 193</cbc:Line>
|
|
</cac:AddressLine>
|
|
<cac:Country>
|
|
<cbc:IdentificationCode>CO</cbc:IdentificationCode>
|
|
<TODO 2.0: languageID podria variar, siguiente version revisar esto>
|
|
<cbc:Name languageID="es">Colombia</cbc:Name>
|
|
</cac:Country>
|
|
</cac:Address>
|
|
</cac:PhysicalLocation>
|
|
<cac:PartyTaxScheme>
|
|
<cbc:RegistrationName>Empresa de transporte</cbc:RegistrationName>
|
|
<cbc:CompanyID schemeAgencyID="195"
|
|
schemeAgencyName="CO, DIAN (Dirección de Impuestos y Aduanas Nacionales)"
|
|
schemeID="1"
|
|
schemeName="31">981223983</cbc:CompanyID>
|
|
<TODO 2.0: listName el anexo dice que eliminar o valor No aplica,
|
|
pero para consumidor final dice informar 49>
|
|
<cbc:TaxLevelCode listName="">O-99</cbc:TaxLevelCode>
|
|
<cac:RegistrationAddress>
|
|
<cbc:ID>11001</cbc:ID>
|
|
<cbc:CityName>Bogotá, D.c. </cbc:CityName>
|
|
<cbc:PostalZone>Bogotá, D.c. </cbc:PostalZone>
|
|
<cbc:CountrySubentity>Bogotá</cbc:CountrySubentity>
|
|
<cbc:CountrySubentityCode>11</cbc:CountrySubentityCode>
|
|
<cac:AddressLine>
|
|
<cbc:Line>Av. #17 - 193</cbc:Line>
|
|
</cac:AddressLine>
|
|
<cac:Country>
|
|
<cbc:IdentificationCode>CO</cbc:IdentificationCode>
|
|
<TODO 2.0: languageID podria variar, siguiente version revisar esto>
|
|
<cbc:Name languageID="es">Colombia</cbc:Name>
|
|
</cac:Country>
|
|
</cac:RegistrationAddress>
|
|
<cac:TaxScheme>
|
|
<cbc:ID>01</cbc:ID>
|
|
<cbc:Name>IVA</cbc:Name>
|
|
</cac:TaxScheme>
|
|
</cac:PartyTaxScheme>
|
|
<cac:PartyLegalEntity>
|
|
<cbc:RegistrationName>Empresa de transporte</cbc:RegistrationName>
|
|
<cbc:CompanyID schemeAgencyID="195"
|
|
schemeAgencyName="CO, DIAN (Dirección de Impuestos y Aduanas Nacionales)"
|
|
schemeID="1"
|
|
schemeName="31">981223983</cbc:CompanyID>
|
|
<cac:CorporateRegistrationScheme>
|
|
<cbc:Name>75433</cbc:Name>
|
|
</cac:CorporateRegistrationScheme>
|
|
</cac:PartyLegalEntity>
|
|
<cac:Contact>
|
|
<cbc:Name>Eric Van Boxsom</cbc:Name>
|
|
<cbc:Telephone>9712311</cbc:Telephone>
|
|
<cbc:Telefax>12431241</cbc:Telefax>
|
|
<cbc:ElectronicMail>eric.vanboxsom@gosocket.net</cbc:ElectronicMail>
|
|
<cbc:Note>Test descripcion contacto</cbc:Note>
|
|
</cac:Contact>
|
|
</cac:DeliveryParty-->
|
|
</cac:Delivery>
|
|
{% if DeliveryTerms.LossRiskResponsibilityCode %}
|
|
<cac:DeliveryTerms>
|
|
<cbc:ID>1</cbc:ID>
|
|
<!--TODO 2.0: Con otro modulo complementario se puede resolver el texto libre-->
|
|
<!--cbc:SpecialTerms>Portes Pagados</cbc:SpecialTerms-->
|
|
<cbc:LossRiskResponsibilityCode>{{DeliveryTerms.LossRiskResponsibilityCode}}</cbc:LossRiskResponsibilityCode>
|
|
<cbc:LossRisk>{{DeliveryTerms.LossRisk}}</cbc:LossRisk>
|
|
</cac:DeliveryTerms>
|
|
{% endif %}
|
|
<cac:PaymentMeans>
|
|
<cbc:ID>{{PaymentMeansID}}</cbc:ID>
|
|
<cbc:PaymentMeansCode>{{PaymentMeansCode}}</cbc:PaymentMeansCode>
|
|
<cbc:PaymentDueDate>{{PaymentDueDate}}</cbc:PaymentDueDate>
|
|
<!--TODO 2.0: Identificador del pago, pueden ir de cero a varios PaymentID-->
|
|
<!--cbc:PaymentID></cbc:PaymentID-->
|
|
<!--TODO 2.0: En el anexo esta pero solo en facturas y no hay informacion sobre el campo-->
|
|
<!--cbc:PaymentTerms></cbc:PaymentTerms-->
|
|
</cac:PaymentMeans>
|
|
<!--TODO 3.0: Grupo de campos para informaciónrelacionadas con un anticipo -->
|
|
<!--cac:PrepaidPayment>
|
|
<cbc:ID>SFR3123856</cbc:ID>
|
|
<cbc:PaidAmount currencyID="{{DocumentCurrencyCode}}">1000.00</cbc:PaidAmount>
|
|
<cbc:ReceivedDate>2018-09-29</cbc:ReceivedDate>
|
|
<cbc:PaidDate>2018-09-29</cbc:PaidDate>
|
|
<cbc:PaidTime>2018-09-29</cbc:PaidDate>
|
|
<cbc:InstructionID>Prepago recibido</cbc:InstructionID>
|
|
</cac:PrepaidPayment-->
|
|
<!--TODO 3.0: Grupo de campos para información relacionadas con un cargo o un descuento>
|
|
<cac:AllowanceCharge>
|
|
<cbc:ID>SFR3123856</cbc:ID>
|
|
<cbc:ChargeIndicator></cbc:ChargeIndicator>
|
|
<cbc:AllowanceChargeReasonCode></cbc:AllowanceChargeReasonCode>
|
|
<cbc:AllowanceChargeReason></cbc:AllowanceChargeReason>
|
|
<cbc:MultiplierFactorNumeric>Prepago recibido</cbc:MultiplierFactorNumeric>
|
|
<cbc:Amount currencyID="{{DocumentCurrencyCode}}">1000.00</cbc:Amount>
|
|
<cbc:BaseAmount currencyID="{{DocumentCurrencyCode}}">1000.00</cbc:BaseAmount>
|
|
</cac:AllowanceCharge-->
|
|
{% if DocumentCurrencyCode != 'COP' %}
|
|
<cac:PaymentExchangeRate>
|
|
<cbc:SourceCurrencyCode>{{PaymentExchangeRate.SourceCurrencyCode}}</cbc:SourceCurrencyCode>
|
|
<cbc:SourceCurrencyBaseRate>1.00</cbc:SourceCurrencyBaseRate>
|
|
<cbc:TargetCurrencyCode>{{PaymentExchangeRate.TargetCurrencyCode}}</cbc:TargetCurrencyCode>
|
|
<cbc:TargetCurrencyBaseRate>1.00</cbc:TargetCurrencyBaseRate>
|
|
<cbc:CalculationRate>{{'{:.2f}'.format(PaymentExchangeRate.CalculationRate)}}</cbc:CalculationRate>
|
|
<cbc:Date>{{PaymentExchangeRate.Date}}</cbc:Date>
|
|
</cac:PaymentExchangeRate>
|
|
{% endif %}
|
|
<!--TODO 3.0, Utilizado como metodo alternativo para infomar conversiones a otras divisas.>
|
|
<cac:PaymentAlternativeExchangeRate>
|
|
<cbc:SourceCurrencyCode>USD</cbc:SourceCurrencyCode>
|
|
<cbc:SourceCurrencyBaseRate>1.00</cbc:SourceCurrencyBaseRate>
|
|
<cbc:TargetCurrencyCode>COP</cbc:TargetCurrencyCode>
|
|
<cbc:TargetCurrencyBaseRate>1.00</cbc:TargetCurrencyBaseRate>
|
|
<cbc:CalculationRate>3100</cbc:CalculationRate>
|
|
<cbc:Date>2019-06-21</cbc:Date>
|
|
</cac:PaymentAlternativeExchangeRate-->
|
|
{% for TaxTotalID, TaxTotal in TaxesTotal.items() %}
|
|
<!--{% if TaxTotal.total != 0 %}-->
|
|
<cac:TaxTotal>
|
|
<cbc:TaxAmount currencyID="{{DocumentCurrencyCode}}">{{'{:.2f}'.format(TaxTotal.total)}}</cbc:TaxAmount>
|
|
<!--TODO 2.0: Se manda 0.00 por ahora mientras se evalua la necesidad de calculos-->
|
|
<cbc:RoundingAmount currencyID="{{DocumentCurrencyCode}}">0.00</cbc:RoundingAmount>
|
|
{% for Percent, TaxSubtotal in TaxTotal.taxes.items() %}
|
|
<cac:TaxSubtotal>
|
|
<cbc:TaxableAmount currencyID="{{DocumentCurrencyCode}}">{{'{:.2f}'.format(TaxSubtotal.base)}}</cbc:TaxableAmount>
|
|
<cbc:TaxAmount currencyID="{{DocumentCurrencyCode}}">{{'{:.2f}'.format(TaxSubtotal.amount)}}</cbc:TaxAmount>
|
|
<!--TODO 1.0: Usado en el caso de que el tributo es un valor fijo>
|
|
<cbc:BaseUnitMeasure></cbc:BaseUnitMeasure>
|
|
<cbc:unitCode></cbc:unitCode>
|
|
<cbc:PerUnitAmount currencyID="{{DocumentCurrencyCode}}"></cbc:TaxAmount-->
|
|
<cac:TaxCategory>
|
|
<cbc:Percent>{{Percent}}</cbc:Percent>
|
|
<cac:TaxScheme>
|
|
<cbc:ID>{{TaxTotalID}}</cbc:ID>
|
|
<cbc:Name>{{TaxTotal.name}}</cbc:Name>
|
|
</cac:TaxScheme>
|
|
</cac:TaxCategory>
|
|
</cac:TaxSubtotal>
|
|
{% endfor %}
|
|
</cac:TaxTotal>
|
|
<!--{% endif %}-->
|
|
{% endfor %}
|
|
{% for WithholdingTaxTotalID, WithholdingTaxTotal in WithholdingTaxesTotal.items() %}
|
|
<cac:WithholdingTaxTotal>
|
|
<cbc:TaxAmount currencyID="{{DocumentCurrencyCode}}">{{'{:.2f}'.format(WithholdingTaxTotal.total)}}</cbc:TaxAmount>
|
|
{% for Percent, TaxSubtotal in WithholdingTaxTotal.taxes.items() %}
|
|
<cac:TaxSubtotal>
|
|
<cbc:TaxableAmount currencyID="{{DocumentCurrencyCode}}">{{'{:.2f}'.format(TaxSubtotal.base)}}</cbc:TaxableAmount>
|
|
<cbc:TaxAmount currencyID="{{DocumentCurrencyCode}}">{{'{:.2f}'.format(TaxSubtotal.amount)}}</cbc:TaxAmount>
|
|
<cac:TaxCategory>
|
|
<cbc:Percent>{{Percent}}</cbc:Percent>
|
|
<cac:TaxScheme>
|
|
<cbc:ID>{{WithholdingTaxTotalID}}</cbc:ID>
|
|
<cbc:Name>{{WithholdingTaxTotal.name}}</cbc:Name>
|
|
</cac:TaxScheme>
|
|
</cac:TaxCategory>
|
|
</cac:TaxSubtotal>
|
|
{% endfor %}
|
|
</cac:WithholdingTaxTotal>
|
|
{% endfor %}
|
|
<cac:LegalMonetaryTotal>
|
|
<cbc:LineExtensionAmount currencyID="{{DocumentCurrencyCode}}">{{LineExtensionAmount}}</cbc:LineExtensionAmount>
|
|
<cbc:TaxExclusiveAmount currencyID="{{DocumentCurrencyCode}}">{{TaxExclusiveAmount}}</cbc:TaxExclusiveAmount>
|
|
<cbc:TaxInclusiveAmount currencyID="{{DocumentCurrencyCode}}">{{TaxInclusiveAmount}}</cbc:TaxInclusiveAmount>
|
|
<!--TODO 3.0: los prepagos son los anticipos, no hay soporte aun en el odoo para identificar esto
|
|
PrepaidAmount == 0 mientras tanto, PrepaidAmount = suma de PrepaidPayment
|
|
AllowanceTotalAmount == 0 y ChargeTotalAmount == 0 mientras tanto, suma de AllowanceCharge
|
|
TaxInclusiveAmount == PayableAmount mientras tanto-->
|
|
<cbc:AllowanceTotalAmount currencyID="{{DocumentCurrencyCode}}">0.00</cbc:AllowanceTotalAmount>
|
|
<cbc:ChargeTotalAmount currencyID="{{DocumentCurrencyCode}}">0.00</cbc:ChargeTotalAmount>
|
|
<cbc:PrepaidAmount currencyID="{{DocumentCurrencyCode}}">0.00</cbc:PrepaidAmount>
|
|
<cbc:PayableAmount currencyID="{{DocumentCurrencyCode}}">{{PayableAmount}}</cbc:PayableAmount>
|
|
</cac:LegalMonetaryTotal>
|
|
{% for InvoiceLineID, InvoiceLine in InvoiceLines.items() %}
|
|
<cac:InvoiceLine>
|
|
<cbc:ID>{{InvoiceLineID}}</cbc:ID>
|
|
{% if CustomizationID == '09' %}
|
|
<cbc:Note>Contrato de servicios AIU por concepto de: {{InvoiceLine.ItemDescription}}</cbc:Note>
|
|
{% endif %}
|
|
<cbc:InvoicedQuantity unitCode="{{InvoiceLine.unitCode}}">{{InvoiceLine.Quantity}}</cbc:InvoicedQuantity>
|
|
<cbc:LineExtensionAmount currencyID="{{DocumentCurrencyCode}}">{{InvoiceLine.LineExtensionAmount}}</cbc:LineExtensionAmount>
|
|
{% if InvoiceLine.LineExtensionAmount == '0.00' %}
|
|
<cac:PricingReference>
|
|
<cac:AlternativeConditionPrice>
|
|
<cbc:PriceAmount currencyID="{{DocumentCurrencyCode}}">{{InvoiceLine.PricingReferencePriceAmount}}</cbc:PriceAmount>
|
|
<cbc:PriceTypeCode>01</cbc:PriceTypeCode>
|
|
</cac:AlternativeConditionPrice>
|
|
</cac:PricingReference>
|
|
{% endif %}
|
|
<!--TODO 2.0, puede iterar en el campo ID aumenta segun la cantidad de descuentos o cargos por lineas
|
|
ChargeIndicator true seria un cargo-->
|
|
<cac:AllowanceCharge>
|
|
<cbc:ID>1</cbc:ID>
|
|
<cbc:ChargeIndicator>false</cbc:ChargeIndicator>
|
|
<cbc:AllowanceChargeReason>Descuento</cbc:AllowanceChargeReason>
|
|
<cbc:MultiplierFactorNumeric>{{InvoiceLine.MultiplierFactorNumeric}}</cbc:MultiplierFactorNumeric>
|
|
<cbc:Amount currencyID="{{DocumentCurrencyCode}}">{{InvoiceLine.AllowanceChargeAmount}}</cbc:Amount>
|
|
<cbc:BaseAmount currencyID="{{DocumentCurrencyCode}}">{{InvoiceLine.AllowanceChargeBaseAmount}}</cbc:BaseAmount>
|
|
</cac:AllowanceCharge>
|
|
<!--TODO 1.0, revisar que impuestos se deben y no informar?-->
|
|
{% for TaxTotalID, TaxTotal in InvoiceLine.TaxesTotal.items() %}
|
|
<!--{% if TaxTotal.total != 0 %}-->
|
|
<cac:TaxTotal>
|
|
<cbc:TaxAmount currencyID="{{DocumentCurrencyCode}}">{{'{:.2f}'.format(TaxTotal.total)}}</cbc:TaxAmount>
|
|
<!--TODO 2.0: Se manda 0.00 por ahora mientras se evalua la necesidad de calculos-->
|
|
<cbc:RoundingAmount currencyID="{{DocumentCurrencyCode}}">0.00</cbc:RoundingAmount>
|
|
{% for Percent, TaxSubtotal in TaxTotal.taxes.items() %}
|
|
<cac:TaxSubtotal>
|
|
<cbc:TaxableAmount currencyID="{{DocumentCurrencyCode}}">{{'{:.2f}'.format(TaxSubtotal.base)}}</cbc:TaxableAmount>
|
|
<cbc:TaxAmount currencyID="{{DocumentCurrencyCode}}">{{'{:.2f}'.format(TaxSubtotal.amount)}}</cbc:TaxAmount>
|
|
<!--TODO 1.0: Usado en el caso de que el tributo es un valor fijo>
|
|
<cbc:BaseUnitMeasure></cbc:BaseUnitMeasure>
|
|
<cbc:unitCode></cbc:unitCode>
|
|
<cbc:PerUnitAmount currencyID="{{DocumentCurrencyCode}}"></cbc:TaxAmount-->
|
|
<cac:TaxCategory>
|
|
<cbc:Percent>{{Percent}}</cbc:Percent>
|
|
<cac:TaxScheme>
|
|
<cbc:ID>{{TaxTotalID}}</cbc:ID>
|
|
<cbc:Name>{{TaxTotal.name}}</cbc:Name>
|
|
</cac:TaxScheme>
|
|
</cac:TaxCategory>
|
|
</cac:TaxSubtotal>
|
|
{% endfor %}
|
|
</cac:TaxTotal>
|
|
<!--{% endif %}-->
|
|
{% endfor %}
|
|
{% for WithholdingTaxTotalID, WithholdingTaxTotal in InvoiceLine.WithholdingTaxesTotal.items() %}
|
|
<cac:WithholdingTaxTotal>
|
|
<cbc:TaxAmount currencyID="{{DocumentCurrencyCode}}">{{'{:.2f}'.format(WithholdingTaxTotal.total)}}</cbc:TaxAmount>
|
|
{% for Percent, TaxSubtotal in WithholdingTaxTotal.taxes.items() %}
|
|
<cac:TaxSubtotal>
|
|
<cbc:TaxableAmount currencyID="{{DocumentCurrencyCode}}">{{'{:.2f}'.format(TaxSubtotal.base)}}</cbc:TaxableAmount>
|
|
<cbc:TaxAmount currencyID="{{DocumentCurrencyCode}}">{{'{:.2f}'.format(TaxSubtotal.amount)}}</cbc:TaxAmount>
|
|
<cac:TaxCategory>
|
|
<cbc:Percent>{{Percent}}</cbc:Percent>
|
|
<cac:TaxScheme>
|
|
<cbc:ID>{{WithholdingTaxTotalID}}</cbc:ID>
|
|
<cbc:Name>{{WithholdingTaxTotal.name}}</cbc:Name>
|
|
</cac:TaxScheme>
|
|
</cac:TaxCategory>
|
|
</cac:TaxSubtotal>
|
|
{% endfor %}
|
|
</cac:WithholdingTaxTotal>
|
|
{% endfor %}
|
|
<cac:Item>
|
|
<cbc:Description>{{InvoiceLine.ItemDescription}}</cbc:Description>
|
|
<!--TODO 2.0, Cantidad de unidad de este artículo por empaque>
|
|
<cbc:PackSizeNumeric>{{InvoiceLine.PackSizeNumeric}}</cbc:PackSizeNumeric-->
|
|
{% if InvoiceLine.BrandName %}
|
|
<cbc:BrandName>{{InvoiceLine.BrandName}}</cbc:BrandName>
|
|
{% endif %}
|
|
<!--TODO 2.0, Mandaremos la referencia del fabricante por ahora, hay que definir luego si esto cambia-->
|
|
{% if InvoiceLine.ModelName %}
|
|
<cbc:ModelName>{{InvoiceLine.ModelName}}</cbc:ModelName>
|
|
{% endif %}
|
|
<!--TODO 2.0, Grupo de datos de identificación del artículo o servicio de acuerdo con el vendedor>
|
|
<cac:SellersItemIdentification>
|
|
<cbc:ID>AOHV84-225</cbc:ID>
|
|
<cbc:ExtendedID>AOHV84-225</cbc:ExtendedID>
|
|
</cac:SellersItemIdentification-->
|
|
<!--TODO 2.0, Grupo de datos de identificación del artículo o servicio de acuerdo con un estándar-->
|
|
<!--OPCIONAL schemeName="Estándar de adopción del contribuyente" schemeAgencyID="" schemeAgencyName=""-->
|
|
<cac:StandardItemIdentification>
|
|
<cbc:ID schemeID="999">{{InvoiceLine.StandardItemIdentification}}</cbc:ID>
|
|
</cac:StandardItemIdentification>
|
|
<!--TODO 2.0, opcional, Grupo de información para adicionar información específica del ítem que puede
|
|
ser solicitada por autoridades o entidades diferentes a la DIAN>
|
|
<cac:AdditionalItemProperty>
|
|
<cbc:Name></cbc:Name>
|
|
<cbc:Value></cbc:Value>
|
|
<cbc:ValueQuantity unitCode=""></cbc:ValueQuantity>
|
|
</cac:AdditionalItemProperty-->
|
|
{% if CustomizationID == '11' %}
|
|
<cac:InformationContentProviderParty>
|
|
<cac:PowerOfAttorney>
|
|
<cac:AgentParty>
|
|
<cac:PartyIdentification>
|
|
<cbc:ID schemeAgencyID="195"
|
|
schemeAgencyName="CO, DIAN (Dirección de Impuestos y Aduanas Nacionales)"
|
|
schemeID="{{InvoiceLine.InformationContentProviderParty.IDschemeID}}"
|
|
schemeName="{{InvoiceLine.InformationContentProviderParty.IDschemeName}}">{{InvoiceLine.InformationContentProviderParty.ID}}</cbc:ID>
|
|
</cac:PartyIdentification>
|
|
</cac:AgentParty>
|
|
</cac:PowerOfAttorney>
|
|
</cac:InformationContentProviderParty>
|
|
{% endif %}
|
|
</cac:Item>
|
|
<cac:Price>
|
|
<cbc:PriceAmount currencyID="{{DocumentCurrencyCode}}">{{InvoiceLine.PriceAmount}}</cbc:PriceAmount>
|
|
<cbc:BaseQuantity unitCode="{{InvoiceLine.unitCode}}">{{InvoiceLine.Quantity}}</cbc:BaseQuantity>
|
|
</cac:Price>
|
|
</cac:InvoiceLine>
|
|
{% endfor %}
|
|
</Invoice>
|