Cita:
Empezado por sglorka
Buenas tardes
Alguien sabe como se codifica en formato facturae para las administraciones públicas la subvención de 20céntimos de combustible ¿ Utilizáis el nodo Subsidies ?
Gracias
|
No he visto ese nodo en facturae, te propongo descuento a nivel de línea o global indicando en la razon el artículo del rd
Ejemplo:
Código PHP:
<?xml version="1.0" encoding="UTF-8"?>
<Facturae xmlns="http://www.facturae.es/Facturae/2014/v3.2.2/Facturae"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.facturae.es/Facturae/2014/v3.2.2/Facturae
http://www.facturae.es/Facturae/2014/v3.2.2/Facturaev3.2.2.xsd">
<FileHeader>
<SchemaVersion>3.2.2</SchemaVersion>
<Modality>I</Modality>
<InvoiceIssuerType>EM</InvoiceIssuerType>
<Batch>
<BatchIdentifier>F0001</BatchIdentifier>
<InvoicesCount>1</InvoicesCount>
<TotalInvoicesAmount>
<TotalAmount>193.60</TotalAmount>
</TotalInvoicesAmount>
<TotalOutstandingAmount>
<TotalAmount>193.60</TotalAmount>
</TotalOutstandingAmount>
<TotalExecutableAmount>
<TotalAmount>193.60</TotalAmount>
</TotalExecutableAmount>
</Batch>
</FileHeader>
<Parties>
<SellerParty>
<TaxIdentification>
<PersonTypeCode>J</PersonTypeCode>
<ResidenceTypeCode>R</ResidenceTypeCode>
<TaxIdentificationNumber>B12345678</TaxIdentificationNumber>
</TaxIdentification>
<LegalEntity>
<CorporateName>Gasóleos Ejemplo S.L.</CorporateName>
<AddressInSpain>
<Address>Avda. Ejemplo 123</Address>
<PostCode>28080</PostCode>
<Town>Madrid</Town>
<Province>Madrid</Province>
<CountryCode>ESP</CountryCode>
</AddressInSpain>
</LegalEntity>
</SellerParty>
<BuyerParty>
<TaxIdentification>
<PersonTypeCode>J</PersonTypeCode>
<ResidenceTypeCode>R</ResidenceTypeCode>
<TaxIdentificationNumber>S1234567C</TaxIdentificationNumber>
</TaxIdentification>
<LegalEntity>
<CorporateName>Ayuntamiento de Ejemplo</CorporateName>
<AddressInSpain>
<Address>Plaza Mayor 1</Address>
<PostCode>28080</PostCode>
<Town>Madrid</Town>
<Province>Madrid</Province>
<CountryCode>ESP</CountryCode>
</AddressInSpain>
<AdministrativeCentre>
<CentreCode>DIR3CODE123</CentreCode>
<RoleTypeCode>01</RoleTypeCode>
<Name>Unidad de Compras</Name>
<AddressInSpain>
<Address>Plaza Mayor 1</Address>
<PostCode>28080</PostCode>
<Town>Madrid</Town>
<Province>Madrid</Province>
<CountryCode>ESP</CountryCode>
</AddressInSpain>
</AdministrativeCentre>
</LegalEntity>
</BuyerParty>
</Parties>
<Invoices>
<Invoice>
<InvoiceHeader>
<InvoiceNumber>F0001</InvoiceNumber>
<InvoiceSeriesCode>A</InvoiceSeriesCode>
<InvoiceDocumentType>FC</InvoiceDocumentType>
<InvoiceClass>OO</InvoiceClass>
</InvoiceHeader>
<InvoiceIssueData>
<IssueDate>2022-09-30</IssueDate>
<InvoiceCurrencyCode>EUR</InvoiceCurrencyCode>
</InvoiceIssueData>
<TaxesOutputs>
<Tax>
<TaxTypeCode>01</TaxTypeCode> <!-- IVA -->
<TaxRate>21.00</TaxRate>
<TaxableBase>
<TotalAmount>160.00</TotalAmount>
</TaxableBase>
<TaxAmount>
<TotalAmount>33.60</TotalAmount>
</TaxAmount>
</Tax>
</TaxesOutputs>
<InvoiceTotals>
<TotalGrossAmount>180.00</TotalGrossAmount>
<GeneralDiscounts>
<Discount>
<DiscountReason>Bonificación estatal por combustible - RDL 6/2022</DiscountReason>
<DiscountRate>0.00</DiscountRate>
<DiscountAmount>20.00</DiscountAmount>
</Discount>
</GeneralDiscounts>
<TotalGeneralDiscounts>20.00</TotalGeneralDiscounts>
<TotalGrossAmountBeforeTaxes>160.00</TotalGrossAmountBeforeTaxes>
<TotalTaxOutputs>33.60</TotalTaxOutputs>
<InvoiceTotal>193.60</InvoiceTotal>
<TotalOutstandingAmount>193.60</TotalOutstandingAmount>
<TotalExecutableAmount>193.60</TotalExecutableAmount>
</InvoiceTotals>
<Items>
<InvoiceLine>
<ItemDescription>Gasóleo A</ItemDescription>
<Quantity>100.00</Quantity>
<UnitOfMeasure>Litro</UnitOfMeasure>
<UnitPriceWithoutTax>1.80</UnitPriceWithoutTax>
<DiscountsAndRebates>
<Discount>
<DiscountReason>Bonificación estatal por combustible - RDL 6/2022</DiscountReason>
<DiscountRate>0.00</DiscountRate>
<DiscountAmount>20.00</DiscountAmount>
</Discount>
</DiscountsAndRebates>
<GrossAmount>180.00</GrossAmount>
<TaxesOutputs>
<Tax>
<TaxTypeCode>01</TaxTypeCode>
<TaxRate>21.00</TaxRate>
<TaxableBase>
<TotalAmount>160.00</TotalAmount>
</TaxableBase>
<TaxAmount>
<TotalAmount>33.60</TotalAmount>
</TaxAmount>
</Tax>
</TaxesOutputs>
</InvoiceLine>
</Items>
</Invoice>
</Invoices>
</Facturae>