Error al bombinar productos con IVA y sin IVA en una misma factura
Hola buenos dias. Tengo un problema cuando en Dolibarr se facturan productos con IVA y sin IVA combinados en una misma factura, independientes no presentan error:
"Regla: FAS01b, Rechazo: Existe mas de un grupo con informacion de totales para un mismo tributo en la factura",
"Regla: FAS14, Notificaci\u00f3n: No corresponde a un valor valido de la lista",
"Regla: RUT01, Notificaci\u00f3n: La validaci\u00f3n del estado del RUT pr\u00f3ximamente estar\u00e1 disponible."
El JSON que envia Dolibarr es:
{
"number": 16,
"type_document_id": 1,
"date": "2025-03-23",
"time": "12:04:20",
"customer": {
"type_document_identification_id": 3,
"identification_number": 222222222222,
"type_organization_id": 2,
"name": "CONSUMIDOR FINAL",
"phone": "999999",
"address": "VILLA DEL ROSARIO",
"email": "notiene@gmail.com",
"municipality_id": 819,
"merchant_registration": "000000-00",
"type_liability_id": 117,
"dv": 7,
"type_regime_id": 2
},
"payment_form": {
"payment_form_id": 1,
"payment_method_id": 10,
"payment_due_date": "2025-03-23",
"duration_measure": 0
},
"resolution_number": "18764090193894",
"prefix": "FEVM",
"legal_monetary_totals": {
"line_extension_amount": 117160,
"tax_exclusive_amount": 117160,
"tax_inclusive_amount": 118546,
"payable_amount": 118546
},
"invoice_lines": [
{
"free_of_charge_indicator": false,
"price_amount": 37000,
"base_quantity": "1.57",
"code": "00005",
"description": "CHATA",
"unit_measure_id": 70,
"invoiced_quantity": "1.57",
"line_extension_amount": 58090,
"type_item_identification_id": 4,
"tax_totals": [
{
"tax_id": 1,
"tax_amount": 0,
"taxable_amount": 58090,
"percent": 0
}
]
},
{
"free_of_charge_indicator": false,
"price_amount": 24000,
"base_quantity": "1.155",
"code": "00034",
"description": "LONGANIZA",
"unit_measure_id": 70,
"invoiced_quantity": "1.155",
"line_extension_amount": 27720,
"type_item_identification_id": 4,
"tax_totals": [
{
"tax_id": 1,
"tax_amount": 1386,
"taxable_amount": 27720,
"percent": 5
}
]
},
{
"free_of_charge_indicator": false,
"price_amount": 22000,
"base_quantity": "1.425",
"code": "00027",
"description": "CHULETA FRESCA",
"unit_measure_id": 70,
"invoiced_quantity": "1.425",
"line_extension_amount": 31350,
"type_item_identification_id": 4,
"tax_totals": [
{
"tax_id": 1,
"tax_amount": 0,
"taxable_amount": 31350,
"percent": 0
}
]
}
],
"tax_totals": [
{
"tax_id": 1,
"tax_amount": 1386,
"taxable_amount": 117160,
"percent": 1.1829976101058381
}
],
"notes": null
}