Ir al contenido

¿Cómo aplicar un descuento a nivel de ítem y de forma global?

Un descuento puede aplicarse a nivel de ítem o de forma global. A continuación, se muestra un ejemplo para cada caso:

 

Descuento por ítem

Los descuentos por línea se aplican directamente a cada ítem. Cuando existe un descuento, el campo full_amount se calcula de la siguiente manera:   full_amount = ((unit_amount - discount) * quantity) + VAT   El descuento se aplica por unidad, excluyendo el IVA.

{
"content": {
"type": "SIMPLIFIED",
"number": "E-3",
"text": "Factura de venta de prendas de vestir",
"full_amount": "50.45",
"items": [
{
"text": "Sombrero",
"quantity": "3",
"unit_amount": "16.52",
"full_amount": "45.45",
"discount":"4.00",
"system": {
"type": "REGULAR",
"category": {
"type": "VAT"
}
}
},
{
"text": "Bufanda",
"quantity": "1",
"unit_amount": "4.13",
"full_amount": "5",
"system": {
"type": "REGULAR",
"category": {
"type": "VAT"
}
}
}
]
},
"metadata": {
"metadata1": "metadata1",
"metadata2": "metadata2"
}
}

Descuento global

Los descuentos globales deben incluirse como una línea adicional en la factura, con un importe negativo.

{
"content": {
"type": "SIMPLIFIED",
"number": "E-1",
"text": "Factura de venta de prendas de vestir",
"full_amount": "980.10",
"items": [
{
"text": "Zapatos",
"quantity": "1",
"unit_amount": "300.00",
"discount": "90.00",
"full_amount": "254.10",
"system": {
"type": "REGULAR",
"category": {
"type": "VAT"
}
}
},
{
"text": "Chaqueta",
"quantity": "1",
"unit_amount": "800.0",
"full_amount": "968.0",
"system": {
"type": "REGULAR",
"category": {
"type": "VAT"
}
}
},
{
"text": "Descuento",
"quantity": "1",
"unit_amount": "-200.0",
"full_amount": "-242.0",
"system": {
"type": "REGULAR",
"category": {
"type": "VAT"
}
}
}
]
},
"metadata": {
"metadata1": "metadata1",
"metadata2": "metadata2"
}
}

¿Cómo debe representarse un descuento global cuando se aplican varios tipos de IVA?

Debe crearse una línea de descuento global independiente para cada tipo de IVA.
Si no se indica un tipo de IVA, se aplicará por defecto un tipo del 21%.

{
"text": "Descuento",
"quantity": "1",
"unit_amount": "-200.0",
"full_amount": "-242.0",
"system": {
"type": "REGULAR",
"category": {
"type": "VAT"
}
}
},
{
"text": "Descuento",
"quantity": "1",
"unit_amount": "-100.0",
"full_amount": "-100.0",
"system": {
"type": "REGULAR",
"category": {
"type": "NO_VAT",
"cause": "TAXABLE_EXEMPT_1"
}
}
}

Was this page helpful?