DESCUENTOS A NIVEL DE LINEA#

Grupo de campos que contienen información sobre descuentos comerciales aplicados en el momento de la generación del documento. Estos descuentos siempre se incluyen en el documento soporte, pero no se consideran para efectos contables ni tributarios, ya que el valor a tener en cuenta es el valor facturado, es decir, el valor neto después de aplicar el descuento.

Descuentos que se reportan a nivel de línea (No Condicionado)#

1. ChargeIndicator (DESCUENTOS A NIVEL DE LINEA)

Invoice.Lines.AllowanceCharges.ChargeIndicator

/Invoice/cac:InvoiceLine/cac:AllowanceCharge/cbc:ChargeIndicator

Para indicar que el elemento es un Descuento se debe enviar el valor False, el descuento es un crédito que resta al valor de la factura y se debe reportar en el NetAmount de la línea.

2. BaseAmount (DESCUENTOS A NIVEL DE LINEA)

Invoice.Lines.AllowanceCharges.BaseAmount

/Invoice/cac:InvoiceLine/cac:AllowanceCharge/cbc:BaseAmount

Valor base para calcular el Descuento, debe ser positivo mayor que cero y no puede ser superior al valor total de la factura.

3. Reason (DESCUENTOS A NIVEL DE LINEA)

Invoice.Lines.AllowanceCharges.Reason

/Invoice/cac:InvoiceLine/cac:AllowanceCharge/cbc:AllowanceChargeReason

Razón (texto): Texto libre y Opcional para informar de la razón del Descuento.

4. ReasonCode (DESCUENTOS A NIVEL DE LINEA)

Invoice.Lines.AllowanceCharges.ReasonCode

/Invoice/cac:AllowanceCharge/cbc:AllowanceChargeReasonCode

Los códigos de los descuentos ReasonCode están disponibles en el método del WEB API de Saphety: AllowanceChargeCodeTypes.

5. Amount (DESCUENTOS A NIVEL DE LINEA)

Invoice.Lines.AllowanceCharges.Amount

/Invoice/cac:InvoiceLine/cac:AllowanceCharge/cbc:Amount

Formula:
Valor total del descuento línea (Amount) = Valor Base línea (BaseAmount) * Porcentaje del descuento (Percentage)

6. Percentage (DESCUENTOS A NIVEL DE LINEA)

Invoice.Lines.AllowanceCharges.Percentage

/Invoice/cac:InvoiceLine/cac:AllowanceCharge/cbc:MultiplierFactorNumeric

Porcentaje del descuento a aplicar.

7. SequenceIndicator (DESCUENTOS A NIVEL DE LINEA)

Invoice.Lines.AllowanceCharges.SequenceIndicator

/Invoice/cac:InvoiceLine/cac:AllowanceCharge/cbc:ID

Empieza con “1”, los números utilizados en los diferentes grupos deben ser consecutivos.

8. NetAmount (DESCUENTOS A NIVEL DE LINEA)

Invoice.Lines.NetAmount

/Invoice/cac:InvoiceLine/cbc:LineExtensionAmount

Formula:
Valor Neto línea (NetAmount) = (Quantity* UnitPrice) + Valor total (línea) del cargo - Valor total(línea) del descuento.

DTO DESCUENTOS A NIVEL DE LINEA#

JSON (DTO) - DESCUENTOS LINEA
{
    "DeliveryDate": "2023-11-27T12:12:12",
    "SeriePrefix": "SEDS",
    "SerieNumber": "984000001",
    "CustomerParty": {
        "Identification": {
            "DocumentNumber": "{{nit}}",
            "DocumentType": "NIT",
            "CountryCode": "CO",
            "CheckDigit": "{{digitoverificacion}}"
        }
    },
    "Notes": [
        "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum."
    ],
    "Currency": "COP",
    "Lines": [
        {
            "Number": "1",
            "Quantity": "1",
            "QuantityUnitOfMeasure": "NAR",
            "ExcludeVat": "true",
            "UnitPrice": "3000000",
            "GrossAmount": "3000000", ///Quantity * UnitPrice
            "NetAmount": "2280000", //GrossAmount + cargos - descuentos
            "Item": {
                "Gtin": "6185",
                "Description": "DSCG0430 SERVICIO PROFESIONAL ASESORIA JURIDICA MES DE MAYO-ASESORIA JURIDICA",
                "IncomePurposeCode": "0"
            },
            "InvoicePeriod": {
                "From": "2023-11-27",
                "DescriptionCode": "2",
                "Description": "DSCG0430 SERVICIO PROFESIONAL ASESORIA JURIDICA MES DE MAYO-ASESORIA JURIDICA"
            },
            "AllowanceCharges": [
                {
                    "ChargeIndicator": "false",
                    "BaseAmount": "3000000.00", //base para calcular el impuesto
                    "ReasonCode": "00",
                    "Reason": "DESCUENTO",
                    "Amount": "510000.00", // total del descuento BaseAmount* Percentage
                    "Percentage": "17", // porcentaje aplicado
                    "SequenceIndicator": "1"
                },
                {
                    "ChargeIndicator": "false",
                    "BaseAmount": "3000000", //base para calcular el impuesto
                    "ReasonCode": "00",
                    "Reason": "DESCUENTO",
                    "Amount": "210000.00", // total del descuento BaseAmount* Percentage
                    "Percentage": "7", // porcentaje aplicado
                    "SequenceIndicator": "2"
                }
            ]
        }
    ],
    "Total": {
        "GrossAmount": "2280000",
        "TotalBillableAmount": "2280000", //GrossAmount + Sum impuestos
        "PayableAmount": "2280000", //TotalBillableAmount + cargos - descuentos
        "TaxableAmount": "0",
        "AllowancesTotalAmount": "0.00",
        "ChargesTotalAmount": "0.00"
    },
    "IssueDate": "2023-11-27T12:12:12",
    "DueDate": "2023-11-27T12:12:12",
    "CorrelationDocumentId": "POSTMAN-{{$timestamp}}",
    "SerieExternalKey": "{{serieexternalkeyDS}}",
    "PaymentMeans": [
        {
            "Code": "42",
            "Mean": "1"
        }
    ],
    "OperationType": "10",
    "SupplierParty": {
        "LegalType": "Legal",
        "Email": "correo@sovos.com",
        "TaxScheme": "ZZ",
        "ResponsabilityTypes": [
            "R-99-PN"
        ],
        "Identification": {
            "DocumentNumber": "{{nit}}",
            "DocumentType": "NIT",
            "CountryCode": "CO",
            "CheckDigit": "{{digitoverificacion}}"
        },
        "Name": "Saphety Transacciones Electrónicas S.A.S",
        "Address": {
            "DepartmentCode": "11",
            "CityCode": "11001",
            "AddressLine": "Calle 97a No. 9 - 45",
            "Country": "CO",
            "PostalCode": "000000"
        }
    }
}