<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>

ERROR - 2026-03-03 00:08:05 --> Could not find the language line "today"
ERROR - 2026-03-03 00:08:06 --> Could not find the language line "today"
ERROR - 2026-03-03 00:08:06 --> Could not find the language line "shop"
ERROR - 2026-03-03 00:08:06 --> Could not find the language line "toggle_alignment"
ERROR - 2026-03-03 00:08:06 --> Could not find the language line "lista de Facturas"
ERROR - 2026-03-03 00:08:06 --> Could not find the language line "Bonificaciones"
ERROR - 2026-03-03 00:08:06 --> Could not find the language line "Lista de Bonificaciones"
ERROR - 2026-03-03 00:08:06 --> Could not find the language line "Agregar Bonificación"
ERROR - 2026-03-03 00:08:06 --> Could not find the language line "Mermas"
ERROR - 2026-03-03 00:08:06 --> Could not find the language line "Lista de Merma"
ERROR - 2026-03-03 00:08:06 --> Could not find the language line "Agregar Merma"
ERROR - 2026-03-03 00:08:06 --> Could not find the language line "Certificadores"
ERROR - 2026-03-03 00:08:06 --> Could not find the language line "listado de Certifiacadores"
ERROR - 2026-03-03 00:08:06 --> Could not find the language line "Agregar Certitificador"
ERROR - 2026-03-03 00:08:06 --> Could not find the language line "Listado de Cliente Certificador"
ERROR - 2026-03-03 00:08:06 --> Could not find the language line "Agregar Cliente Certificador"
ERROR - 2026-03-03 00:08:06 --> Could not find the language line "Informe de Consolidado"
ERROR - 2026-03-03 00:08:06 --> Could not find the language line "Informe de mermas"
ERROR - 2026-03-03 00:08:06 --> Could not find the language line "Informe de bonificaciones"
ERROR - 2026-03-03 00:08:06 --> Could not find the language line "Informe de Rutas"
ERROR - 2026-03-03 00:08:06 --> Could not find the language line "ordered"
ERROR - 2026-03-03 00:08:06 --> Could not find the language line "due"
ERROR - 2026-03-03 00:08:06 --> Could not find the language line "transferring"
ERROR - 2026-03-03 00:08:06 --> Could not find the language line "download"
ERROR - 2026-03-03 00:08:06 --> Could not find the language line "required_invalid"
ERROR - 2026-03-03 00:08:07 --> Could not find the language line "today"
ERROR - 2026-03-03 00:08:08 --> Could not find the language line "today"
ERROR - 2026-03-03 00:08:17 --> Could not find the language line "today"
ERROR - 2026-03-03 00:08:17 --> ========== DEBUG NCRE ==========
ERROR - 2026-03-03 00:08:17 --> POST COMPLETO: {"invoice_id":"14","items":"[{\"id\":22,\"cantidad\":5,\"precio\":15},{\"id\":21,\"cantidad\":2,\"precio\":5}]","producto_cantidad":{"22":"5.0000","21":"2"},"descuento_ncre":"0","tipo_descuento":"porcentaje","nota_credito_razon":"se facturaron productos de mas"}
ERROR - 2026-03-03 00:08:17 --> invoice_id: 14
ERROR - 2026-03-03 00:08:17 --> items: [{"id":22,"cantidad":5,"precio":15},{"id":21,"cantidad":2,"precio":5}]
ERROR - 2026-03-03 00:08:17 --> razon: se facturaron productos de mas
ERROR - 2026-03-03 00:08:17 --> ITEMS DECODIFICADOS: [{"id":22,"cantidad":5,"precio":15},{"id":21,"cantidad":2,"precio":5}]
ERROR - 2026-03-03 00:08:17 --> INVOICE_ID RECIBIDO: 14
ERROR - 2026-03-03 00:08:17 --> FACTURA ORIGINAL: {"id":"14","ticket_id":"SALE2026\/02\/0026","branch_id":"1","branch_name":"MACRETO RETALHULEU","client_nit":"37748505","xml_base64":"[encoded data, 20920 characters]","html_base64":"","pdf_base64":"","qr_base64":null,"file_name_suggested":null,"url":null,"issued_at":"2026-02-25 17:21:00","created_at":"2026-02-25 17:24:06","company_id":"3","receptor_nombre":"GONZ\u00c1LEZ,MURILLO,,STEVE,ALEXANDER","receptor_direccion":"CIUDAD","receptor_municipio":"GUATEMALA","receptor_departamento":"GUATEMALA","receptor_pais":"GT","grand_total":"90.00","total_tax":"9.64","total_discount":"0.00","created_by_user_id":"3","serie":"929C10BA","numero":"686048580","qr_url":null,"uuid":"929C10BA-28E4-4544-AEEC-658B7866A1BD","tipo_dte":"FACT","anulada":"NO","fecha_anulacion":null,"motivo_anulacion":null,"acuse_anulacion":null,"anulada_por":null,"ncre":"NO"}
ERROR - 2026-03-03 00:08:17 --> ITEMS PROCESADOS: [{"product_id":22,"product_code":"","product_name":"","quantity":5,"unit_price":15,"taxable_amount":66.964286,"tax_amount":8.035714,"total":75,"discount":0},{"product_id":21,"product_code":"","product_name":"","quantity":2,"unit_price":5,"taxable_amount":8.928571,"tax_amount":1.071429,"total":10,"discount":0}]
ERROR - 2026-03-03 00:08:17 --> NOTA CREDITO DATA: {"reference_no":"NCRE-1772518097","invoice_id":"14","date":"2026-03-03 00:08:17","total":85,"total_tax":9.107143,"total_discount":0,"subTotal":75.892857,"totalAmount":85,"taxes":9.107143,"discounts":0,"note":"se facturaron productos de mas","branch_id":"1","branch_name":"MACRETO RETALHULEU","taxID":"37748505","receiverName":"GONZ\u00c1LEZ,MURILLO,,STEVE,ALEXANDER"}
ERROR - 2026-03-03 00:08:17 --> JSON DIGIFACT GENERADO: {"Version":"1.00","CountryCode":"GT","Header":{"DocType":"NCRE","IssuedDateTime":"2026-03-03T00:08:17-06:00","Currency":"GTQ"},"Seller":{"TaxID":"62847325","TaxIDAdditionalInfo":[{"Name":"AfiliacionIVA","Data":null,"Value":"GEN"}],"Name":"MACRETO, SOCIEDAD ANONIMA","BranchInfo":{"Code":"1","Name":"MACRETO, SOCIEDAD ANONIMA","AddressInfo":{"Address":"1 AVENIDA 4-01 ZONA 5","City":"01001","District":"RETALHULEU","State":"RETALHULEU","Country":"GT"}}},"Buyer":{"TaxID":"37748505","Name":"GONZ\u00c1LEZ,MURILLO,,STEVE,ALEXANDER","AddressInfo":{"Address":"CIUDAD","City":"GUATEMALA","District":"GUATEMALA","State":"GUATEMALA","Country":"GT"}},"Items":[{"Number":"1","Codes":null,"Type":"Bien","Description":"","Qty":"5.0000","UnitOfMeasure":"UND","Price":"15.00000","Discounts":null,"Taxes":{"Tax":[{"Code":"1","Description":"IVA","TaxableAmount":"66.964286","Amount":"8.03571"}]},"Totals":{"TotalItem":"75.0000"}},{"Number":"2","Codes":null,"Type":"Bien","Description":"","Qty":"2.0000","UnitOfMeasure":"UND","Price":"5.00000","Discounts":null,"Taxes":{"Tax":[{"Code":"1","Description":"IVA","TaxableAmount":"8.928571","Amount":"1.07143"}]},"Totals":{"TotalItem":"10.0000"}}],"Totals":{"TotalTaxes":{"TotalTax":[{"Description":"IVA","Amount":"9.10714"}]},"GrandTotal":{"InvoiceTotal":"85.0000"}},"AdditionalDocumentInfo":{"AdditionalInfo":[{"Code":"NCRE","Type":"COMPLEMENTO","AditionalInfo":[{"Name":"NumeroAutorizacionDocumentoOrigen","Data":null,"Value":"929C10BA-28E4-4544-AEEC-658B7866A1BD"},{"Name":"FechaEmisionDocumentoOrigen","Data":null,"Value":"2026-02-25"},{"Name":"MotivoAjuste","Data":null,"Value":"se facturaron productos de mas"},{"Name":"NumeroDocumentoOrigen","Data":null,"Value":"686048580"},{"Name":"SerieDocumentoOrigen","Data":null,"Value":"929C10BA"}]},{"Code":"CODIGO-SECUENCIAL-0001","Type":"ADENDA","AditionalData":{"Data":[{"Info":[{"Name":"OBSERVACIONES","Data":null,"Value":"-"},{"Name":"CANTIDAD_LETRAS","Data":null,"Value":"OCHENTA Y CINCO CON 00\/100"}]}]},"AditionalInfo":[{"Name":"VALIDAR_REFERENCIA_INTERNA","Data":null,"Value":"NO_VALIDAR"}]}]}}
ERROR - 2026-03-03 00:08:17 --> =========== JSON NCRE GENERADO ===========
ERROR - 2026-03-03 00:08:17 --> {"Version":"1.00","CountryCode":"GT","Header":{"DocType":"NCRE","IssuedDateTime":"2026-03-03T00:08:17-06:00","Currency":"GTQ"},"Seller":{"TaxID":"62847325","TaxIDAdditionalInfo":[{"Name":"AfiliacionIVA","Data":null,"Value":"GEN"}],"Name":"MACRETO, SOCIEDAD ANONIMA","BranchInfo":{"Code":"1","Name":"MACRETO, SOCIEDAD ANONIMA","AddressInfo":{"Address":"1 AVENIDA 4-01 ZONA 5","City":"01001","District":"RETALHULEU","State":"RETALHULEU","Country":"GT"}}},"Buyer":{"TaxID":"37748505","Name":"GONZ\u00c1LEZ,MURILLO,,STEVE,ALEXANDER","AddressInfo":{"Address":"CIUDAD","City":"GUATEMALA","District":"GUATEMALA","State":"GUATEMALA","Country":"GT"}},"Items":[{"Number":"1","Codes":null,"Type":"Bien","Description":"","Qty":"5.0000","UnitOfMeasure":"UND","Price":"15.00000","Discounts":null,"Taxes":{"Tax":[{"Code":"1","Description":"IVA","TaxableAmount":"66.964286","Amount":"8.03571"}]},"Totals":{"TotalItem":"75.0000"}},{"Number":"2","Codes":null,"Type":"Bien","Description":"","Qty":"2.0000","UnitOfMeasure":"UND","Price":"5.00000","Discounts":null,"Taxes":{"Tax":[{"Code":"1","Description":"IVA","TaxableAmount":"8.928571","Amount":"1.07143"}]},"Totals":{"TotalItem":"10.0000"}}],"Totals":{"TotalTaxes":{"TotalTax":[{"Description":"IVA","Amount":"9.10714"}]},"GrandTotal":{"InvoiceTotal":"85.0000"}},"AdditionalDocumentInfo":{"AdditionalInfo":[{"Code":"NCRE","Type":"COMPLEMENTO","AditionalInfo":[{"Name":"NumeroAutorizacionDocumentoOrigen","Data":null,"Value":"929C10BA-28E4-4544-AEEC-658B7866A1BD"},{"Name":"FechaEmisionDocumentoOrigen","Data":null,"Value":"2026-02-25"},{"Name":"MotivoAjuste","Data":null,"Value":"se facturaron productos de mas"},{"Name":"NumeroDocumentoOrigen","Data":null,"Value":"686048580"},{"Name":"SerieDocumentoOrigen","Data":null,"Value":"929C10BA"}]},{"Code":"CODIGO-SECUENCIAL-0001","Type":"ADENDA","AditionalData":{"Data":[{"Info":[{"Name":"OBSERVACIONES","Data":null,"Value":"-"},{"Name":"CANTIDAD_LETRAS","Data":null,"Value":"OCHENTA Y CINCO CON 00\/100"}]}]},"AditionalInfo":[{"Name":"VALIDAR_REFERENCIA_INTERNA","Data":null,"Value":"NO_VALIDAR"}]}]}}
ERROR - 2026-03-03 00:08:17 --> =========== FIN JSON NCRE ===========
ERROR - 2026-03-03 00:08:17 --> Could not find the language line "today"
ERROR - 2026-03-03 00:11:22 --> Could not find the language line "today"
ERROR - 2026-03-03 00:11:23 --> Could not find the language line "today"
ERROR - 2026-03-03 00:11:23 --> Could not find the language line "shop"
ERROR - 2026-03-03 00:11:23 --> Could not find the language line "toggle_alignment"
ERROR - 2026-03-03 00:11:23 --> Could not find the language line "lista de Facturas"
ERROR - 2026-03-03 00:11:23 --> Could not find the language line "Bonificaciones"
ERROR - 2026-03-03 00:11:23 --> Could not find the language line "Lista de Bonificaciones"
ERROR - 2026-03-03 00:11:23 --> Could not find the language line "Agregar Bonificación"
ERROR - 2026-03-03 00:11:23 --> Could not find the language line "Mermas"
ERROR - 2026-03-03 00:11:23 --> Could not find the language line "Lista de Merma"
ERROR - 2026-03-03 00:11:23 --> Could not find the language line "Agregar Merma"
ERROR - 2026-03-03 00:11:23 --> Could not find the language line "Certificadores"
ERROR - 2026-03-03 00:11:23 --> Could not find the language line "listado de Certifiacadores"
ERROR - 2026-03-03 00:11:23 --> Could not find the language line "Agregar Certitificador"
ERROR - 2026-03-03 00:11:23 --> Could not find the language line "Listado de Cliente Certificador"
ERROR - 2026-03-03 00:11:23 --> Could not find the language line "Agregar Cliente Certificador"
ERROR - 2026-03-03 00:11:23 --> Could not find the language line "Informe de Consolidado"
ERROR - 2026-03-03 00:11:23 --> Could not find the language line "Informe de mermas"
ERROR - 2026-03-03 00:11:23 --> Could not find the language line "Informe de bonificaciones"
ERROR - 2026-03-03 00:11:23 --> Could not find the language line "Informe de Rutas"
ERROR - 2026-03-03 00:11:23 --> Could not find the language line "ordered"
ERROR - 2026-03-03 00:11:23 --> Could not find the language line "due"
ERROR - 2026-03-03 00:11:23 --> Could not find the language line "transferring"
ERROR - 2026-03-03 00:11:23 --> Could not find the language line "download"
ERROR - 2026-03-03 00:11:23 --> Could not find the language line "required_invalid"
ERROR - 2026-03-03 00:11:24 --> Could not find the language line "today"
ERROR - 2026-03-03 00:11:25 --> Could not find the language line "today"
ERROR - 2026-03-03 00:11:34 --> Could not find the language line "today"
ERROR - 2026-03-03 00:11:34 --> ========== DEBUG NCRE ==========
ERROR - 2026-03-03 00:11:34 --> POST COMPLETO: {"invoice_id":"14","items":"[{\"id\":22,\"cantidad\":5,\"precio\":15},{\"id\":21,\"cantidad\":2,\"precio\":5}]","producto_cantidad":{"22":"5.0000","21":"2"},"descuento_ncre":"0","tipo_descuento":"porcentaje","nota_credito_razon":"se facturaron productos de mas"}
ERROR - 2026-03-03 00:11:34 --> invoice_id: 14
ERROR - 2026-03-03 00:11:34 --> items: [{"id":22,"cantidad":5,"precio":15},{"id":21,"cantidad":2,"precio":5}]
ERROR - 2026-03-03 00:11:34 --> razon: se facturaron productos de mas
ERROR - 2026-03-03 00:11:34 --> ITEMS DECODIFICADOS: [{"id":22,"cantidad":5,"precio":15},{"id":21,"cantidad":2,"precio":5}]
ERROR - 2026-03-03 00:11:34 --> INVOICE_ID RECIBIDO: 14
ERROR - 2026-03-03 00:11:34 --> FACTURA ORIGINAL: {"id":"14","ticket_id":"SALE2026\/02\/0026","branch_id":"1","branch_name":"MACRETO RETALHULEU","client_nit":"37748505","xml_base64":"[encoded data, 20920 characters]","html_base64":"","pdf_base64":"","qr_base64":null,"file_name_suggested":null,"url":null,"issued_at":"2026-02-25 17:21:00","created_at":"2026-02-25 17:24:06","company_id":"3","receptor_nombre":"GONZ\u00c1LEZ,MURILLO,,STEVE,ALEXANDER","receptor_direccion":"CIUDAD","receptor_municipio":"GUATEMALA","receptor_departamento":"GUATEMALA","receptor_pais":"GT","grand_total":"90.00","total_tax":"9.64","total_discount":"0.00","created_by_user_id":"3","serie":"929C10BA","numero":"686048580","qr_url":null,"uuid":"929C10BA-28E4-4544-AEEC-658B7866A1BD","tipo_dte":"FACT","anulada":"NO","fecha_anulacion":null,"motivo_anulacion":null,"acuse_anulacion":null,"anulada_por":null,"ncre":"NO"}
ERROR - 2026-03-03 00:11:34 --> ITEMS PROCESADOS: [{"product_id":22,"product_code":"","product_name":"","quantity":5,"unit_price":15,"taxable_amount":66.964286,"tax_amount":8.035714,"total":75,"discount":0},{"product_id":21,"product_code":"","product_name":"","quantity":2,"unit_price":5,"taxable_amount":8.928571,"tax_amount":1.071429,"total":10,"discount":0}]
ERROR - 2026-03-03 00:11:34 --> NOTA CREDITO DATA: {"reference_no":"NCRE-1772518294","invoice_id":"14","date":"2026-03-03 00:11:34","total":85,"total_tax":9.107143,"total_discount":0,"subTotal":75.892857,"totalAmount":85,"taxes":9.107143,"discounts":0,"note":"se facturaron productos de mas","branch_id":"1","branch_name":"MACRETO RETALHULEU","taxID":"37748505","receiverName":"GONZ\u00c1LEZ,MURILLO,,STEVE,ALEXANDER"}
ERROR - 2026-03-03 00:11:34 --> JSON DIGIFACT GENERADO: {"Version":"1.00","CountryCode":"GT","Header":{"DocType":"NCRE","IssuedDateTime":"2026-03-03T00:11:34-06:00","Currency":"GTQ"},"Seller":{"TaxID":"62847325","TaxIDAdditionalInfo":[{"Name":"AfiliacionIVA","Data":null,"Value":"GEN"}],"Name":"MACRETO, SOCIEDAD ANONIMA","BranchInfo":{"Code":"1","Name":"MACRETO, SOCIEDAD ANONIMA","AddressInfo":{"Address":"1 AVENIDA 4-01 ZONA 5","City":"01001","District":"RETALHULEU","State":"RETALHULEU","Country":"GT"}}},"Buyer":{"TaxID":"37748505","Name":"GONZ\u00c1LEZ,MURILLO,,STEVE,ALEXANDER","AddressInfo":{"Address":"CIUDAD","City":"GUATEMALA","District":"GUATEMALA","State":"GUATEMALA","Country":"GT"}},"Items":[{"Number":"1","Codes":null,"Type":"Bien","Description":"","Qty":"5.0000","UnitOfMeasure":"UND","Price":"15.00000","Discounts":null,"Taxes":{"Tax":[{"Code":"1","Description":"IVA","TaxableAmount":"66.964286","Amount":"8.03571"}]},"Totals":{"TotalItem":"75.0000"}},{"Number":"2","Codes":null,"Type":"Bien","Description":"","Qty":"2.0000","UnitOfMeasure":"UND","Price":"5.00000","Discounts":null,"Taxes":{"Tax":[{"Code":"1","Description":"IVA","TaxableAmount":"8.928571","Amount":"1.07143"}]},"Totals":{"TotalItem":"10.0000"}}],"Totals":{"TotalTaxes":{"TotalTax":[{"Description":"IVA","Amount":"9.10714"}]},"GrandTotal":{"InvoiceTotal":"85.0000"}},"AdditionalDocumentInfo":{"AdditionalInfo":[{"Code":"NCRE","Type":"COMPLEMENTO","AditionalInfo":[{"Name":"NumeroAutorizacionDocumentoOrigen","Data":null,"Value":"929C10BA-28E4-4544-AEEC-658B7866A1BD"},{"Name":"FechaEmisionDocumentoOrigen","Data":null,"Value":"2026-02-25"},{"Name":"MotivoAjuste","Data":null,"Value":"se facturaron productos de mas"},{"Name":"NumeroDocumentoOrigen","Data":null,"Value":"686048580"},{"Name":"SerieDocumentoOrigen","Data":null,"Value":"929C10BA"}]},{"Code":"CODIGO-SECUENCIAL-0001","Type":"ADENDA","AditionalData":{"Data":[{"Info":[{"Name":"OBSERVACIONES","Data":null,"Value":"-"},{"Name":"CANTIDAD_LETRAS","Data":null,"Value":"OCHENTA Y CINCO CON 00\/100"}]}]},"AditionalInfo":[{"Name":"VALIDAR_REFERENCIA_INTERNA","Data":null,"Value":"NO_VALIDAR"}]}]}}
ERROR - 2026-03-03 00:11:34 --> =========== JSON NCRE GENERADO ===========
ERROR - 2026-03-03 00:11:34 --> {"Version":"1.00","CountryCode":"GT","Header":{"DocType":"NCRE","IssuedDateTime":"2026-03-03T00:11:34-06:00","Currency":"GTQ"},"Seller":{"TaxID":"62847325","TaxIDAdditionalInfo":[{"Name":"AfiliacionIVA","Data":null,"Value":"GEN"}],"Name":"MACRETO, SOCIEDAD ANONIMA","BranchInfo":{"Code":"1","Name":"MACRETO, SOCIEDAD ANONIMA","AddressInfo":{"Address":"1 AVENIDA 4-01 ZONA 5","City":"01001","District":"RETALHULEU","State":"RETALHULEU","Country":"GT"}}},"Buyer":{"TaxID":"37748505","Name":"GONZ\u00c1LEZ,MURILLO,,STEVE,ALEXANDER","AddressInfo":{"Address":"CIUDAD","City":"GUATEMALA","District":"GUATEMALA","State":"GUATEMALA","Country":"GT"}},"Items":[{"Number":"1","Codes":null,"Type":"Bien","Description":"","Qty":"5.0000","UnitOfMeasure":"UND","Price":"15.00000","Discounts":null,"Taxes":{"Tax":[{"Code":"1","Description":"IVA","TaxableAmount":"66.964286","Amount":"8.03571"}]},"Totals":{"TotalItem":"75.0000"}},{"Number":"2","Codes":null,"Type":"Bien","Description":"","Qty":"2.0000","UnitOfMeasure":"UND","Price":"5.00000","Discounts":null,"Taxes":{"Tax":[{"Code":"1","Description":"IVA","TaxableAmount":"8.928571","Amount":"1.07143"}]},"Totals":{"TotalItem":"10.0000"}}],"Totals":{"TotalTaxes":{"TotalTax":[{"Description":"IVA","Amount":"9.10714"}]},"GrandTotal":{"InvoiceTotal":"85.0000"}},"AdditionalDocumentInfo":{"AdditionalInfo":[{"Code":"NCRE","Type":"COMPLEMENTO","AditionalInfo":[{"Name":"NumeroAutorizacionDocumentoOrigen","Data":null,"Value":"929C10BA-28E4-4544-AEEC-658B7866A1BD"},{"Name":"FechaEmisionDocumentoOrigen","Data":null,"Value":"2026-02-25"},{"Name":"MotivoAjuste","Data":null,"Value":"se facturaron productos de mas"},{"Name":"NumeroDocumentoOrigen","Data":null,"Value":"686048580"},{"Name":"SerieDocumentoOrigen","Data":null,"Value":"929C10BA"}]},{"Code":"CODIGO-SECUENCIAL-0001","Type":"ADENDA","AditionalData":{"Data":[{"Info":[{"Name":"OBSERVACIONES","Data":null,"Value":"-"},{"Name":"CANTIDAD_LETRAS","Data":null,"Value":"OCHENTA Y CINCO CON 00\/100"}]}]},"AditionalInfo":[{"Name":"VALIDAR_REFERENCIA_INTERNA","Data":null,"Value":"NO_VALIDAR"}]}]}}
ERROR - 2026-03-03 00:11:34 --> =========== FIN JSON NCRE ===========
ERROR - 2026-03-03 00:11:35 --> Could not find the language line "today"
ERROR - 2026-03-03 00:13:46 --> Could not find the language line "today"
ERROR - 2026-03-03 00:13:49 --> Could not find the language line "today"
ERROR - 2026-03-03 00:13:49 --> ========== DEBUG NCRE ==========
ERROR - 2026-03-03 00:13:49 --> POST COMPLETO: {"invoice_id":"14","items":"[{\"id\":22,\"cantidad\":5,\"precio\":15},{\"id\":21,\"cantidad\":2,\"precio\":5}]","producto_cantidad":{"22":"5.0000","21":"2"},"descuento_ncre":"0","tipo_descuento":"porcentaje","nota_credito_razon":"se facturaron productos de mas"}
ERROR - 2026-03-03 00:13:49 --> invoice_id: 14
ERROR - 2026-03-03 00:13:49 --> items: [{"id":22,"cantidad":5,"precio":15},{"id":21,"cantidad":2,"precio":5}]
ERROR - 2026-03-03 00:13:49 --> razon: se facturaron productos de mas
ERROR - 2026-03-03 00:13:49 --> ITEMS DECODIFICADOS: [{"id":22,"cantidad":5,"precio":15},{"id":21,"cantidad":2,"precio":5}]
ERROR - 2026-03-03 00:13:49 --> INVOICE_ID RECIBIDO: 14
ERROR - 2026-03-03 00:13:49 --> FACTURA ORIGINAL: {"id":"14","ticket_id":"SALE2026\/02\/0026","branch_id":"1","branch_name":"MACRETO RETALHULEU","client_nit":"37748505","xml_base64":"[encoded data, 20920 characters]","html_base64":"","pdf_base64":"","qr_base64":null,"file_name_suggested":null,"url":null,"issued_at":"2026-02-25 17:21:00","created_at":"2026-02-25 17:24:06","company_id":"3","receptor_nombre":"GONZ\u00c1LEZ,MURILLO,,STEVE,ALEXANDER","receptor_direccion":"CIUDAD","receptor_municipio":"GUATEMALA","receptor_departamento":"GUATEMALA","receptor_pais":"GT","grand_total":"90.00","total_tax":"9.64","total_discount":"0.00","created_by_user_id":"3","serie":"929C10BA","numero":"686048580","qr_url":null,"uuid":"929C10BA-28E4-4544-AEEC-658B7866A1BD","tipo_dte":"FACT","anulada":"NO","fecha_anulacion":null,"motivo_anulacion":null,"acuse_anulacion":null,"anulada_por":null,"ncre":"NO"}
ERROR - 2026-03-03 00:13:49 --> ITEMS PROCESADOS: [{"product_id":22,"product_code":"","product_name":"","quantity":5,"unit_price":15,"taxable_amount":66.964286,"tax_amount":8.035714,"total":75,"discount":0},{"product_id":21,"product_code":"","product_name":"","quantity":2,"unit_price":5,"taxable_amount":8.928571,"tax_amount":1.071429,"total":10,"discount":0}]
ERROR - 2026-03-03 00:13:49 --> NOTA CREDITO DATA: {"reference_no":"NCRE-1772518429","invoice_id":"14","date":"2026-03-03 00:13:49","total":85,"total_tax":9.107143,"total_discount":0,"subTotal":75.892857,"totalAmount":85,"taxes":9.107143,"discounts":0,"note":"se facturaron productos de mas","branch_id":"1","branch_name":"MACRETO RETALHULEU","taxID":"37748505","receiverName":"GONZ\u00c1LEZ,MURILLO,,STEVE,ALEXANDER"}
ERROR - 2026-03-03 00:13:49 --> JSON DIGIFACT GENERADO: {"Version":"1.00","CountryCode":"GT","Header":{"DocType":"NCRE","IssuedDateTime":"2026-03-03T00:13:49-06:00","Currency":"GTQ"},"Seller":{"TaxID":"62847325","TaxIDAdditionalInfo":[{"Name":"AfiliacionIVA","Data":null,"Value":"GEN"}],"Name":"MACRETO, SOCIEDAD ANONIMA","BranchInfo":{"Code":"1","Name":"MACRETO, SOCIEDAD ANONIMA","AddressInfo":{"Address":"1 AVENIDA 4-01 ZONA 5","City":"01001","District":"RETALHULEU","State":"RETALHULEU","Country":"GT"}}},"Buyer":{"TaxID":"37748505","Name":"GONZ\u00c1LEZ,MURILLO,,STEVE,ALEXANDER","AddressInfo":{"Address":"CIUDAD","City":"GUATEMALA","District":"GUATEMALA","State":"GUATEMALA","Country":"GT"}},"Items":[{"Number":"1","Codes":null,"Type":"Bien","Description":"","Qty":"5.0000","UnitOfMeasure":"UND","Price":"15.00000","Discounts":null,"Taxes":{"Tax":[{"Code":"1","Description":"IVA","TaxableAmount":"66.964286","Amount":"8.03571"}]},"Totals":{"TotalItem":"75.0000"}},{"Number":"2","Codes":null,"Type":"Bien","Description":"","Qty":"2.0000","UnitOfMeasure":"UND","Price":"5.00000","Discounts":null,"Taxes":{"Tax":[{"Code":"1","Description":"IVA","TaxableAmount":"8.928571","Amount":"1.07143"}]},"Totals":{"TotalItem":"10.0000"}}],"Totals":{"TotalTaxes":{"TotalTax":[{"Description":"IVA","Amount":"9.10714"}]},"GrandTotal":{"InvoiceTotal":"85.0000"}},"AdditionalDocumentInfo":{"AdditionalInfo":[{"Code":"NCRE","Type":"COMPLEMENTO","AditionalInfo":[{"Name":"NumeroAutorizacionDocumentoOrigen","Data":null,"Value":"929C10BA-28E4-4544-AEEC-658B7866A1BD"},{"Name":"FechaEmisionDocumentoOrigen","Data":null,"Value":"2026-02-25"},{"Name":"MotivoAjuste","Data":null,"Value":"se facturaron productos de mas"},{"Name":"NumeroDocumentoOrigen","Data":null,"Value":"686048580"},{"Name":"SerieDocumentoOrigen","Data":null,"Value":"929C10BA"}]},{"Code":"CODIGO-SECUENCIAL-0001","Type":"ADENDA","AditionalData":{"Data":[{"Info":[{"Name":"OBSERVACIONES","Data":null,"Value":"-"},{"Name":"CANTIDAD_LETRAS","Data":null,"Value":"OCHENTA Y CINCO CON 00\/100"}]}]},"AditionalInfo":[{"Name":"VALIDAR_REFERENCIA_INTERNA","Data":null,"Value":"NO_VALIDAR"}]}]}}
ERROR - 2026-03-03 00:13:49 --> =========== JSON NCRE GENERADO ===========
ERROR - 2026-03-03 00:13:49 --> {"Version":"1.00","CountryCode":"GT","Header":{"DocType":"NCRE","IssuedDateTime":"2026-03-03T00:13:49-06:00","Currency":"GTQ"},"Seller":{"TaxID":"62847325","TaxIDAdditionalInfo":[{"Name":"AfiliacionIVA","Data":null,"Value":"GEN"}],"Name":"MACRETO, SOCIEDAD ANONIMA","BranchInfo":{"Code":"1","Name":"MACRETO, SOCIEDAD ANONIMA","AddressInfo":{"Address":"1 AVENIDA 4-01 ZONA 5","City":"01001","District":"RETALHULEU","State":"RETALHULEU","Country":"GT"}}},"Buyer":{"TaxID":"37748505","Name":"GONZ\u00c1LEZ,MURILLO,,STEVE,ALEXANDER","AddressInfo":{"Address":"CIUDAD","City":"GUATEMALA","District":"GUATEMALA","State":"GUATEMALA","Country":"GT"}},"Items":[{"Number":"1","Codes":null,"Type":"Bien","Description":"","Qty":"5.0000","UnitOfMeasure":"UND","Price":"15.00000","Discounts":null,"Taxes":{"Tax":[{"Code":"1","Description":"IVA","TaxableAmount":"66.964286","Amount":"8.03571"}]},"Totals":{"TotalItem":"75.0000"}},{"Number":"2","Codes":null,"Type":"Bien","Description":"","Qty":"2.0000","UnitOfMeasure":"UND","Price":"5.00000","Discounts":null,"Taxes":{"Tax":[{"Code":"1","Description":"IVA","TaxableAmount":"8.928571","Amount":"1.07143"}]},"Totals":{"TotalItem":"10.0000"}}],"Totals":{"TotalTaxes":{"TotalTax":[{"Description":"IVA","Amount":"9.10714"}]},"GrandTotal":{"InvoiceTotal":"85.0000"}},"AdditionalDocumentInfo":{"AdditionalInfo":[{"Code":"NCRE","Type":"COMPLEMENTO","AditionalInfo":[{"Name":"NumeroAutorizacionDocumentoOrigen","Data":null,"Value":"929C10BA-28E4-4544-AEEC-658B7866A1BD"},{"Name":"FechaEmisionDocumentoOrigen","Data":null,"Value":"2026-02-25"},{"Name":"MotivoAjuste","Data":null,"Value":"se facturaron productos de mas"},{"Name":"NumeroDocumentoOrigen","Data":null,"Value":"686048580"},{"Name":"SerieDocumentoOrigen","Data":null,"Value":"929C10BA"}]},{"Code":"CODIGO-SECUENCIAL-0001","Type":"ADENDA","AditionalData":{"Data":[{"Info":[{"Name":"OBSERVACIONES","Data":null,"Value":"-"},{"Name":"CANTIDAD_LETRAS","Data":null,"Value":"OCHENTA Y CINCO CON 00\/100"}]}]},"AditionalInfo":[{"Name":"VALIDAR_REFERENCIA_INTERNA","Data":null,"Value":"NO_VALIDAR"}]}]}}
ERROR - 2026-03-03 00:13:49 --> =========== FIN JSON NCRE ===========
ERROR - 2026-03-03 00:13:49 --> Could not find the language line "today"
ERROR - 2026-03-03 00:13:51 --> Could not find the language line "today"
ERROR - 2026-03-03 00:13:53 --> Could not find the language line "today"
ERROR - 2026-03-03 00:13:53 --> Could not find the language line "shop"
ERROR - 2026-03-03 00:13:53 --> Could not find the language line "toggle_alignment"
ERROR - 2026-03-03 00:13:53 --> Could not find the language line "lista de Facturas"
ERROR - 2026-03-03 00:13:53 --> Could not find the language line "Bonificaciones"
ERROR - 2026-03-03 00:13:53 --> Could not find the language line "Lista de Bonificaciones"
ERROR - 2026-03-03 00:13:53 --> Could not find the language line "Agregar Bonificación"
ERROR - 2026-03-03 00:13:53 --> Could not find the language line "Mermas"
ERROR - 2026-03-03 00:13:53 --> Could not find the language line "Lista de Merma"
ERROR - 2026-03-03 00:13:53 --> Could not find the language line "Agregar Merma"
ERROR - 2026-03-03 00:13:53 --> Could not find the language line "Certificadores"
ERROR - 2026-03-03 00:13:53 --> Could not find the language line "listado de Certifiacadores"
ERROR - 2026-03-03 00:13:53 --> Could not find the language line "Agregar Certitificador"
ERROR - 2026-03-03 00:13:53 --> Could not find the language line "Listado de Cliente Certificador"
ERROR - 2026-03-03 00:13:53 --> Could not find the language line "Agregar Cliente Certificador"
ERROR - 2026-03-03 00:13:53 --> Could not find the language line "Informe de Consolidado"
ERROR - 2026-03-03 00:13:53 --> Could not find the language line "Informe de mermas"
ERROR - 2026-03-03 00:13:53 --> Could not find the language line "Informe de bonificaciones"
ERROR - 2026-03-03 00:13:53 --> Could not find the language line "Informe de Rutas"
ERROR - 2026-03-03 00:13:53 --> Could not find the language line "ordered"
ERROR - 2026-03-03 00:13:53 --> Could not find the language line "due"
ERROR - 2026-03-03 00:13:53 --> Could not find the language line "transferring"
ERROR - 2026-03-03 00:13:53 --> Could not find the language line "download"
ERROR - 2026-03-03 00:13:53 --> Could not find the language line "required_invalid"
ERROR - 2026-03-03 00:13:53 --> Could not find the language line "today"
ERROR - 2026-03-03 00:13:54 --> Could not find the language line "today"
ERROR - 2026-03-03 00:14:04 --> Could not find the language line "today"
ERROR - 2026-03-03 00:14:04 --> ========== DEBUG NCRE ==========
ERROR - 2026-03-03 00:14:04 --> POST COMPLETO: {"invoice_id":"14","items":"[{\"id\":22,\"cantidad\":5,\"precio\":15},{\"id\":21,\"cantidad\":2,\"precio\":5}]","producto_cantidad":{"22":"5.0000","21":"2"},"descuento_ncre":"0","tipo_descuento":"porcentaje","nota_credito_razon":"se facturaron productos de mas"}
ERROR - 2026-03-03 00:14:04 --> invoice_id: 14
ERROR - 2026-03-03 00:14:04 --> items: [{"id":22,"cantidad":5,"precio":15},{"id":21,"cantidad":2,"precio":5}]
ERROR - 2026-03-03 00:14:04 --> razon: se facturaron productos de mas
ERROR - 2026-03-03 00:14:04 --> ITEMS DECODIFICADOS: [{"id":22,"cantidad":5,"precio":15},{"id":21,"cantidad":2,"precio":5}]
ERROR - 2026-03-03 00:14:04 --> INVOICE_ID RECIBIDO: 14
ERROR - 2026-03-03 00:14:04 --> FACTURA ORIGINAL: {"id":"14","ticket_id":"SALE2026\/02\/0026","branch_id":"1","branch_name":"MACRETO RETALHULEU","client_nit":"37748505","xml_base64":"[encoded data, 20920 characters]","html_base64":"","pdf_base64":"","qr_base64":null,"file_name_suggested":null,"url":null,"issued_at":"2026-02-25 17:21:00","created_at":"2026-02-25 17:24:06","company_id":"3","receptor_nombre":"GONZ\u00c1LEZ,MURILLO,,STEVE,ALEXANDER","receptor_direccion":"CIUDAD","receptor_municipio":"GUATEMALA","receptor_departamento":"GUATEMALA","receptor_pais":"GT","grand_total":"90.00","total_tax":"9.64","total_discount":"0.00","created_by_user_id":"3","serie":"929C10BA","numero":"686048580","qr_url":null,"uuid":"929C10BA-28E4-4544-AEEC-658B7866A1BD","tipo_dte":"FACT","anulada":"NO","fecha_anulacion":null,"motivo_anulacion":null,"acuse_anulacion":null,"anulada_por":null,"ncre":"NO"}
ERROR - 2026-03-03 00:14:04 --> ITEMS PROCESADOS: [{"product_id":22,"product_code":"","product_name":"","quantity":5,"unit_price":15,"taxable_amount":66.964286,"tax_amount":8.035714,"total":75,"discount":0},{"product_id":21,"product_code":"","product_name":"","quantity":2,"unit_price":5,"taxable_amount":8.928571,"tax_amount":1.071429,"total":10,"discount":0}]
ERROR - 2026-03-03 00:14:04 --> NOTA CREDITO DATA: {"reference_no":"NCRE-1772518444","invoice_id":"14","date":"2026-03-03 00:14:04","total":85,"total_tax":9.107143,"total_discount":0,"subTotal":75.892857,"totalAmount":85,"taxes":9.107143,"discounts":0,"note":"se facturaron productos de mas","branch_id":"1","branch_name":"MACRETO RETALHULEU","taxID":"37748505","receiverName":"GONZ\u00c1LEZ,MURILLO,,STEVE,ALEXANDER"}
ERROR - 2026-03-03 00:14:04 --> JSON DIGIFACT GENERADO: {"Version":"1.00","CountryCode":"GT","Header":{"DocType":"NCRE","IssuedDateTime":"2026-03-03T00:14:04-06:00","Currency":"GTQ"},"Seller":{"TaxID":"62847325","TaxIDAdditionalInfo":[{"Name":"AfiliacionIVA","Data":null,"Value":"GEN"}],"Name":"MACRETO, SOCIEDAD ANONIMA","BranchInfo":{"Code":"1","Name":"MACRETO, SOCIEDAD ANONIMA","AddressInfo":{"Address":"1 AVENIDA 4-01 ZONA 5","City":"01001","District":"RETALHULEU","State":"RETALHULEU","Country":"GT"}}},"Buyer":{"TaxID":"37748505","Name":"GONZ\u00c1LEZ,MURILLO,,STEVE,ALEXANDER","AddressInfo":{"Address":"CIUDAD","City":"GUATEMALA","District":"GUATEMALA","State":"GUATEMALA","Country":"GT"}},"Items":[{"Number":"1","Codes":null,"Type":"Bien","Description":"","Qty":"5.0000","UnitOfMeasure":"UND","Price":"15.00000","Discounts":null,"Taxes":{"Tax":[{"Code":"1","Description":"IVA","TaxableAmount":"66.964286","Amount":"8.03571"}]},"Totals":{"TotalItem":"75.0000"}},{"Number":"2","Codes":null,"Type":"Bien","Description":"","Qty":"2.0000","UnitOfMeasure":"UND","Price":"5.00000","Discounts":null,"Taxes":{"Tax":[{"Code":"1","Description":"IVA","TaxableAmount":"8.928571","Amount":"1.07143"}]},"Totals":{"TotalItem":"10.0000"}}],"Totals":{"TotalTaxes":{"TotalTax":[{"Description":"IVA","Amount":"9.10714"}]},"GrandTotal":{"InvoiceTotal":"85.0000"}},"AdditionalDocumentInfo":{"AdditionalInfo":[{"Code":"NCRE","Type":"COMPLEMENTO","AditionalInfo":[{"Name":"NumeroAutorizacionDocumentoOrigen","Data":null,"Value":"929C10BA-28E4-4544-AEEC-658B7866A1BD"},{"Name":"FechaEmisionDocumentoOrigen","Data":null,"Value":"2026-02-25"},{"Name":"MotivoAjuste","Data":null,"Value":"se facturaron productos de mas"},{"Name":"NumeroDocumentoOrigen","Data":null,"Value":"686048580"},{"Name":"SerieDocumentoOrigen","Data":null,"Value":"929C10BA"}]},{"Code":"CODIGO-SECUENCIAL-0001","Type":"ADENDA","AditionalData":{"Data":[{"Info":[{"Name":"OBSERVACIONES","Data":null,"Value":"-"},{"Name":"CANTIDAD_LETRAS","Data":null,"Value":"OCHENTA Y CINCO CON 00\/100"}]}]},"AditionalInfo":[{"Name":"VALIDAR_REFERENCIA_INTERNA","Data":null,"Value":"NO_VALIDAR"}]}]}}
ERROR - 2026-03-03 00:14:04 --> =========== JSON NCRE GENERADO ===========
ERROR - 2026-03-03 00:14:04 --> {"Version":"1.00","CountryCode":"GT","Header":{"DocType":"NCRE","IssuedDateTime":"2026-03-03T00:14:04-06:00","Currency":"GTQ"},"Seller":{"TaxID":"62847325","TaxIDAdditionalInfo":[{"Name":"AfiliacionIVA","Data":null,"Value":"GEN"}],"Name":"MACRETO, SOCIEDAD ANONIMA","BranchInfo":{"Code":"1","Name":"MACRETO, SOCIEDAD ANONIMA","AddressInfo":{"Address":"1 AVENIDA 4-01 ZONA 5","City":"01001","District":"RETALHULEU","State":"RETALHULEU","Country":"GT"}}},"Buyer":{"TaxID":"37748505","Name":"GONZ\u00c1LEZ,MURILLO,,STEVE,ALEXANDER","AddressInfo":{"Address":"CIUDAD","City":"GUATEMALA","District":"GUATEMALA","State":"GUATEMALA","Country":"GT"}},"Items":[{"Number":"1","Codes":null,"Type":"Bien","Description":"","Qty":"5.0000","UnitOfMeasure":"UND","Price":"15.00000","Discounts":null,"Taxes":{"Tax":[{"Code":"1","Description":"IVA","TaxableAmount":"66.964286","Amount":"8.03571"}]},"Totals":{"TotalItem":"75.0000"}},{"Number":"2","Codes":null,"Type":"Bien","Description":"","Qty":"2.0000","UnitOfMeasure":"UND","Price":"5.00000","Discounts":null,"Taxes":{"Tax":[{"Code":"1","Description":"IVA","TaxableAmount":"8.928571","Amount":"1.07143"}]},"Totals":{"TotalItem":"10.0000"}}],"Totals":{"TotalTaxes":{"TotalTax":[{"Description":"IVA","Amount":"9.10714"}]},"GrandTotal":{"InvoiceTotal":"85.0000"}},"AdditionalDocumentInfo":{"AdditionalInfo":[{"Code":"NCRE","Type":"COMPLEMENTO","AditionalInfo":[{"Name":"NumeroAutorizacionDocumentoOrigen","Data":null,"Value":"929C10BA-28E4-4544-AEEC-658B7866A1BD"},{"Name":"FechaEmisionDocumentoOrigen","Data":null,"Value":"2026-02-25"},{"Name":"MotivoAjuste","Data":null,"Value":"se facturaron productos de mas"},{"Name":"NumeroDocumentoOrigen","Data":null,"Value":"686048580"},{"Name":"SerieDocumentoOrigen","Data":null,"Value":"929C10BA"}]},{"Code":"CODIGO-SECUENCIAL-0001","Type":"ADENDA","AditionalData":{"Data":[{"Info":[{"Name":"OBSERVACIONES","Data":null,"Value":"-"},{"Name":"CANTIDAD_LETRAS","Data":null,"Value":"OCHENTA Y CINCO CON 00\/100"}]}]},"AditionalInfo":[{"Name":"VALIDAR_REFERENCIA_INTERNA","Data":null,"Value":"NO_VALIDAR"}]}]}}
ERROR - 2026-03-03 00:14:04 --> =========== FIN JSON NCRE ===========
ERROR - 2026-03-03 00:14:04 --> Could not find the language line "today"
ERROR - 2026-03-03 00:14:06 --> Could not find the language line "today"
ERROR - 2026-03-03 00:24:52 --> Could not find the language line "today"
ERROR - 2026-03-03 00:24:52 --> Could not find the language line "shop"
ERROR - 2026-03-03 00:24:52 --> Could not find the language line "toggle_alignment"
ERROR - 2026-03-03 00:24:52 --> Could not find the language line "lista de Facturas"
ERROR - 2026-03-03 00:24:52 --> Could not find the language line "Bonificaciones"
ERROR - 2026-03-03 00:24:52 --> Could not find the language line "Lista de Bonificaciones"
ERROR - 2026-03-03 00:24:52 --> Could not find the language line "Agregar Bonificación"
ERROR - 2026-03-03 00:24:52 --> Could not find the language line "Mermas"
ERROR - 2026-03-03 00:24:52 --> Could not find the language line "Lista de Merma"
ERROR - 2026-03-03 00:24:52 --> Could not find the language line "Agregar Merma"
ERROR - 2026-03-03 00:24:52 --> Could not find the language line "Certificadores"
ERROR - 2026-03-03 00:24:52 --> Could not find the language line "listado de Certifiacadores"
ERROR - 2026-03-03 00:24:52 --> Could not find the language line "Agregar Certitificador"
ERROR - 2026-03-03 00:24:52 --> Could not find the language line "Listado de Cliente Certificador"
ERROR - 2026-03-03 00:24:52 --> Could not find the language line "Agregar Cliente Certificador"
ERROR - 2026-03-03 00:24:52 --> Could not find the language line "Informe de Consolidado"
ERROR - 2026-03-03 00:24:52 --> Could not find the language line "Informe de mermas"
ERROR - 2026-03-03 00:24:52 --> Could not find the language line "Informe de bonificaciones"
ERROR - 2026-03-03 00:24:52 --> Could not find the language line "Informe de Rutas"
ERROR - 2026-03-03 00:24:52 --> Could not find the language line "ordered"
ERROR - 2026-03-03 00:24:52 --> Could not find the language line "due"
ERROR - 2026-03-03 00:24:52 --> Could not find the language line "transferring"
ERROR - 2026-03-03 00:24:52 --> Could not find the language line "download"
ERROR - 2026-03-03 00:24:52 --> Could not find the language line "required_invalid"
ERROR - 2026-03-03 00:24:53 --> Could not find the language line "today"
ERROR - 2026-03-03 00:24:54 --> Could not find the language line "today"
ERROR - 2026-03-03 00:25:03 --> Could not find the language line "today"
ERROR - 2026-03-03 00:25:03 --> ========== DEBUG NCRE ==========
ERROR - 2026-03-03 00:25:03 --> POST COMPLETO: {"invoice_id":"14","items":"[{\"id\":22,\"cantidad\":5,\"precio\":15},{\"id\":21,\"cantidad\":2,\"precio\":5}]","producto_cantidad":{"22":"5.0000","21":"2"},"descuento_ncre":"0","tipo_descuento":"porcentaje","nota_credito_razon":"se facturaron productos de mas"}
ERROR - 2026-03-03 00:25:03 --> invoice_id: 14
ERROR - 2026-03-03 00:25:03 --> items: [{"id":22,"cantidad":5,"precio":15},{"id":21,"cantidad":2,"precio":5}]
ERROR - 2026-03-03 00:25:03 --> razon: se facturaron productos de mas
ERROR - 2026-03-03 00:25:03 --> ITEMS DECODIFICADOS: [{"id":22,"cantidad":5,"precio":15},{"id":21,"cantidad":2,"precio":5}]
ERROR - 2026-03-03 00:25:03 --> INVOICE_ID RECIBIDO: 14
ERROR - 2026-03-03 00:25:03 --> FACTURA ORIGINAL: {"id":"14","ticket_id":"SALE2026\/02\/0026","branch_id":"1","branch_name":"MACRETO RETALHULEU","client_nit":"37748505","xml_base64":"[encoded data, 20920 characters]","html_base64":"","pdf_base64":"","qr_base64":null,"file_name_suggested":null,"url":null,"issued_at":"2026-02-25 17:21:00","created_at":"2026-02-25 17:24:06","company_id":"3","receptor_nombre":"GONZ\u00c1LEZ,MURILLO,,STEVE,ALEXANDER","receptor_direccion":"CIUDAD","receptor_municipio":"GUATEMALA","receptor_departamento":"GUATEMALA","receptor_pais":"GT","grand_total":"90.00","total_tax":"9.64","total_discount":"0.00","created_by_user_id":"3","serie":"929C10BA","numero":"686048580","qr_url":null,"uuid":"929C10BA-28E4-4544-AEEC-658B7866A1BD","tipo_dte":"FACT","anulada":"NO","fecha_anulacion":null,"motivo_anulacion":null,"acuse_anulacion":null,"anulada_por":null,"ncre":"NO"}
ERROR - 2026-03-03 00:25:03 --> ITEMS PROCESADOS: [{"product_id":22,"product_code":"","product_name":"","quantity":5,"unit_price":15,"taxable_amount":66.964286,"tax_amount":8.035714,"total":75,"discount":0},{"product_id":21,"product_code":"","product_name":"","quantity":2,"unit_price":5,"taxable_amount":8.928571,"tax_amount":1.071429,"total":10,"discount":0}]
ERROR - 2026-03-03 00:25:03 --> NOTA CREDITO DATA: {"reference_no":"NCRE-1772519103","invoice_id":"14","date":"2026-03-03 00:25:03","total":85,"total_tax":9.107143,"total_discount":0,"subTotal":75.892857,"totalAmount":85,"taxes":9.107143,"discounts":0,"note":"se facturaron productos de mas","branch_id":"1","branch_name":"MACRETO RETALHULEU","taxID":"37748505","receiverName":"GONZ\u00c1LEZ,MURILLO,,STEVE,ALEXANDER"}
ERROR - 2026-03-03 00:25:03 --> JSON DIGIFACT GENERADO: {"Version":"1.00","CountryCode":"GT","Header":{"DocType":"NCRE","IssuedDateTime":"2026-03-03T00:25:03-06:00","Currency":"GTQ"},"Seller":{"TaxID":"62847325","TaxIDAdditionalInfo":[{"Name":"AfiliacionIVA","Data":null,"Value":"GEN"}],"Name":"MACRETO, SOCIEDAD ANONIMA","BranchInfo":{"Code":"1","Name":"MACRETO, SOCIEDAD ANONIMA","AddressInfo":{"Address":"1 AVENIDA 4-01 ZONA 5","City":"01001","District":"RETALHULEU","State":"RETALHULEU","Country":"GT"}}},"Buyer":{"TaxID":"37748505","Name":"GONZ\u00c1LEZ,MURILLO,,STEVE,ALEXANDER","AddressInfo":{"Address":"CIUDAD","City":"GUATEMALA","District":"GUATEMALA","State":"GUATEMALA","Country":"GT"}},"Items":[{"Number":"1","Codes":null,"Type":"Bien","Description":"","Qty":"5.0000","UnitOfMeasure":"UND","Price":"15.00000","Discounts":null,"Taxes":{"Tax":[{"Code":"1","Description":"IVA","TaxableAmount":"66.964286","Amount":"8.03571"}]},"Totals":{"TotalItem":"75.0000"}},{"Number":"2","Codes":null,"Type":"Bien","Description":"","Qty":"2.0000","UnitOfMeasure":"UND","Price":"5.00000","Discounts":null,"Taxes":{"Tax":[{"Code":"1","Description":"IVA","TaxableAmount":"8.928571","Amount":"1.07143"}]},"Totals":{"TotalItem":"10.0000"}}],"Totals":{"TotalTaxes":{"TotalTax":[{"Description":"IVA","Amount":"9.10714"}]},"GrandTotal":{"InvoiceTotal":"85.0000"}},"AdditionalDocumentInfo":{"AdditionalInfo":[{"Code":"NCRE","Type":"COMPLEMENTO","AditionalInfo":[{"Name":"NumeroAutorizacionDocumentoOrigen","Data":null,"Value":"929C10BA-28E4-4544-AEEC-658B7866A1BD"},{"Name":"FechaEmisionDocumentoOrigen","Data":null,"Value":"2026-02-25"},{"Name":"MotivoAjuste","Data":null,"Value":"se facturaron productos de mas"},{"Name":"NumeroDocumentoOrigen","Data":null,"Value":"686048580"},{"Name":"SerieDocumentoOrigen","Data":null,"Value":"929C10BA"}]},{"Code":"CODIGO-SECUENCIAL-0001","Type":"ADENDA","AditionalData":{"Data":[{"Info":[{"Name":"OBSERVACIONES","Data":null,"Value":"-"},{"Name":"CANTIDAD_LETRAS","Data":null,"Value":"OCHENTA Y CINCO CON 00\/100"}]}]},"AditionalInfo":[{"Name":"VALIDAR_REFERENCIA_INTERNA","Data":null,"Value":"NO_VALIDAR"}]}]}}
ERROR - 2026-03-03 00:25:03 --> =========== JSON NCRE GENERADO ===========
ERROR - 2026-03-03 00:25:03 --> {"Version":"1.00","CountryCode":"GT","Header":{"DocType":"NCRE","IssuedDateTime":"2026-03-03T00:25:03-06:00","Currency":"GTQ"},"Seller":{"TaxID":"62847325","TaxIDAdditionalInfo":[{"Name":"AfiliacionIVA","Data":null,"Value":"GEN"}],"Name":"MACRETO, SOCIEDAD ANONIMA","BranchInfo":{"Code":"1","Name":"MACRETO, SOCIEDAD ANONIMA","AddressInfo":{"Address":"1 AVENIDA 4-01 ZONA 5","City":"01001","District":"RETALHULEU","State":"RETALHULEU","Country":"GT"}}},"Buyer":{"TaxID":"37748505","Name":"GONZ\u00c1LEZ,MURILLO,,STEVE,ALEXANDER","AddressInfo":{"Address":"CIUDAD","City":"GUATEMALA","District":"GUATEMALA","State":"GUATEMALA","Country":"GT"}},"Items":[{"Number":"1","Codes":null,"Type":"Bien","Description":"","Qty":"5.0000","UnitOfMeasure":"UND","Price":"15.00000","Discounts":null,"Taxes":{"Tax":[{"Code":"1","Description":"IVA","TaxableAmount":"66.964286","Amount":"8.03571"}]},"Totals":{"TotalItem":"75.0000"}},{"Number":"2","Codes":null,"Type":"Bien","Description":"","Qty":"2.0000","UnitOfMeasure":"UND","Price":"5.00000","Discounts":null,"Taxes":{"Tax":[{"Code":"1","Description":"IVA","TaxableAmount":"8.928571","Amount":"1.07143"}]},"Totals":{"TotalItem":"10.0000"}}],"Totals":{"TotalTaxes":{"TotalTax":[{"Description":"IVA","Amount":"9.10714"}]},"GrandTotal":{"InvoiceTotal":"85.0000"}},"AdditionalDocumentInfo":{"AdditionalInfo":[{"Code":"NCRE","Type":"COMPLEMENTO","AditionalInfo":[{"Name":"NumeroAutorizacionDocumentoOrigen","Data":null,"Value":"929C10BA-28E4-4544-AEEC-658B7866A1BD"},{"Name":"FechaEmisionDocumentoOrigen","Data":null,"Value":"2026-02-25"},{"Name":"MotivoAjuste","Data":null,"Value":"se facturaron productos de mas"},{"Name":"NumeroDocumentoOrigen","Data":null,"Value":"686048580"},{"Name":"SerieDocumentoOrigen","Data":null,"Value":"929C10BA"}]},{"Code":"CODIGO-SECUENCIAL-0001","Type":"ADENDA","AditionalData":{"Data":[{"Info":[{"Name":"OBSERVACIONES","Data":null,"Value":"-"},{"Name":"CANTIDAD_LETRAS","Data":null,"Value":"OCHENTA Y CINCO CON 00\/100"}]}]},"AditionalInfo":[{"Name":"VALIDAR_REFERENCIA_INTERNA","Data":null,"Value":"NO_VALIDAR"}]}]}}
ERROR - 2026-03-03 00:25:03 --> =========== FIN JSON NCRE ===========
ERROR - 2026-03-03 00:25:04 --> Could not find the language line "today"
ERROR - 2026-03-03 00:25:04 --> CONEXION CERTIFICADOR: stdClass Object
(
    [id] => 16
    [sucursal_id] => 1
    [certificador_id] => 7
    [nit] => 000062847325
    [usuario] => 62847325
    [contrasena] => Guate123*
    [activo] => 1
    [fecha_creacion] => 2025-09-04 22:46:43
    [token_nuc] => 
    [token_nuc_expira] => 
)

ERROR - 2026-03-03 00:25:04 --> JSON FEL (DEBUG): {
    "Version": "1.00",
    "CountryCode": "GT",
    "Header": {
        "DocType": "NCRE",
        "IssuedDateTime": "2026-03-03T00:25:03-06:00",
        "Currency": "GTQ"
    },
    "Seller": {
        "TaxID": "62847325",
        "TaxIDAdditionalInfo": [
            {
                "Name": "AfiliacionIVA",
                "Data": null,
                "Value": "GEN"
            }
        ],
        "Name": "MACRETO, SOCIEDAD ANONIMA",
        "BranchInfo": {
            "Code": "1",
            "Name": "MACRETO, SOCIEDAD ANONIMA",
            "AddressInfo": {
                "Address": "1 AVENIDA 4-01 ZONA 5",
                "City": "01001",
                "District": "RETALHULEU",
                "State": "RETALHULEU",
                "Country": "GT"
            }
        }
    },
    "Buyer": {
        "TaxID": "37748505",
        "Name": "GONZ\u00c1LEZ,MURILLO,,STEVE,ALEXANDER",
        "AddressInfo": {
            "Address": "CIUDAD",
            "City": "GUATEMALA",
            "District": "GUATEMALA",
            "State": "GUATEMALA",
            "Country": "GT"
        }
    },
    "Items": [
        {
            "Number": "1",
            "Codes": null,
            "Type": "Bien",
            "Description": "",
            "Qty": "5.0000",
            "UnitOfMeasure": "UND",
            "Price": "15.00000",
            "Discounts": null,
            "Taxes": {
                "Tax": [
                    {
                        "Code": "1",
                        "Description": "IVA",
                        "TaxableAmount": "66.964286",
                        "Amount": "8.03571"
                    }
                ]
            },
            "Totals": {
                "TotalItem": "75.0000"
            }
        },
        {
            "Number": "2",
            "Codes": null,
            "Type": "Bien",
            "Description": "",
            "Qty": "2.0000",
            "UnitOfMeasure": "UND",
            "Price": "5.00000",
            "Discounts": null,
            "Taxes": {
                "Tax": [
                    {
                        "Code": "1",
                        "Description": "IVA",
                        "TaxableAmount": "8.928571",
                        "Amount": "1.07143"
                    }
                ]
            },
            "Totals": {
                "TotalItem": "10.0000"
            }
        }
    ],
    "Totals": {
        "TotalTaxes": {
            "TotalTax": [
                {
                    "Description": "IVA",
                    "Amount": "9.10714"
                }
            ]
        },
        "GrandTotal": {
            "InvoiceTotal": "85.0000"
        }
    },
    "AdditionalDocumentInfo": {
        "AdditionalInfo": [
            {
                "Code": "NCRE",
                "Type": "COMPLEMENTO",
                "AditionalInfo": [
                    {
                        "Name": "NumeroAutorizacionDocumentoOrigen",
                        "Data": null,
                        "Value": "929C10BA-28E4-4544-AEEC-658B7866A1BD"
                    },
                    {
                        "Name": "FechaEmisionDocumentoOrigen",
                        "Data": null,
                        "Value": "2026-02-25"
                    },
                    {
                        "Name": "MotivoAjuste",
                        "Data": null,
                        "Value": "se facturaron productos de mas"
                    },
                    {
                        "Name": "NumeroDocumentoOrigen",
                        "Data": null,
                        "Value": "686048580"
                    },
                    {
                        "Name": "SerieDocumentoOrigen",
                        "Data": null,
                        "Value": "929C10BA"
                    }
                ]
            },
            {
                "Code": "CODIGO-SECUENCIAL-0001",
                "Type": "ADENDA",
                "AditionalData": {
                    "Data": [
                        {
                            "Info": [
                                {
                                    "Name": "OBSERVACIONES",
                                    "Data": null,
                                    "Value": "-"
                                },
                                {
                                    "Name": "CANTIDAD_LETRAS",
                                    "Data": null,
                                    "Value": "OCHENTA Y CINCO CON 00\/100"
                                }
                            ]
                        }
                    ]
                },
                "AditionalInfo": [
                    {
                        "Name": "VALIDAR_REFERENCIA_INTERNA",
                        "Data": null,
                        "Value": "NO_VALIDAR"
                    }
                ]
            }
        ]
    }
}
ERROR - 2026-03-03 00:25:04 --> ======= DATOS ENVIO NOTA DE CREDITO FEL =======
ERROR - 2026-03-03 00:25:04 --> TOKEN FEL: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVc2VyIjoiR1QuMDAwMDYyODQ3MzI1LjYyODQ3MzI1IiwiQ291bnRyeSI6IkdUIiwiRW52IjoiMSIsIm5iZiI6MTc3MTk1NDY3NSwiZXhwIjoxNzc0NTQ2Njc1LCJpYXQiOjE3NzE5NTQ2NzUsImlzcyI6Imh0dHBzOi8vd3d3LmRpZ2lmYWN0LmNvbS5ndCIsImF1ZCI6Imh0dHBzOi8vYXBpbnVjLmRpZ2lmYWN0LmNvbS5kby9kby5jb20uYXBpbnVjIn0.cOAi0YJRGOJJ35RNWEgNDVfAet7uCTW50YoLTF3gaeg
ERROR - 2026-03-03 00:25:04 --> TAXID FEL: 000062847325
ERROR - 2026-03-03 00:25:04 --> USERNAME FEL: 62847325
ERROR - 2026-03-03 00:25:04 --> URL FINAL FEL (NOTA CREDITO): https://nucgt.digifact.com/gt.com.apinuc/api/v2/transform/nuc_json?TAXID=000062847325&USERNAME=62847325&FORMAT=JSON
ERROR - 2026-03-03 00:25:04 --> BODY ENVIADO FEL (NOTA CREDITO): {"Version":"1.00","CountryCode":"GT","Header":{"DocType":"NCRE","IssuedDateTime":"2026-03-03T00:25:03-06:00","Currency":"GTQ"},"Seller":{"TaxID":"62847325","TaxIDAdditionalInfo":[{"Name":"AfiliacionIVA","Data":null,"Value":"GEN"}],"Name":"MACRETO, SOCIEDAD ANONIMA","BranchInfo":{"Code":"1","Name":"MACRETO, SOCIEDAD ANONIMA","AddressInfo":{"Address":"1 AVENIDA 4-01 ZONA 5","City":"01001","District":"RETALHULEU","State":"RETALHULEU","Country":"GT"}}},"Buyer":{"TaxID":"37748505","Name":"GONZÁLEZ,MURILLO,,STEVE,ALEXANDER","AddressInfo":{"Address":"CIUDAD","City":"GUATEMALA","District":"GUATEMALA","State":"GUATEMALA","Country":"GT"}},"Items":[{"Number":"1","Codes":null,"Type":"Bien","Description":"","Qty":"5.0000","UnitOfMeasure":"UND","Price":"15.00000","Discounts":null,"Taxes":{"Tax":[{"Code":"1","Description":"IVA","TaxableAmount":"66.964286","Amount":"8.03571"}]},"Totals":{"TotalItem":"75.0000"}},{"Number":"2","Codes":null,"Type":"Bien","Description":"","Qty":"2.0000","UnitOfMeasure":"UND","Price":"5.00000","Discounts":null,"Taxes":{"Tax":[{"Code":"1","Description":"IVA","TaxableAmount":"8.928571","Amount":"1.07143"}]},"Totals":{"TotalItem":"10.0000"}}],"Totals":{"TotalTaxes":{"TotalTax":[{"Description":"IVA","Amount":"9.10714"}]},"GrandTotal":{"InvoiceTotal":"85.0000"}},"AdditionalDocumentInfo":{"AdditionalInfo":[{"Code":"NCRE","Type":"COMPLEMENTO","AditionalInfo":[{"Name":"NumeroAutorizacionDocumentoOrigen","Data":null,"Value":"929C10BA-28E4-4544-AEEC-658B7866A1BD"},{"Name":"FechaEmisionDocumentoOrigen","Data":null,"Value":"2026-02-25"},{"Name":"MotivoAjuste","Data":null,"Value":"se facturaron productos de mas"},{"Name":"NumeroDocumentoOrigen","Data":null,"Value":"686048580"},{"Name":"SerieDocumentoOrigen","Data":null,"Value":"929C10BA"}]},{"Code":"CODIGO-SECUENCIAL-0001","Type":"ADENDA","AditionalData":{"Data":[{"Info":[{"Name":"OBSERVACIONES","Data":null,"Value":"-"},{"Name":"CANTIDAD_LETRAS","Data":null,"Value":"OCHENTA Y CINCO CON 00/100"}]}]},"AditionalInfo":[{"Name":"VALIDAR_REFERENCIA_INTERNA","Data":null,"Value":"NO_VALIDAR"}]}]}}
ERROR - 2026-03-03 00:25:04 --> JSON FEL ENVIADO (FORMATEADO - NOTA CREDITO): {
    "Version": "1.00",
    "CountryCode": "GT",
    "Header": {
        "DocType": "NCRE",
        "IssuedDateTime": "2026-03-03T00:25:03-06:00",
        "Currency": "GTQ"
    },
    "Seller": {
        "TaxID": "62847325",
        "TaxIDAdditionalInfo": [
            {
                "Name": "AfiliacionIVA",
                "Data": null,
                "Value": "GEN"
            }
        ],
        "Name": "MACRETO, SOCIEDAD ANONIMA",
        "BranchInfo": {
            "Code": "1",
            "Name": "MACRETO, SOCIEDAD ANONIMA",
            "AddressInfo": {
                "Address": "1 AVENIDA 4-01 ZONA 5",
                "City": "01001",
                "District": "RETALHULEU",
                "State": "RETALHULEU",
                "Country": "GT"
            }
        }
    },
    "Buyer": {
        "TaxID": "37748505",
        "Name": "GONZ\u00c1LEZ,MURILLO,,STEVE,ALEXANDER",
        "AddressInfo": {
            "Address": "CIUDAD",
            "City": "GUATEMALA",
            "District": "GUATEMALA",
            "State": "GUATEMALA",
            "Country": "GT"
        }
    },
    "Items": [
        {
            "Number": "1",
            "Codes": null,
            "Type": "Bien",
            "Description": "",
            "Qty": "5.0000",
            "UnitOfMeasure": "UND",
            "Price": "15.00000",
            "Discounts": null,
            "Taxes": {
                "Tax": [
                    {
                        "Code": "1",
                        "Description": "IVA",
                        "TaxableAmount": "66.964286",
                        "Amount": "8.03571"
                    }
                ]
            },
            "Totals": {
                "TotalItem": "75.0000"
            }
        },
        {
            "Number": "2",
            "Codes": null,
            "Type": "Bien",
            "Description": "",
            "Qty": "2.0000",
            "UnitOfMeasure": "UND",
            "Price": "5.00000",
            "Discounts": null,
            "Taxes": {
                "Tax": [
                    {
                        "Code": "1",
                        "Description": "IVA",
                        "TaxableAmount": "8.928571",
                        "Amount": "1.07143"
                    }
                ]
            },
            "Totals": {
                "TotalItem": "10.0000"
            }
        }
    ],
    "Totals": {
        "TotalTaxes": {
            "TotalTax": [
                {
                    "Description": "IVA",
                    "Amount": "9.10714"
                }
            ]
        },
        "GrandTotal": {
            "InvoiceTotal": "85.0000"
        }
    },
    "AdditionalDocumentInfo": {
        "AdditionalInfo": [
            {
                "Code": "NCRE",
                "Type": "COMPLEMENTO",
                "AditionalInfo": [
                    {
                        "Name": "NumeroAutorizacionDocumentoOrigen",
                        "Data": null,
                        "Value": "929C10BA-28E4-4544-AEEC-658B7866A1BD"
                    },
                    {
                        "Name": "FechaEmisionDocumentoOrigen",
                        "Data": null,
                        "Value": "2026-02-25"
                    },
                    {
                        "Name": "MotivoAjuste",
                        "Data": null,
                        "Value": "se facturaron productos de mas"
                    },
                    {
                        "Name": "NumeroDocumentoOrigen",
                        "Data": null,
                        "Value": "686048580"
                    },
                    {
                        "Name": "SerieDocumentoOrigen",
                        "Data": null,
                        "Value": "929C10BA"
                    }
                ]
            },
            {
                "Code": "CODIGO-SECUENCIAL-0001",
                "Type": "ADENDA",
                "AditionalData": {
                    "Data": [
                        {
                            "Info": [
                                {
                                    "Name": "OBSERVACIONES",
                                    "Data": null,
                                    "Value": "-"
                                },
                                {
                                    "Name": "CANTIDAD_LETRAS",
                                    "Data": null,
                                    "Value": "OCHENTA Y CINCO CON 00\/100"
                                }
                            ]
                        }
                    ]
                },
                "AditionalInfo": [
                    {
                        "Name": "VALIDAR_REFERENCIA_INTERNA",
                        "Data": null,
                        "Value": "NO_VALIDAR"
                    }
                ]
            }
        ]
    }
}
ERROR - 2026-03-03 00:25:04 --> HEADERS REALES ENVIADOS POR CURL (NOTA CREDITO): 
ERROR - 2026-03-03 00:25:04 --> HTTP CODE FEL (NOTA CREDITO): 200
ERROR - 2026-03-03 00:25:04 --> FEL RESPONSE (NOTA CREDITO): {"code":0,"message":"Ocurrio un error al convertir el NUC al xml de GT","description":"Error al transformar, No se encuentra el elemento Description en Item. [Ref D05]","responseData1":"","responseData2":"","responseData3":"","responseData4":"","authNumber":"","url":"","infoDetails":[],"suggestedFileName":"","suggestedFileName2":"","batch":"","serial":"","issuedTimeStamp":"","taxID":"","name":"","branchCode":"","branchName":"","receiverTaxID":"","receiverName":"","discounts":"","taxes":"","subTotal":"","totalAmount":"","enrolledTimeStamp":"","backprocessor":"","additionalInfo":null}
ERROR - 2026-03-03 00:25:04 --> Severity: error --> Exception: Call to private method FelInvoice_model::saveNotaCredito() from context 'Fel' /home/tecnomania/fel.tecnomaniagt.com/ventas/app/controllers/admin/Fel.php 584
ERROR - 2026-03-03 00:36:19 --> Could not find the language line "today"
ERROR - 2026-03-03 00:36:19 --> Could not find the language line "shop"
ERROR - 2026-03-03 00:36:19 --> Could not find the language line "toggle_alignment"
ERROR - 2026-03-03 00:36:19 --> Could not find the language line "today_profit"
ERROR - 2026-03-03 00:36:19 --> Could not find the language line "lista de Facturas"
ERROR - 2026-03-03 00:36:19 --> Could not find the language line "Bonificaciones"
ERROR - 2026-03-03 00:36:19 --> Could not find the language line "Lista de Bonificaciones"
ERROR - 2026-03-03 00:36:19 --> Could not find the language line "Agregar Bonificación"
ERROR - 2026-03-03 00:36:19 --> Could not find the language line "Mermas"
ERROR - 2026-03-03 00:36:19 --> Could not find the language line "Lista de Merma"
ERROR - 2026-03-03 00:36:19 --> Could not find the language line "Agregar Merma"
ERROR - 2026-03-03 00:36:19 --> Could not find the language line "Certificadores"
ERROR - 2026-03-03 00:36:19 --> Could not find the language line "listado de Certifiacadores"
ERROR - 2026-03-03 00:36:19 --> Could not find the language line "Agregar Certitificador"
ERROR - 2026-03-03 00:36:19 --> Could not find the language line "Listado de Cliente Certificador"
ERROR - 2026-03-03 00:36:19 --> Could not find the language line "Agregar Cliente Certificador"
ERROR - 2026-03-03 00:36:19 --> Could not find the language line "promos"
ERROR - 2026-03-03 00:36:19 --> Could not find the language line "list_printers"
ERROR - 2026-03-03 00:36:19 --> Could not find the language line "add_printer"
ERROR - 2026-03-03 00:36:19 --> Could not find the language line "expense_categories"
ERROR - 2026-03-03 00:36:19 --> Could not find the language line "site_logs"
ERROR - 2026-03-03 00:36:19 --> Could not find the language line "backups"
ERROR - 2026-03-03 00:36:19 --> Could not find the language line "Informe de Consolidado"
ERROR - 2026-03-03 00:36:19 --> Could not find the language line "Informe de mermas"
ERROR - 2026-03-03 00:36:19 --> Could not find the language line "Informe de bonificaciones"
ERROR - 2026-03-03 00:36:19 --> Could not find the language line "Informe de Rutas"
ERROR - 2026-03-03 00:36:19 --> Could not find the language line "front_end"
ERROR - 2026-03-03 00:36:19 --> Could not find the language line "shop_settings"
ERROR - 2026-03-03 00:36:19 --> Could not find the language line "slider_settings"
ERROR - 2026-03-03 00:36:19 --> Could not find the language line "list_pages"
ERROR - 2026-03-03 00:36:19 --> Could not find the language line "add_page"
ERROR - 2026-03-03 00:36:19 --> Could not find the language line "sms_settings"
ERROR - 2026-03-03 00:36:19 --> Could not find the language line "send_sms"
ERROR - 2026-03-03 00:36:19 --> Could not find the language line "sms_log"
ERROR - 2026-03-03 00:36:19 --> Could not find the language line "combine_to_pdf"
ERROR - 2026-03-03 00:36:19 --> Could not find the language line "shop_sales"
ERROR - 2026-03-03 00:36:19 --> Could not find the language line "staff_sales"
ERROR - 2026-03-03 00:36:19 --> Could not find the language line "all_sales"
ERROR - 2026-03-03 00:36:19 --> Could not find the language line "ordered"
ERROR - 2026-03-03 00:36:19 --> Could not find the language line "transferring"
ERROR - 2026-03-03 00:36:19 --> Could not find the language line "download"
ERROR - 2026-03-03 00:36:19 --> Could not find the language line "required_invalid"
ERROR - 2026-03-03 00:36:20 --> Could not find the language line "today"
ERROR - 2026-03-03 00:36:20 --> Could not find the language line "duplicate_sale"
ERROR - 2026-03-03 00:36:20 --> Could not find the language line "packaging"
ERROR - 2026-03-03 00:37:53 --> Could not find the language line "today"
ERROR - 2026-03-03 00:37:55 --> Could not find the language line "today"
ERROR - 2026-03-03 00:37:55 --> Could not find the language line "shop"
ERROR - 2026-03-03 00:37:55 --> Could not find the language line "toggle_alignment"
ERROR - 2026-03-03 00:37:55 --> Could not find the language line "lista de Facturas"
ERROR - 2026-03-03 00:37:55 --> Could not find the language line "Bonificaciones"
ERROR - 2026-03-03 00:37:55 --> Could not find the language line "Lista de Bonificaciones"
ERROR - 2026-03-03 00:37:55 --> Could not find the language line "Agregar Bonificación"
ERROR - 2026-03-03 00:37:55 --> Could not find the language line "Mermas"
ERROR - 2026-03-03 00:37:55 --> Could not find the language line "Lista de Merma"
ERROR - 2026-03-03 00:37:55 --> Could not find the language line "Agregar Merma"
ERROR - 2026-03-03 00:37:55 --> Could not find the language line "Certificadores"
ERROR - 2026-03-03 00:37:55 --> Could not find the language line "listado de Certifiacadores"
ERROR - 2026-03-03 00:37:55 --> Could not find the language line "Agregar Certitificador"
ERROR - 2026-03-03 00:37:55 --> Could not find the language line "Listado de Cliente Certificador"
ERROR - 2026-03-03 00:37:55 --> Could not find the language line "Agregar Cliente Certificador"
ERROR - 2026-03-03 00:37:55 --> Could not find the language line "Informe de Consolidado"
ERROR - 2026-03-03 00:37:55 --> Could not find the language line "Informe de mermas"
ERROR - 2026-03-03 00:37:55 --> Could not find the language line "Informe de bonificaciones"
ERROR - 2026-03-03 00:37:55 --> Could not find the language line "Informe de Rutas"
ERROR - 2026-03-03 00:37:55 --> Could not find the language line "ordered"
ERROR - 2026-03-03 00:37:55 --> Could not find the language line "due"
ERROR - 2026-03-03 00:37:55 --> Could not find the language line "transferring"
ERROR - 2026-03-03 00:37:55 --> Could not find the language line "download"
ERROR - 2026-03-03 00:37:55 --> Could not find the language line "required_invalid"
ERROR - 2026-03-03 00:37:55 --> Could not find the language line "today"
ERROR - 2026-03-03 00:40:14 --> Could not find the language line "today"
ERROR - 2026-03-03 00:40:26 --> Could not find the language line "today"
ERROR - 2026-03-03 00:40:26 --> ========== DEBUG NCRE ==========
ERROR - 2026-03-03 00:40:26 --> POST COMPLETO: {"invoice_id":"14","items":"[{\"id\":22,\"cantidad\":5,\"precio\":15},{\"id\":21,\"cantidad\":2,\"precio\":5}]","producto_cantidad":{"22":"5.0000","21":"2"},"descuento_ncre":"0","tipo_descuento":"porcentaje","nota_credito_razon":"SE FACTURARON PRODUCTOS DE MAS"}
ERROR - 2026-03-03 00:40:26 --> invoice_id: 14
ERROR - 2026-03-03 00:40:26 --> items: [{"id":22,"cantidad":5,"precio":15},{"id":21,"cantidad":2,"precio":5}]
ERROR - 2026-03-03 00:40:26 --> razon: SE FACTURARON PRODUCTOS DE MAS
ERROR - 2026-03-03 00:40:26 --> ITEMS DECODIFICADOS: [{"id":22,"cantidad":5,"precio":15},{"id":21,"cantidad":2,"precio":5}]
ERROR - 2026-03-03 00:40:26 --> INVOICE_ID RECIBIDO: 14
ERROR - 2026-03-03 00:40:26 --> FACTURA ORIGINAL: {"id":"14","ticket_id":"SALE2026\/02\/0026","branch_id":"1","branch_name":"MACRETO RETALHULEU","client_nit":"37748505","xml_base64":"[encoded data, 20920 characters]","html_base64":"","pdf_base64":"","qr_base64":null,"file_name_suggested":null,"url":null,"issued_at":"2026-02-25 17:21:00","created_at":"2026-02-25 17:24:06","company_id":"3","receptor_nombre":"GONZ\u00c1LEZ,MURILLO,,STEVE,ALEXANDER","receptor_direccion":"CIUDAD","receptor_municipio":"GUATEMALA","receptor_departamento":"GUATEMALA","receptor_pais":"GT","grand_total":"90.00","total_tax":"9.64","total_discount":"0.00","created_by_user_id":"3","serie":"929C10BA","numero":"686048580","qr_url":null,"uuid":"929C10BA-28E4-4544-AEEC-658B7866A1BD","tipo_dte":"FACT","anulada":"NO","fecha_anulacion":null,"motivo_anulacion":null,"acuse_anulacion":null,"anulada_por":null,"ncre":"NO"}
ERROR - 2026-03-03 00:40:26 --> ITEMS PROCESADOS: [{"product_id":22,"product_code":"","product_name":"","quantity":5,"unit_price":15,"taxable_amount":66.964286,"tax_amount":8.035714,"total":75,"discount":0},{"product_id":21,"product_code":"","product_name":"","quantity":2,"unit_price":5,"taxable_amount":8.928571,"tax_amount":1.071429,"total":10,"discount":0}]
ERROR - 2026-03-03 00:40:26 --> NOTA CREDITO DATA: {"reference_no":"NCRE-1772520026","invoice_id":"14","date":"2026-03-03 00:40:26","total":85,"total_tax":9.107143,"total_discount":0,"subTotal":75.892857,"totalAmount":85,"taxes":9.107143,"discounts":0,"note":"SE FACTURARON PRODUCTOS DE MAS","branch_id":"1","branch_name":"MACRETO RETALHULEU","taxID":"37748505","receiverName":"GONZ\u00c1LEZ,MURILLO,,STEVE,ALEXANDER"}
ERROR - 2026-03-03 00:40:26 --> JSON DIGIFACT GENERADO: {"Version":"1.00","CountryCode":"GT","Header":{"DocType":"NCRE","IssuedDateTime":"2026-03-03T00:40:26-06:00","Currency":"GTQ"},"Seller":{"TaxID":"62847325","TaxIDAdditionalInfo":[{"Name":"AfiliacionIVA","Data":null,"Value":"GEN"}],"Name":"MACRETO, SOCIEDAD ANONIMA","BranchInfo":{"Code":"1","Name":"MACRETO, SOCIEDAD ANONIMA","AddressInfo":{"Address":"1 AVENIDA 4-01 ZONA 5","City":"01001","District":"RETALHULEU","State":"RETALHULEU","Country":"GT"}}},"Buyer":{"TaxID":"37748505","Name":"GONZ\u00c1LEZ,MURILLO,,STEVE,ALEXANDER","AddressInfo":{"Address":"CIUDAD","City":"GUATEMALA","District":"GUATEMALA","State":"GUATEMALA","Country":"GT"}},"Items":[{"Number":"1","Codes":null,"Type":"Bien","Description":"","Qty":"5.0000","UnitOfMeasure":"UND","Price":"15.00000","Discounts":null,"Taxes":{"Tax":[{"Code":"1","Description":"IVA","TaxableAmount":"66.964286","Amount":"8.03571"}]},"Totals":{"TotalItem":"75.0000"}},{"Number":"2","Codes":null,"Type":"Bien","Description":"","Qty":"2.0000","UnitOfMeasure":"UND","Price":"5.00000","Discounts":null,"Taxes":{"Tax":[{"Code":"1","Description":"IVA","TaxableAmount":"8.928571","Amount":"1.07143"}]},"Totals":{"TotalItem":"10.0000"}}],"Totals":{"TotalTaxes":{"TotalTax":[{"Description":"IVA","Amount":"9.10714"}]},"GrandTotal":{"InvoiceTotal":"85.0000"}},"AdditionalDocumentInfo":{"AdditionalInfo":[{"Code":"NCRE","Type":"COMPLEMENTO","AditionalInfo":[{"Name":"NumeroAutorizacionDocumentoOrigen","Data":null,"Value":"929C10BA-28E4-4544-AEEC-658B7866A1BD"},{"Name":"FechaEmisionDocumentoOrigen","Data":null,"Value":"2026-02-25"},{"Name":"MotivoAjuste","Data":null,"Value":"SE FACTURARON PRODUCTOS DE MAS"},{"Name":"NumeroDocumentoOrigen","Data":null,"Value":"686048580"},{"Name":"SerieDocumentoOrigen","Data":null,"Value":"929C10BA"}]},{"Code":"CODIGO-SECUENCIAL-0001","Type":"ADENDA","AditionalData":{"Data":[{"Info":[{"Name":"OBSERVACIONES","Data":null,"Value":"-"},{"Name":"CANTIDAD_LETRAS","Data":null,"Value":"OCHENTA Y CINCO CON 00\/100"}]}]},"AditionalInfo":[{"Name":"VALIDAR_REFERENCIA_INTERNA","Data":null,"Value":"NO_VALIDAR"}]}]}}
ERROR - 2026-03-03 00:40:26 --> =========== JSON NCRE GENERADO ===========
ERROR - 2026-03-03 00:40:26 --> {"Version":"1.00","CountryCode":"GT","Header":{"DocType":"NCRE","IssuedDateTime":"2026-03-03T00:40:26-06:00","Currency":"GTQ"},"Seller":{"TaxID":"62847325","TaxIDAdditionalInfo":[{"Name":"AfiliacionIVA","Data":null,"Value":"GEN"}],"Name":"MACRETO, SOCIEDAD ANONIMA","BranchInfo":{"Code":"1","Name":"MACRETO, SOCIEDAD ANONIMA","AddressInfo":{"Address":"1 AVENIDA 4-01 ZONA 5","City":"01001","District":"RETALHULEU","State":"RETALHULEU","Country":"GT"}}},"Buyer":{"TaxID":"37748505","Name":"GONZ\u00c1LEZ,MURILLO,,STEVE,ALEXANDER","AddressInfo":{"Address":"CIUDAD","City":"GUATEMALA","District":"GUATEMALA","State":"GUATEMALA","Country":"GT"}},"Items":[{"Number":"1","Codes":null,"Type":"Bien","Description":"","Qty":"5.0000","UnitOfMeasure":"UND","Price":"15.00000","Discounts":null,"Taxes":{"Tax":[{"Code":"1","Description":"IVA","TaxableAmount":"66.964286","Amount":"8.03571"}]},"Totals":{"TotalItem":"75.0000"}},{"Number":"2","Codes":null,"Type":"Bien","Description":"","Qty":"2.0000","UnitOfMeasure":"UND","Price":"5.00000","Discounts":null,"Taxes":{"Tax":[{"Code":"1","Description":"IVA","TaxableAmount":"8.928571","Amount":"1.07143"}]},"Totals":{"TotalItem":"10.0000"}}],"Totals":{"TotalTaxes":{"TotalTax":[{"Description":"IVA","Amount":"9.10714"}]},"GrandTotal":{"InvoiceTotal":"85.0000"}},"AdditionalDocumentInfo":{"AdditionalInfo":[{"Code":"NCRE","Type":"COMPLEMENTO","AditionalInfo":[{"Name":"NumeroAutorizacionDocumentoOrigen","Data":null,"Value":"929C10BA-28E4-4544-AEEC-658B7866A1BD"},{"Name":"FechaEmisionDocumentoOrigen","Data":null,"Value":"2026-02-25"},{"Name":"MotivoAjuste","Data":null,"Value":"SE FACTURARON PRODUCTOS DE MAS"},{"Name":"NumeroDocumentoOrigen","Data":null,"Value":"686048580"},{"Name":"SerieDocumentoOrigen","Data":null,"Value":"929C10BA"}]},{"Code":"CODIGO-SECUENCIAL-0001","Type":"ADENDA","AditionalData":{"Data":[{"Info":[{"Name":"OBSERVACIONES","Data":null,"Value":"-"},{"Name":"CANTIDAD_LETRAS","Data":null,"Value":"OCHENTA Y CINCO CON 00\/100"}]}]},"AditionalInfo":[{"Name":"VALIDAR_REFERENCIA_INTERNA","Data":null,"Value":"NO_VALIDAR"}]}]}}
ERROR - 2026-03-03 00:40:26 --> =========== FIN JSON NCRE ===========
ERROR - 2026-03-03 00:40:26 --> Could not find the language line "today"
ERROR - 2026-03-03 00:40:26 --> CONEXION CERTIFICADOR: stdClass Object
(
    [id] => 16
    [sucursal_id] => 1
    [certificador_id] => 7
    [nit] => 000062847325
    [usuario] => 62847325
    [contrasena] => Guate123*
    [activo] => 1
    [fecha_creacion] => 2025-09-04 22:46:43
    [token_nuc] => 
    [token_nuc_expira] => 
)

ERROR - 2026-03-03 00:40:26 --> JSON FEL (DEBUG): {
    "Version": "1.00",
    "CountryCode": "GT",
    "Header": {
        "DocType": "NCRE",
        "IssuedDateTime": "2026-03-03T00:40:26-06:00",
        "Currency": "GTQ"
    },
    "Seller": {
        "TaxID": "62847325",
        "TaxIDAdditionalInfo": [
            {
                "Name": "AfiliacionIVA",
                "Data": null,
                "Value": "GEN"
            }
        ],
        "Name": "MACRETO, SOCIEDAD ANONIMA",
        "BranchInfo": {
            "Code": "1",
            "Name": "MACRETO, SOCIEDAD ANONIMA",
            "AddressInfo": {
                "Address": "1 AVENIDA 4-01 ZONA 5",
                "City": "01001",
                "District": "RETALHULEU",
                "State": "RETALHULEU",
                "Country": "GT"
            }
        }
    },
    "Buyer": {
        "TaxID": "37748505",
        "Name": "GONZ\u00c1LEZ,MURILLO,,STEVE,ALEXANDER",
        "AddressInfo": {
            "Address": "CIUDAD",
            "City": "GUATEMALA",
            "District": "GUATEMALA",
            "State": "GUATEMALA",
            "Country": "GT"
        }
    },
    "Items": [
        {
            "Number": "1",
            "Codes": null,
            "Type": "Bien",
            "Description": "",
            "Qty": "5.0000",
            "UnitOfMeasure": "UND",
            "Price": "15.00000",
            "Discounts": null,
            "Taxes": {
                "Tax": [
                    {
                        "Code": "1",
                        "Description": "IVA",
                        "TaxableAmount": "66.964286",
                        "Amount": "8.03571"
                    }
                ]
            },
            "Totals": {
                "TotalItem": "75.0000"
            }
        },
        {
            "Number": "2",
            "Codes": null,
            "Type": "Bien",
            "Description": "",
            "Qty": "2.0000",
            "UnitOfMeasure": "UND",
            "Price": "5.00000",
            "Discounts": null,
            "Taxes": {
                "Tax": [
                    {
                        "Code": "1",
                        "Description": "IVA",
                        "TaxableAmount": "8.928571",
                        "Amount": "1.07143"
                    }
                ]
            },
            "Totals": {
                "TotalItem": "10.0000"
            }
        }
    ],
    "Totals": {
        "TotalTaxes": {
            "TotalTax": [
                {
                    "Description": "IVA",
                    "Amount": "9.10714"
                }
            ]
        },
        "GrandTotal": {
            "InvoiceTotal": "85.0000"
        }
    },
    "AdditionalDocumentInfo": {
        "AdditionalInfo": [
            {
                "Code": "NCRE",
                "Type": "COMPLEMENTO",
                "AditionalInfo": [
                    {
                        "Name": "NumeroAutorizacionDocumentoOrigen",
                        "Data": null,
                        "Value": "929C10BA-28E4-4544-AEEC-658B7866A1BD"
                    },
                    {
                        "Name": "FechaEmisionDocumentoOrigen",
                        "Data": null,
                        "Value": "2026-02-25"
                    },
                    {
                        "Name": "MotivoAjuste",
                        "Data": null,
                        "Value": "SE FACTURARON PRODUCTOS DE MAS"
                    },
                    {
                        "Name": "NumeroDocumentoOrigen",
                        "Data": null,
                        "Value": "686048580"
                    },
                    {
                        "Name": "SerieDocumentoOrigen",
                        "Data": null,
                        "Value": "929C10BA"
                    }
                ]
            },
            {
                "Code": "CODIGO-SECUENCIAL-0001",
                "Type": "ADENDA",
                "AditionalData": {
                    "Data": [
                        {
                            "Info": [
                                {
                                    "Name": "OBSERVACIONES",
                                    "Data": null,
                                    "Value": "-"
                                },
                                {
                                    "Name": "CANTIDAD_LETRAS",
                                    "Data": null,
                                    "Value": "OCHENTA Y CINCO CON 00\/100"
                                }
                            ]
                        }
                    ]
                },
                "AditionalInfo": [
                    {
                        "Name": "VALIDAR_REFERENCIA_INTERNA",
                        "Data": null,
                        "Value": "NO_VALIDAR"
                    }
                ]
            }
        ]
    }
}
ERROR - 2026-03-03 00:40:26 --> ======= DATOS ENVIO NOTA DE CREDITO FEL =======
ERROR - 2026-03-03 00:40:26 --> TOKEN FEL: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVc2VyIjoiR1QuMDAwMDYyODQ3MzI1LjYyODQ3MzI1IiwiQ291bnRyeSI6IkdUIiwiRW52IjoiMSIsIm5iZiI6MTc3MTk1NDY3NSwiZXhwIjoxNzc0NTQ2Njc1LCJpYXQiOjE3NzE5NTQ2NzUsImlzcyI6Imh0dHBzOi8vd3d3LmRpZ2lmYWN0LmNvbS5ndCIsImF1ZCI6Imh0dHBzOi8vYXBpbnVjLmRpZ2lmYWN0LmNvbS5kby9kby5jb20uYXBpbnVjIn0.cOAi0YJRGOJJ35RNWEgNDVfAet7uCTW50YoLTF3gaeg
ERROR - 2026-03-03 00:40:26 --> TAXID FEL: 000062847325
ERROR - 2026-03-03 00:40:26 --> USERNAME FEL: 62847325
ERROR - 2026-03-03 00:40:26 --> URL FINAL FEL (NOTA CREDITO): https://nucgt.digifact.com/gt.com.apinuc/api/v2/transform/nuc_json?TAXID=000062847325&USERNAME=62847325&FORMAT=XML
ERROR - 2026-03-03 00:40:26 --> BODY ENVIADO FEL (NOTA CREDITO): {"Version":"1.00","CountryCode":"GT","Header":{"DocType":"NCRE","IssuedDateTime":"2026-03-03T00:40:26-06:00","Currency":"GTQ"},"Seller":{"TaxID":"62847325","TaxIDAdditionalInfo":[{"Name":"AfiliacionIVA","Data":null,"Value":"GEN"}],"Name":"MACRETO, SOCIEDAD ANONIMA","BranchInfo":{"Code":"1","Name":"MACRETO, SOCIEDAD ANONIMA","AddressInfo":{"Address":"1 AVENIDA 4-01 ZONA 5","City":"01001","District":"RETALHULEU","State":"RETALHULEU","Country":"GT"}}},"Buyer":{"TaxID":"37748505","Name":"GONZÁLEZ,MURILLO,,STEVE,ALEXANDER","AddressInfo":{"Address":"CIUDAD","City":"GUATEMALA","District":"GUATEMALA","State":"GUATEMALA","Country":"GT"}},"Items":[{"Number":"1","Codes":null,"Type":"Bien","Description":"","Qty":"5.0000","UnitOfMeasure":"UND","Price":"15.00000","Discounts":null,"Taxes":{"Tax":[{"Code":"1","Description":"IVA","TaxableAmount":"66.964286","Amount":"8.03571"}]},"Totals":{"TotalItem":"75.0000"}},{"Number":"2","Codes":null,"Type":"Bien","Description":"","Qty":"2.0000","UnitOfMeasure":"UND","Price":"5.00000","Discounts":null,"Taxes":{"Tax":[{"Code":"1","Description":"IVA","TaxableAmount":"8.928571","Amount":"1.07143"}]},"Totals":{"TotalItem":"10.0000"}}],"Totals":{"TotalTaxes":{"TotalTax":[{"Description":"IVA","Amount":"9.10714"}]},"GrandTotal":{"InvoiceTotal":"85.0000"}},"AdditionalDocumentInfo":{"AdditionalInfo":[{"Code":"NCRE","Type":"COMPLEMENTO","AditionalInfo":[{"Name":"NumeroAutorizacionDocumentoOrigen","Data":null,"Value":"929C10BA-28E4-4544-AEEC-658B7866A1BD"},{"Name":"FechaEmisionDocumentoOrigen","Data":null,"Value":"2026-02-25"},{"Name":"MotivoAjuste","Data":null,"Value":"SE FACTURARON PRODUCTOS DE MAS"},{"Name":"NumeroDocumentoOrigen","Data":null,"Value":"686048580"},{"Name":"SerieDocumentoOrigen","Data":null,"Value":"929C10BA"}]},{"Code":"CODIGO-SECUENCIAL-0001","Type":"ADENDA","AditionalData":{"Data":[{"Info":[{"Name":"OBSERVACIONES","Data":null,"Value":"-"},{"Name":"CANTIDAD_LETRAS","Data":null,"Value":"OCHENTA Y CINCO CON 00/100"}]}]},"AditionalInfo":[{"Name":"VALIDAR_REFERENCIA_INTERNA","Data":null,"Value":"NO_VALIDAR"}]}]}}
ERROR - 2026-03-03 00:40:26 --> JSON FEL ENVIADO (FORMATEADO - NOTA CREDITO): {
    "Version": "1.00",
    "CountryCode": "GT",
    "Header": {
        "DocType": "NCRE",
        "IssuedDateTime": "2026-03-03T00:40:26-06:00",
        "Currency": "GTQ"
    },
    "Seller": {
        "TaxID": "62847325",
        "TaxIDAdditionalInfo": [
            {
                "Name": "AfiliacionIVA",
                "Data": null,
                "Value": "GEN"
            }
        ],
        "Name": "MACRETO, SOCIEDAD ANONIMA",
        "BranchInfo": {
            "Code": "1",
            "Name": "MACRETO, SOCIEDAD ANONIMA",
            "AddressInfo": {
                "Address": "1 AVENIDA 4-01 ZONA 5",
                "City": "01001",
                "District": "RETALHULEU",
                "State": "RETALHULEU",
                "Country": "GT"
            }
        }
    },
    "Buyer": {
        "TaxID": "37748505",
        "Name": "GONZ\u00c1LEZ,MURILLO,,STEVE,ALEXANDER",
        "AddressInfo": {
            "Address": "CIUDAD",
            "City": "GUATEMALA",
            "District": "GUATEMALA",
            "State": "GUATEMALA",
            "Country": "GT"
        }
    },
    "Items": [
        {
            "Number": "1",
            "Codes": null,
            "Type": "Bien",
            "Description": "",
            "Qty": "5.0000",
            "UnitOfMeasure": "UND",
            "Price": "15.00000",
            "Discounts": null,
            "Taxes": {
                "Tax": [
                    {
                        "Code": "1",
                        "Description": "IVA",
                        "TaxableAmount": "66.964286",
                        "Amount": "8.03571"
                    }
                ]
            },
            "Totals": {
                "TotalItem": "75.0000"
            }
        },
        {
            "Number": "2",
            "Codes": null,
            "Type": "Bien",
            "Description": "",
            "Qty": "2.0000",
            "UnitOfMeasure": "UND",
            "Price": "5.00000",
            "Discounts": null,
            "Taxes": {
                "Tax": [
                    {
                        "Code": "1",
                        "Description": "IVA",
                        "TaxableAmount": "8.928571",
                        "Amount": "1.07143"
                    }
                ]
            },
            "Totals": {
                "TotalItem": "10.0000"
            }
        }
    ],
    "Totals": {
        "TotalTaxes": {
            "TotalTax": [
                {
                    "Description": "IVA",
                    "Amount": "9.10714"
                }
            ]
        },
        "GrandTotal": {
            "InvoiceTotal": "85.0000"
        }
    },
    "AdditionalDocumentInfo": {
        "AdditionalInfo": [
            {
                "Code": "NCRE",
                "Type": "COMPLEMENTO",
                "AditionalInfo": [
                    {
                        "Name": "NumeroAutorizacionDocumentoOrigen",
                        "Data": null,
                        "Value": "929C10BA-28E4-4544-AEEC-658B7866A1BD"
                    },
                    {
                        "Name": "FechaEmisionDocumentoOrigen",
                        "Data": null,
                        "Value": "2026-02-25"
                    },
                    {
                        "Name": "MotivoAjuste",
                        "Data": null,
                        "Value": "SE FACTURARON PRODUCTOS DE MAS"
                    },
                    {
                        "Name": "NumeroDocumentoOrigen",
                        "Data": null,
                        "Value": "686048580"
                    },
                    {
                        "Name": "SerieDocumentoOrigen",
                        "Data": null,
                        "Value": "929C10BA"
                    }
                ]
            },
            {
                "Code": "CODIGO-SECUENCIAL-0001",
                "Type": "ADENDA",
                "AditionalData": {
                    "Data": [
                        {
                            "Info": [
                                {
                                    "Name": "OBSERVACIONES",
                                    "Data": null,
                                    "Value": "-"
                                },
                                {
                                    "Name": "CANTIDAD_LETRAS",
                                    "Data": null,
                                    "Value": "OCHENTA Y CINCO CON 00\/100"
                                }
                            ]
                        }
                    ]
                },
                "AditionalInfo": [
                    {
                        "Name": "VALIDAR_REFERENCIA_INTERNA",
                        "Data": null,
                        "Value": "NO_VALIDAR"
                    }
                ]
            }
        ]
    }
}
ERROR - 2026-03-03 00:40:27 --> HEADERS REALES ENVIADOS POR CURL (NOTA CREDITO): 
ERROR - 2026-03-03 00:40:27 --> HTTP CODE FEL (NOTA CREDITO): 200
ERROR - 2026-03-03 00:40:27 --> FEL RESPONSE (NOTA CREDITO): {"code":0,"message":"Ocurrio un error al convertir el NUC al xml de GT","description":"Error al transformar, No se encuentra el elemento Description en Item. [Ref D05]","responseData1":"","responseData2":"","responseData3":"","responseData4":"","authNumber":"","url":"","infoDetails":[],"suggestedFileName":"","suggestedFileName2":"","batch":"","serial":"","issuedTimeStamp":"","taxID":"","name":"","branchCode":"","branchName":"","receiverTaxID":"","receiverName":"","discounts":"","taxes":"","subTotal":"","totalAmount":"","enrolledTimeStamp":"","backprocessor":"","additionalInfo":null}
ERROR - 2026-03-03 00:40:27 --> Severity: error --> Exception: Call to private method FelInvoice_model::saveNotaCredito() from context 'Fel' /home/tecnomania/fel.tecnomaniagt.com/ventas/app/controllers/admin/Fel.php 584
ERROR - 2026-03-03 01:11:55 --> Could not find the language line "today"
ERROR - 2026-03-03 01:12:10 --> Could not find the language line "today"
ERROR - 2026-03-03 01:12:10 --> Could not find the language line "shop"
ERROR - 2026-03-03 01:12:10 --> Could not find the language line "toggle_alignment"
ERROR - 2026-03-03 01:12:10 --> Could not find the language line "lista de Facturas"
ERROR - 2026-03-03 01:12:10 --> Could not find the language line "Bonificaciones"
ERROR - 2026-03-03 01:12:10 --> Could not find the language line "Lista de Bonificaciones"
ERROR - 2026-03-03 01:12:10 --> Could not find the language line "Agregar Bonificación"
ERROR - 2026-03-03 01:12:10 --> Could not find the language line "Mermas"
ERROR - 2026-03-03 01:12:10 --> Could not find the language line "Lista de Merma"
ERROR - 2026-03-03 01:12:10 --> Could not find the language line "Agregar Merma"
ERROR - 2026-03-03 01:12:10 --> Could not find the language line "Certificadores"
ERROR - 2026-03-03 01:12:10 --> Could not find the language line "listado de Certifiacadores"
ERROR - 2026-03-03 01:12:10 --> Could not find the language line "Agregar Certitificador"
ERROR - 2026-03-03 01:12:10 --> Could not find the language line "Listado de Cliente Certificador"
ERROR - 2026-03-03 01:12:10 --> Could not find the language line "Agregar Cliente Certificador"
ERROR - 2026-03-03 01:12:10 --> Could not find the language line "Informe de Consolidado"
ERROR - 2026-03-03 01:12:10 --> Could not find the language line "Informe de mermas"
ERROR - 2026-03-03 01:12:10 --> Could not find the language line "Informe de bonificaciones"
ERROR - 2026-03-03 01:12:10 --> Could not find the language line "Informe de Rutas"
ERROR - 2026-03-03 01:12:10 --> Could not find the language line "ordered"
ERROR - 2026-03-03 01:12:10 --> Could not find the language line "due"
ERROR - 2026-03-03 01:12:10 --> Could not find the language line "transferring"
ERROR - 2026-03-03 01:12:10 --> Could not find the language line "download"
ERROR - 2026-03-03 01:12:10 --> Could not find the language line "required_invalid"
ERROR - 2026-03-03 01:12:11 --> Could not find the language line "today"
ERROR - 2026-03-03 01:12:13 --> Could not find the language line "today"
ERROR - 2026-03-03 01:12:31 --> Could not find the language line "today"
ERROR - 2026-03-03 01:12:31 --> ========== DEBUG NCRE ==========
ERROR - 2026-03-03 01:12:31 --> POST COMPLETO: {"invoice_id":"14","items":"[{\"id\":22,\"cantidad\":5,\"precio\":15},{\"id\":21,\"cantidad\":2,\"precio\":5}]","producto_cantidad":{"22":"5.0000","21":"2"},"descuento_ncre":"0","tipo_descuento":"porcentaje","nota_credito_razon":"SE FACTURARON PRODUCTOS DE MAS"}
ERROR - 2026-03-03 01:12:31 --> invoice_id: 14
ERROR - 2026-03-03 01:12:31 --> items: [{"id":22,"cantidad":5,"precio":15},{"id":21,"cantidad":2,"precio":5}]
ERROR - 2026-03-03 01:12:31 --> razon: SE FACTURARON PRODUCTOS DE MAS
ERROR - 2026-03-03 01:12:31 --> ITEMS DECODIFICADOS: [{"id":22,"cantidad":5,"precio":15},{"id":21,"cantidad":2,"precio":5}]
ERROR - 2026-03-03 01:12:31 --> INVOICE_ID RECIBIDO: 14
ERROR - 2026-03-03 01:12:31 --> FACTURA ORIGINAL: {"id":"14","ticket_id":"SALE2026\/02\/0026","branch_id":"1","branch_name":"MACRETO RETALHULEU","client_nit":"37748505","xml_base64":"[encoded data, 20920 characters]","html_base64":"","pdf_base64":"","qr_base64":null,"file_name_suggested":null,"url":null,"issued_at":"2026-02-25 17:21:00","created_at":"2026-02-25 17:24:06","company_id":"3","receptor_nombre":"GONZ\u00c1LEZ,MURILLO,,STEVE,ALEXANDER","receptor_direccion":"CIUDAD","receptor_municipio":"GUATEMALA","receptor_departamento":"GUATEMALA","receptor_pais":"GT","grand_total":"90.00","total_tax":"9.64","total_discount":"0.00","created_by_user_id":"3","serie":"929C10BA","numero":"686048580","qr_url":null,"uuid":"929C10BA-28E4-4544-AEEC-658B7866A1BD","tipo_dte":"FACT","anulada":"NO","fecha_anulacion":null,"motivo_anulacion":null,"acuse_anulacion":null,"anulada_por":null,"ncre":"NO"}
ERROR - 2026-03-03 01:12:31 --> ITEMS PROCESADOS: [{"product_id":22,"product_code":"","product_name":"","quantity":5,"unit_price":15,"taxable_amount":66.964286,"tax_amount":8.035714,"total":75,"discount":0},{"product_id":21,"product_code":"","product_name":"","quantity":2,"unit_price":5,"taxable_amount":8.928571,"tax_amount":1.071429,"total":10,"discount":0}]
ERROR - 2026-03-03 01:12:31 --> NOTA CREDITO DATA: {"reference_no":"NCRE-1772521951","invoice_id":"14","date":"2026-03-03 01:12:31","total":85,"total_tax":9.107143,"total_discount":0,"subTotal":75.892857,"totalAmount":85,"taxes":9.107143,"discounts":0,"note":"SE FACTURARON PRODUCTOS DE MAS","branch_id":"1","branch_name":"MACRETO RETALHULEU","taxID":"37748505","receiverName":"GONZ\u00c1LEZ,MURILLO,,STEVE,ALEXANDER"}
ERROR - 2026-03-03 01:12:31 --> JSON DIGIFACT GENERADO: {"Version":"1.00","CountryCode":"GT","Header":{"DocType":"NCRE","IssuedDateTime":"2026-03-03T01:12:31-06:00","Currency":"GTQ"},"Seller":{"TaxID":"62847325","TaxIDAdditionalInfo":[{"Name":"AfiliacionIVA","Data":null,"Value":"GEN"}],"Name":"MACRETO, SOCIEDAD ANONIMA","BranchInfo":{"Code":"1","Name":"MACRETO, SOCIEDAD ANONIMA","AddressInfo":{"Address":"1 AVENIDA 4-01 ZONA 5","City":"01001","District":"RETALHULEU","State":"RETALHULEU","Country":"GT"}}},"Buyer":{"TaxID":"37748505","Name":"GONZ\u00c1LEZ,MURILLO,,STEVE,ALEXANDER","AddressInfo":{"Address":"CIUDAD","City":"GUATEMALA","District":"GUATEMALA","State":"GUATEMALA","Country":"GT"}},"Items":[{"Number":"1","Codes":null,"Type":"Bien","Description":"PRODUCTO","Qty":"5.0000","UnitOfMeasure":"UND","Price":"15.00000","Discounts":null,"Taxes":{"Tax":[{"Code":"1","Description":"IVA","TaxableAmount":"66.964286","Amount":"8.03571"}]},"Totals":{"TotalItem":"75.0000"}},{"Number":"2","Codes":null,"Type":"Bien","Description":"PRODUCTO","Qty":"2.0000","UnitOfMeasure":"UND","Price":"5.00000","Discounts":null,"Taxes":{"Tax":[{"Code":"1","Description":"IVA","TaxableAmount":"8.928571","Amount":"1.07143"}]},"Totals":{"TotalItem":"10.0000"}}],"Totals":{"TotalTaxes":{"TotalTax":[{"Description":"IVA","Amount":"9.10714"}]},"GrandTotal":{"InvoiceTotal":"85.0000"}},"AdditionalDocumentInfo":{"AdditionalInfo":[{"Code":"NCRE","Type":"COMPLEMENTO","AditionalInfo":[{"Name":"NumeroAutorizacionDocumentoOrigen","Data":null,"Value":"929C10BA-28E4-4544-AEEC-658B7866A1BD"},{"Name":"FechaEmisionDocumentoOrigen","Data":null,"Value":"2026-02-25"},{"Name":"MotivoAjuste","Data":null,"Value":"SE FACTURARON PRODUCTOS DE MAS"},{"Name":"NumeroDocumentoOrigen","Data":null,"Value":"686048580"},{"Name":"SerieDocumentoOrigen","Data":null,"Value":"929C10BA"}]},{"Code":"CODIGO-SECUENCIAL-0001","Type":"ADENDA","AditionalData":{"Data":[{"Info":[{"Name":"OBSERVACIONES","Data":null,"Value":"-"},{"Name":"CANTIDAD_LETRAS","Data":null,"Value":"OCHENTA Y CINCO CON 00\/100"}]}]},"AditionalInfo":[{"Name":"VALIDAR_REFERENCIA_INTERNA","Data":null,"Value":"NO_VALIDAR"}]}]}}
ERROR - 2026-03-03 01:12:31 --> =========== JSON NCRE GENERADO ===========
ERROR - 2026-03-03 01:12:31 --> {"Version":"1.00","CountryCode":"GT","Header":{"DocType":"NCRE","IssuedDateTime":"2026-03-03T01:12:31-06:00","Currency":"GTQ"},"Seller":{"TaxID":"62847325","TaxIDAdditionalInfo":[{"Name":"AfiliacionIVA","Data":null,"Value":"GEN"}],"Name":"MACRETO, SOCIEDAD ANONIMA","BranchInfo":{"Code":"1","Name":"MACRETO, SOCIEDAD ANONIMA","AddressInfo":{"Address":"1 AVENIDA 4-01 ZONA 5","City":"01001","District":"RETALHULEU","State":"RETALHULEU","Country":"GT"}}},"Buyer":{"TaxID":"37748505","Name":"GONZ\u00c1LEZ,MURILLO,,STEVE,ALEXANDER","AddressInfo":{"Address":"CIUDAD","City":"GUATEMALA","District":"GUATEMALA","State":"GUATEMALA","Country":"GT"}},"Items":[{"Number":"1","Codes":null,"Type":"Bien","Description":"PRODUCTO","Qty":"5.0000","UnitOfMeasure":"UND","Price":"15.00000","Discounts":null,"Taxes":{"Tax":[{"Code":"1","Description":"IVA","TaxableAmount":"66.964286","Amount":"8.03571"}]},"Totals":{"TotalItem":"75.0000"}},{"Number":"2","Codes":null,"Type":"Bien","Description":"PRODUCTO","Qty":"2.0000","UnitOfMeasure":"UND","Price":"5.00000","Discounts":null,"Taxes":{"Tax":[{"Code":"1","Description":"IVA","TaxableAmount":"8.928571","Amount":"1.07143"}]},"Totals":{"TotalItem":"10.0000"}}],"Totals":{"TotalTaxes":{"TotalTax":[{"Description":"IVA","Amount":"9.10714"}]},"GrandTotal":{"InvoiceTotal":"85.0000"}},"AdditionalDocumentInfo":{"AdditionalInfo":[{"Code":"NCRE","Type":"COMPLEMENTO","AditionalInfo":[{"Name":"NumeroAutorizacionDocumentoOrigen","Data":null,"Value":"929C10BA-28E4-4544-AEEC-658B7866A1BD"},{"Name":"FechaEmisionDocumentoOrigen","Data":null,"Value":"2026-02-25"},{"Name":"MotivoAjuste","Data":null,"Value":"SE FACTURARON PRODUCTOS DE MAS"},{"Name":"NumeroDocumentoOrigen","Data":null,"Value":"686048580"},{"Name":"SerieDocumentoOrigen","Data":null,"Value":"929C10BA"}]},{"Code":"CODIGO-SECUENCIAL-0001","Type":"ADENDA","AditionalData":{"Data":[{"Info":[{"Name":"OBSERVACIONES","Data":null,"Value":"-"},{"Name":"CANTIDAD_LETRAS","Data":null,"Value":"OCHENTA Y CINCO CON 00\/100"}]}]},"AditionalInfo":[{"Name":"VALIDAR_REFERENCIA_INTERNA","Data":null,"Value":"NO_VALIDAR"}]}]}}
ERROR - 2026-03-03 01:12:31 --> =========== FIN JSON NCRE ===========
ERROR - 2026-03-03 01:12:31 --> Could not find the language line "today"
ERROR - 2026-03-03 01:12:31 --> CONEXION CERTIFICADOR: stdClass Object
(
    [id] => 16
    [sucursal_id] => 1
    [certificador_id] => 7
    [nit] => 000062847325
    [usuario] => 62847325
    [contrasena] => Guate123*
    [activo] => 1
    [fecha_creacion] => 2025-09-04 22:46:43
    [token_nuc] => 
    [token_nuc_expira] => 
)

ERROR - 2026-03-03 01:12:31 --> JSON FEL (DEBUG): {
    "Version": "1.00",
    "CountryCode": "GT",
    "Header": {
        "DocType": "NCRE",
        "IssuedDateTime": "2026-03-03T01:12:31-06:00",
        "Currency": "GTQ"
    },
    "Seller": {
        "TaxID": "62847325",
        "TaxIDAdditionalInfo": [
            {
                "Name": "AfiliacionIVA",
                "Data": null,
                "Value": "GEN"
            }
        ],
        "Name": "MACRETO, SOCIEDAD ANONIMA",
        "BranchInfo": {
            "Code": "1",
            "Name": "MACRETO, SOCIEDAD ANONIMA",
            "AddressInfo": {
                "Address": "1 AVENIDA 4-01 ZONA 5",
                "City": "01001",
                "District": "RETALHULEU",
                "State": "RETALHULEU",
                "Country": "GT"
            }
        }
    },
    "Buyer": {
        "TaxID": "37748505",
        "Name": "GONZ\u00c1LEZ,MURILLO,,STEVE,ALEXANDER",
        "AddressInfo": {
            "Address": "CIUDAD",
            "City": "GUATEMALA",
            "District": "GUATEMALA",
            "State": "GUATEMALA",
            "Country": "GT"
        }
    },
    "Items": [
        {
            "Number": "1",
            "Codes": null,
            "Type": "Bien",
            "Description": "PRODUCTO",
            "Qty": "5.0000",
            "UnitOfMeasure": "UND",
            "Price": "15.00000",
            "Discounts": null,
            "Taxes": {
                "Tax": [
                    {
                        "Code": "1",
                        "Description": "IVA",
                        "TaxableAmount": "66.964286",
                        "Amount": "8.03571"
                    }
                ]
            },
            "Totals": {
                "TotalItem": "75.0000"
            }
        },
        {
            "Number": "2",
            "Codes": null,
            "Type": "Bien",
            "Description": "PRODUCTO",
            "Qty": "2.0000",
            "UnitOfMeasure": "UND",
            "Price": "5.00000",
            "Discounts": null,
            "Taxes": {
                "Tax": [
                    {
                        "Code": "1",
                        "Description": "IVA",
                        "TaxableAmount": "8.928571",
                        "Amount": "1.07143"
                    }
                ]
            },
            "Totals": {
                "TotalItem": "10.0000"
            }
        }
    ],
    "Totals": {
        "TotalTaxes": {
            "TotalTax": [
                {
                    "Description": "IVA",
                    "Amount": "9.10714"
                }
            ]
        },
        "GrandTotal": {
            "InvoiceTotal": "85.0000"
        }
    },
    "AdditionalDocumentInfo": {
        "AdditionalInfo": [
            {
                "Code": "NCRE",
                "Type": "COMPLEMENTO",
                "AditionalInfo": [
                    {
                        "Name": "NumeroAutorizacionDocumentoOrigen",
                        "Data": null,
                        "Value": "929C10BA-28E4-4544-AEEC-658B7866A1BD"
                    },
                    {
                        "Name": "FechaEmisionDocumentoOrigen",
                        "Data": null,
                        "Value": "2026-02-25"
                    },
                    {
                        "Name": "MotivoAjuste",
                        "Data": null,
                        "Value": "SE FACTURARON PRODUCTOS DE MAS"
                    },
                    {
                        "Name": "NumeroDocumentoOrigen",
                        "Data": null,
                        "Value": "686048580"
                    },
                    {
                        "Name": "SerieDocumentoOrigen",
                        "Data": null,
                        "Value": "929C10BA"
                    }
                ]
            },
            {
                "Code": "CODIGO-SECUENCIAL-0001",
                "Type": "ADENDA",
                "AditionalData": {
                    "Data": [
                        {
                            "Info": [
                                {
                                    "Name": "OBSERVACIONES",
                                    "Data": null,
                                    "Value": "-"
                                },
                                {
                                    "Name": "CANTIDAD_LETRAS",
                                    "Data": null,
                                    "Value": "OCHENTA Y CINCO CON 00\/100"
                                }
                            ]
                        }
                    ]
                },
                "AditionalInfo": [
                    {
                        "Name": "VALIDAR_REFERENCIA_INTERNA",
                        "Data": null,
                        "Value": "NO_VALIDAR"
                    }
                ]
            }
        ]
    }
}
ERROR - 2026-03-03 01:12:31 --> ======= DATOS ENVIO NOTA DE CREDITO FEL =======
ERROR - 2026-03-03 01:12:31 --> TOKEN FEL: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVc2VyIjoiR1QuMDAwMDYyODQ3MzI1LjYyODQ3MzI1IiwiQ291bnRyeSI6IkdUIiwiRW52IjoiMSIsIm5iZiI6MTc3MTk1NDY3NSwiZXhwIjoxNzc0NTQ2Njc1LCJpYXQiOjE3NzE5NTQ2NzUsImlzcyI6Imh0dHBzOi8vd3d3LmRpZ2lmYWN0LmNvbS5ndCIsImF1ZCI6Imh0dHBzOi8vYXBpbnVjLmRpZ2lmYWN0LmNvbS5kby9kby5jb20uYXBpbnVjIn0.cOAi0YJRGOJJ35RNWEgNDVfAet7uCTW50YoLTF3gaeg
ERROR - 2026-03-03 01:12:31 --> TAXID FEL: 000062847325
ERROR - 2026-03-03 01:12:31 --> USERNAME FEL: 62847325
ERROR - 2026-03-03 01:12:31 --> URL FINAL FEL (NOTA CREDITO): https://nucgt.digifact.com/gt.com.apinuc/api/v2/transform/nuc_json?TAXID=000062847325&USERNAME=62847325&FORMAT=XML
ERROR - 2026-03-03 01:12:31 --> BODY ENVIADO FEL (NOTA CREDITO): {"Version":"1.00","CountryCode":"GT","Header":{"DocType":"NCRE","IssuedDateTime":"2026-03-03T01:12:31-06:00","Currency":"GTQ"},"Seller":{"TaxID":"62847325","TaxIDAdditionalInfo":[{"Name":"AfiliacionIVA","Data":null,"Value":"GEN"}],"Name":"MACRETO, SOCIEDAD ANONIMA","BranchInfo":{"Code":"1","Name":"MACRETO, SOCIEDAD ANONIMA","AddressInfo":{"Address":"1 AVENIDA 4-01 ZONA 5","City":"01001","District":"RETALHULEU","State":"RETALHULEU","Country":"GT"}}},"Buyer":{"TaxID":"37748505","Name":"GONZÁLEZ,MURILLO,,STEVE,ALEXANDER","AddressInfo":{"Address":"CIUDAD","City":"GUATEMALA","District":"GUATEMALA","State":"GUATEMALA","Country":"GT"}},"Items":[{"Number":"1","Codes":null,"Type":"Bien","Description":"PRODUCTO","Qty":"5.0000","UnitOfMeasure":"UND","Price":"15.00000","Discounts":null,"Taxes":{"Tax":[{"Code":"1","Description":"IVA","TaxableAmount":"66.964286","Amount":"8.03571"}]},"Totals":{"TotalItem":"75.0000"}},{"Number":"2","Codes":null,"Type":"Bien","Description":"PRODUCTO","Qty":"2.0000","UnitOfMeasure":"UND","Price":"5.00000","Discounts":null,"Taxes":{"Tax":[{"Code":"1","Description":"IVA","TaxableAmount":"8.928571","Amount":"1.07143"}]},"Totals":{"TotalItem":"10.0000"}}],"Totals":{"TotalTaxes":{"TotalTax":[{"Description":"IVA","Amount":"9.10714"}]},"GrandTotal":{"InvoiceTotal":"85.0000"}},"AdditionalDocumentInfo":{"AdditionalInfo":[{"Code":"NCRE","Type":"COMPLEMENTO","AditionalInfo":[{"Name":"NumeroAutorizacionDocumentoOrigen","Data":null,"Value":"929C10BA-28E4-4544-AEEC-658B7866A1BD"},{"Name":"FechaEmisionDocumentoOrigen","Data":null,"Value":"2026-02-25"},{"Name":"MotivoAjuste","Data":null,"Value":"SE FACTURARON PRODUCTOS DE MAS"},{"Name":"NumeroDocumentoOrigen","Data":null,"Value":"686048580"},{"Name":"SerieDocumentoOrigen","Data":null,"Value":"929C10BA"}]},{"Code":"CODIGO-SECUENCIAL-0001","Type":"ADENDA","AditionalData":{"Data":[{"Info":[{"Name":"OBSERVACIONES","Data":null,"Value":"-"},{"Name":"CANTIDAD_LETRAS","Data":null,"Value":"OCHENTA Y CINCO CON 00/100"}]}]},"AditionalInfo":[{"Name":"VALIDAR_REFERENCIA_INTERNA","Data":null,"Value":"NO_VALIDAR"}]}]}}
ERROR - 2026-03-03 01:12:31 --> JSON FEL ENVIADO (FORMATEADO - NOTA CREDITO): {
    "Version": "1.00",
    "CountryCode": "GT",
    "Header": {
        "DocType": "NCRE",
        "IssuedDateTime": "2026-03-03T01:12:31-06:00",
        "Currency": "GTQ"
    },
    "Seller": {
        "TaxID": "62847325",
        "TaxIDAdditionalInfo": [
            {
                "Name": "AfiliacionIVA",
                "Data": null,
                "Value": "GEN"
            }
        ],
        "Name": "MACRETO, SOCIEDAD ANONIMA",
        "BranchInfo": {
            "Code": "1",
            "Name": "MACRETO, SOCIEDAD ANONIMA",
            "AddressInfo": {
                "Address": "1 AVENIDA 4-01 ZONA 5",
                "City": "01001",
                "District": "RETALHULEU",
                "State": "RETALHULEU",
                "Country": "GT"
            }
        }
    },
    "Buyer": {
        "TaxID": "37748505",
        "Name": "GONZ\u00c1LEZ,MURILLO,,STEVE,ALEXANDER",
        "AddressInfo": {
            "Address": "CIUDAD",
            "City": "GUATEMALA",
            "District": "GUATEMALA",
            "State": "GUATEMALA",
            "Country": "GT"
        }
    },
    "Items": [
        {
            "Number": "1",
            "Codes": null,
            "Type": "Bien",
            "Description": "PRODUCTO",
            "Qty": "5.0000",
            "UnitOfMeasure": "UND",
            "Price": "15.00000",
            "Discounts": null,
            "Taxes": {
                "Tax": [
                    {
                        "Code": "1",
                        "Description": "IVA",
                        "TaxableAmount": "66.964286",
                        "Amount": "8.03571"
                    }
                ]
            },
            "Totals": {
                "TotalItem": "75.0000"
            }
        },
        {
            "Number": "2",
            "Codes": null,
            "Type": "Bien",
            "Description": "PRODUCTO",
            "Qty": "2.0000",
            "UnitOfMeasure": "UND",
            "Price": "5.00000",
            "Discounts": null,
            "Taxes": {
                "Tax": [
                    {
                        "Code": "1",
                        "Description": "IVA",
                        "TaxableAmount": "8.928571",
                        "Amount": "1.07143"
                    }
                ]
            },
            "Totals": {
                "TotalItem": "10.0000"
            }
        }
    ],
    "Totals": {
        "TotalTaxes": {
            "TotalTax": [
                {
                    "Description": "IVA",
                    "Amount": "9.10714"
                }
            ]
        },
        "GrandTotal": {
            "InvoiceTotal": "85.0000"
        }
    },
    "AdditionalDocumentInfo": {
        "AdditionalInfo": [
            {
                "Code": "NCRE",
                "Type": "COMPLEMENTO",
                "AditionalInfo": [
                    {
                        "Name": "NumeroAutorizacionDocumentoOrigen",
                        "Data": null,
                        "Value": "929C10BA-28E4-4544-AEEC-658B7866A1BD"
                    },
                    {
                        "Name": "FechaEmisionDocumentoOrigen",
                        "Data": null,
                        "Value": "2026-02-25"
                    },
                    {
                        "Name": "MotivoAjuste",
                        "Data": null,
                        "Value": "SE FACTURARON PRODUCTOS DE MAS"
                    },
                    {
                        "Name": "NumeroDocumentoOrigen",
                        "Data": null,
                        "Value": "686048580"
                    },
                    {
                        "Name": "SerieDocumentoOrigen",
                        "Data": null,
                        "Value": "929C10BA"
                    }
                ]
            },
            {
                "Code": "CODIGO-SECUENCIAL-0001",
                "Type": "ADENDA",
                "AditionalData": {
                    "Data": [
                        {
                            "Info": [
                                {
                                    "Name": "OBSERVACIONES",
                                    "Data": null,
                                    "Value": "-"
                                },
                                {
                                    "Name": "CANTIDAD_LETRAS",
                                    "Data": null,
                                    "Value": "OCHENTA Y CINCO CON 00\/100"
                                }
                            ]
                        }
                    ]
                },
                "AditionalInfo": [
                    {
                        "Name": "VALIDAR_REFERENCIA_INTERNA",
                        "Data": null,
                        "Value": "NO_VALIDAR"
                    }
                ]
            }
        ]
    }
}
ERROR - 2026-03-03 01:12:32 --> HEADERS REALES ENVIADOS POR CURL (NOTA CREDITO): 
ERROR - 2026-03-03 01:12:32 --> HTTP CODE FEL (NOTA CREDITO): 200
ERROR - 2026-03-03 01:12:32 --> FEL RESPONSE (NOTA CREDITO): {"code":3000,"message":"Falló la validación de XML contra su esquema.","description":"[3010] - ****** Mensaje ******\nSchema validation failed for namespace = '' with schema URI = '' OR with schema repository URI = 'C:\\DIGIFACT\\DIGIFACT\\xml\\xsd\\'. Message: 'Error en validación de ESQUEMA '. Message: 'The 'http://www.sat.gob.gt/dte/fel/0.2.0:CodigoPostal' element is invalid - The value 'GUATEMALA' is invalid according to its datatype 'http://www.w3.org/2001/XMLSchema:integer' - The string 'GUATEMALA' is not a valid Integer value.'.'.\n\nDescripción: Falló la validación de XML contra su esquema.\nSugerencia:  Favor de validar su XML contra los esquemas que ostenta.\n\n\n******  Información técnica. ******\n        SchemaValidationFailed\n        XmlNoVálido\n        3010\n        XML_INVALID\n******  Detalles ******\nProcesador:  GT-BACKEND01-G\nMódulo:      gt.com.fel.FriendlyXml.dll\nClase:       Validator\nMétodo:      Validate\nFecha:       2026-03-03T01:12:31\n******  Parámetros (Primeros 300 carácteres como ASCII printable) ******\n******  Fin de detalles ******\n","responseData1":"","responseData2":"","responseData3":"","responseData4":"","authNumber":"","url":"","infoDetails":[],"suggestedFileName":"","suggestedFileName2":"","batch":"","serial":"","issuedTimeStamp":"","taxID":"","name":"","branchCode":"","branchName":"","receiverTaxID":"","receiverName":"","discounts":"","taxes":"","subTotal":"","totalAmount":"","enrolledTimeStamp":"","backprocessor":"GT-BACKEND01-G","additionalInfo":null}
ERROR - 2026-03-03 01:12:32 --> Severity: error --> Exception: Call to private method FelInvoice_model::saveNotaCredito() from context 'Fel' /home/tecnomania/fel.tecnomaniagt.com/ventas/app/controllers/admin/Fel.php 584
ERROR - 2026-03-03 01:16:49 --> Could not find the language line "today"
ERROR - 2026-03-03 01:16:51 --> Could not find the language line "today"
ERROR - 2026-03-03 01:16:51 --> Could not find the language line "shop"
ERROR - 2026-03-03 01:16:51 --> Could not find the language line "toggle_alignment"
ERROR - 2026-03-03 01:16:51 --> Could not find the language line "lista de Facturas"
ERROR - 2026-03-03 01:16:51 --> Could not find the language line "Bonificaciones"
ERROR - 2026-03-03 01:16:51 --> Could not find the language line "Lista de Bonificaciones"
ERROR - 2026-03-03 01:16:51 --> Could not find the language line "Agregar Bonificación"
ERROR - 2026-03-03 01:16:51 --> Could not find the language line "Mermas"
ERROR - 2026-03-03 01:16:51 --> Could not find the language line "Lista de Merma"
ERROR - 2026-03-03 01:16:51 --> Could not find the language line "Agregar Merma"
ERROR - 2026-03-03 01:16:51 --> Could not find the language line "Certificadores"
ERROR - 2026-03-03 01:16:51 --> Could not find the language line "listado de Certifiacadores"
ERROR - 2026-03-03 01:16:51 --> Could not find the language line "Agregar Certitificador"
ERROR - 2026-03-03 01:16:51 --> Could not find the language line "Listado de Cliente Certificador"
ERROR - 2026-03-03 01:16:51 --> Could not find the language line "Agregar Cliente Certificador"
ERROR - 2026-03-03 01:16:51 --> Could not find the language line "Informe de Consolidado"
ERROR - 2026-03-03 01:16:51 --> Could not find the language line "Informe de mermas"
ERROR - 2026-03-03 01:16:51 --> Could not find the language line "Informe de bonificaciones"
ERROR - 2026-03-03 01:16:51 --> Could not find the language line "Informe de Rutas"
ERROR - 2026-03-03 01:16:51 --> Could not find the language line "ordered"
ERROR - 2026-03-03 01:16:51 --> Could not find the language line "due"
ERROR - 2026-03-03 01:16:51 --> Could not find the language line "transferring"
ERROR - 2026-03-03 01:16:51 --> Could not find the language line "download"
ERROR - 2026-03-03 01:16:51 --> Could not find the language line "required_invalid"
ERROR - 2026-03-03 01:16:52 --> Could not find the language line "today"
ERROR - 2026-03-03 01:16:53 --> Could not find the language line "today"
ERROR - 2026-03-03 01:17:03 --> Could not find the language line "today"
ERROR - 2026-03-03 01:17:03 --> ========== DEBUG NCRE ==========
ERROR - 2026-03-03 01:17:03 --> POST COMPLETO: {"invoice_id":"14","items":"[{\"id\":22,\"cantidad\":5,\"precio\":15},{\"id\":21,\"cantidad\":2,\"precio\":5}]","producto_cantidad":{"22":"5.0000","21":"2"},"descuento_ncre":"0","tipo_descuento":"porcentaje","nota_credito_razon":"SE FACTURARON PRODUCTOS DE MAS"}
ERROR - 2026-03-03 01:17:03 --> invoice_id: 14
ERROR - 2026-03-03 01:17:03 --> items: [{"id":22,"cantidad":5,"precio":15},{"id":21,"cantidad":2,"precio":5}]
ERROR - 2026-03-03 01:17:03 --> razon: SE FACTURARON PRODUCTOS DE MAS
ERROR - 2026-03-03 01:17:03 --> ITEMS DECODIFICADOS: [{"id":22,"cantidad":5,"precio":15},{"id":21,"cantidad":2,"precio":5}]
ERROR - 2026-03-03 01:17:03 --> INVOICE_ID RECIBIDO: 14
ERROR - 2026-03-03 01:17:03 --> FACTURA ORIGINAL: {"id":"14","ticket_id":"SALE2026\/02\/0026","branch_id":"1","branch_name":"MACRETO RETALHULEU","client_nit":"37748505","xml_base64":"[encoded data, 20920 characters]","html_base64":"","pdf_base64":"","qr_base64":null,"file_name_suggested":null,"url":null,"issued_at":"2026-02-25 17:21:00","created_at":"2026-02-25 17:24:06","company_id":"3","receptor_nombre":"GONZ\u00c1LEZ,MURILLO,,STEVE,ALEXANDER","receptor_direccion":"CIUDAD","receptor_municipio":"GUATEMALA","receptor_departamento":"GUATEMALA","receptor_pais":"GT","grand_total":"90.00","total_tax":"9.64","total_discount":"0.00","created_by_user_id":"3","serie":"929C10BA","numero":"686048580","qr_url":null,"uuid":"929C10BA-28E4-4544-AEEC-658B7866A1BD","tipo_dte":"FACT","anulada":"NO","fecha_anulacion":null,"motivo_anulacion":null,"acuse_anulacion":null,"anulada_por":null,"ncre":"NO"}
ERROR - 2026-03-03 01:17:03 --> ITEMS PROCESADOS: [{"product_id":22,"product_code":"","product_name":"","quantity":5,"unit_price":15,"taxable_amount":66.964286,"tax_amount":8.035714,"total":75,"discount":0},{"product_id":21,"product_code":"","product_name":"","quantity":2,"unit_price":5,"taxable_amount":8.928571,"tax_amount":1.071429,"total":10,"discount":0}]
ERROR - 2026-03-03 01:17:03 --> NOTA CREDITO DATA: {"reference_no":"NCRE-1772522223","invoice_id":"14","date":"2026-03-03 01:17:03","total":85,"total_tax":9.107143,"total_discount":0,"subTotal":75.892857,"totalAmount":85,"taxes":9.107143,"discounts":0,"note":"SE FACTURARON PRODUCTOS DE MAS","branch_id":"1","branch_name":"MACRETO RETALHULEU","taxID":"37748505","receiverName":"GONZ\u00c1LEZ,MURILLO,,STEVE,ALEXANDER"}
ERROR - 2026-03-03 01:17:03 --> JSON DIGIFACT GENERADO: {"Version":"1.00","CountryCode":"GT","Header":{"DocType":"NCRE","IssuedDateTime":"2026-03-03T01:17:03-06:00","Currency":"GTQ"},"Seller":{"TaxID":"62847325","TaxIDAdditionalInfo":[{"Name":"AfiliacionIVA","Data":null,"Value":"GEN"}],"Name":"MACRETO, SOCIEDAD ANONIMA","BranchInfo":{"Code":"1","Name":"MACRETO, SOCIEDAD ANONIMA","AddressInfo":{"Address":"1 AVENIDA 4-01 ZONA 5","City":"01001","District":"RETALHULEU","State":"RETALHULEU","Country":"GT"}}},"Buyer":{"TaxID":"37748505","Name":"GONZ\u00c1LEZ,MURILLO,,STEVE,ALEXANDER","AddressInfo":{"Address":"CIUDAD","City":"GUATEMALA","District":"GUATEMALA","State":"GUATEMALA","Country":"GT"}},"Items":[{"Number":"1","Codes":null,"Type":"Bien","Description":null,"Qty":"5.0000","UnitOfMeasure":"UND","Price":"15.00000","Discounts":null,"Taxes":{"Tax":[{"Code":"1","Description":"IVA","TaxableAmount":"66.964286","Amount":"8.03571"}]},"Totals":{"TotalItem":"75.0000"}},{"Number":"2","Codes":null,"Type":"Bien","Description":null,"Qty":"2.0000","UnitOfMeasure":"UND","Price":"5.00000","Discounts":null,"Taxes":{"Tax":[{"Code":"1","Description":"IVA","TaxableAmount":"8.928571","Amount":"1.07143"}]},"Totals":{"TotalItem":"10.0000"}}],"Totals":{"TotalTaxes":{"TotalTax":[{"Description":"IVA","Amount":"9.10714"}]},"GrandTotal":{"InvoiceTotal":"85.0000"}},"AdditionalDocumentInfo":{"AdditionalInfo":[{"Code":"NCRE","Type":"COMPLEMENTO","AditionalInfo":[{"Name":"NumeroAutorizacionDocumentoOrigen","Data":null,"Value":"929C10BA-28E4-4544-AEEC-658B7866A1BD"},{"Name":"FechaEmisionDocumentoOrigen","Data":null,"Value":"2026-02-25"},{"Name":"MotivoAjuste","Data":null,"Value":"SE FACTURARON PRODUCTOS DE MAS"},{"Name":"NumeroDocumentoOrigen","Data":null,"Value":"686048580"},{"Name":"SerieDocumentoOrigen","Data":null,"Value":"929C10BA"}]},{"Code":"CODIGO-SECUENCIAL-0001","Type":"ADENDA","AditionalData":{"Data":[{"Info":[{"Name":"OBSERVACIONES","Data":null,"Value":"-"},{"Name":"CANTIDAD_LETRAS","Data":null,"Value":"OCHENTA Y CINCO CON 00\/100"}]}]},"AditionalInfo":[{"Name":"VALIDAR_REFERENCIA_INTERNA","Data":null,"Value":"NO_VALIDAR"}]}]}}
ERROR - 2026-03-03 01:17:03 --> =========== JSON NCRE GENERADO ===========
ERROR - 2026-03-03 01:17:03 --> {"Version":"1.00","CountryCode":"GT","Header":{"DocType":"NCRE","IssuedDateTime":"2026-03-03T01:17:03-06:00","Currency":"GTQ"},"Seller":{"TaxID":"62847325","TaxIDAdditionalInfo":[{"Name":"AfiliacionIVA","Data":null,"Value":"GEN"}],"Name":"MACRETO, SOCIEDAD ANONIMA","BranchInfo":{"Code":"1","Name":"MACRETO, SOCIEDAD ANONIMA","AddressInfo":{"Address":"1 AVENIDA 4-01 ZONA 5","City":"01001","District":"RETALHULEU","State":"RETALHULEU","Country":"GT"}}},"Buyer":{"TaxID":"37748505","Name":"GONZ\u00c1LEZ,MURILLO,,STEVE,ALEXANDER","AddressInfo":{"Address":"CIUDAD","City":"GUATEMALA","District":"GUATEMALA","State":"GUATEMALA","Country":"GT"}},"Items":[{"Number":"1","Codes":null,"Type":"Bien","Description":null,"Qty":"5.0000","UnitOfMeasure":"UND","Price":"15.00000","Discounts":null,"Taxes":{"Tax":[{"Code":"1","Description":"IVA","TaxableAmount":"66.964286","Amount":"8.03571"}]},"Totals":{"TotalItem":"75.0000"}},{"Number":"2","Codes":null,"Type":"Bien","Description":null,"Qty":"2.0000","UnitOfMeasure":"UND","Price":"5.00000","Discounts":null,"Taxes":{"Tax":[{"Code":"1","Description":"IVA","TaxableAmount":"8.928571","Amount":"1.07143"}]},"Totals":{"TotalItem":"10.0000"}}],"Totals":{"TotalTaxes":{"TotalTax":[{"Description":"IVA","Amount":"9.10714"}]},"GrandTotal":{"InvoiceTotal":"85.0000"}},"AdditionalDocumentInfo":{"AdditionalInfo":[{"Code":"NCRE","Type":"COMPLEMENTO","AditionalInfo":[{"Name":"NumeroAutorizacionDocumentoOrigen","Data":null,"Value":"929C10BA-28E4-4544-AEEC-658B7866A1BD"},{"Name":"FechaEmisionDocumentoOrigen","Data":null,"Value":"2026-02-25"},{"Name":"MotivoAjuste","Data":null,"Value":"SE FACTURARON PRODUCTOS DE MAS"},{"Name":"NumeroDocumentoOrigen","Data":null,"Value":"686048580"},{"Name":"SerieDocumentoOrigen","Data":null,"Value":"929C10BA"}]},{"Code":"CODIGO-SECUENCIAL-0001","Type":"ADENDA","AditionalData":{"Data":[{"Info":[{"Name":"OBSERVACIONES","Data":null,"Value":"-"},{"Name":"CANTIDAD_LETRAS","Data":null,"Value":"OCHENTA Y CINCO CON 00\/100"}]}]},"AditionalInfo":[{"Name":"VALIDAR_REFERENCIA_INTERNA","Data":null,"Value":"NO_VALIDAR"}]}]}}
ERROR - 2026-03-03 01:17:03 --> =========== FIN JSON NCRE ===========
ERROR - 2026-03-03 01:17:03 --> Could not find the language line "today"
ERROR - 2026-03-03 01:17:03 --> CONEXION CERTIFICADOR: stdClass Object
(
    [id] => 16
    [sucursal_id] => 1
    [certificador_id] => 7
    [nit] => 000062847325
    [usuario] => 62847325
    [contrasena] => Guate123*
    [activo] => 1
    [fecha_creacion] => 2025-09-04 22:46:43
    [token_nuc] => 
    [token_nuc_expira] => 
)

ERROR - 2026-03-03 01:17:03 --> JSON FEL (DEBUG): {
    "Version": "1.00",
    "CountryCode": "GT",
    "Header": {
        "DocType": "NCRE",
        "IssuedDateTime": "2026-03-03T01:17:03-06:00",
        "Currency": "GTQ"
    },
    "Seller": {
        "TaxID": "62847325",
        "TaxIDAdditionalInfo": [
            {
                "Name": "AfiliacionIVA",
                "Data": null,
                "Value": "GEN"
            }
        ],
        "Name": "MACRETO, SOCIEDAD ANONIMA",
        "BranchInfo": {
            "Code": "1",
            "Name": "MACRETO, SOCIEDAD ANONIMA",
            "AddressInfo": {
                "Address": "1 AVENIDA 4-01 ZONA 5",
                "City": "01001",
                "District": "RETALHULEU",
                "State": "RETALHULEU",
                "Country": "GT"
            }
        }
    },
    "Buyer": {
        "TaxID": "37748505",
        "Name": "GONZ\u00c1LEZ,MURILLO,,STEVE,ALEXANDER",
        "AddressInfo": {
            "Address": "CIUDAD",
            "City": "GUATEMALA",
            "District": "GUATEMALA",
            "State": "GUATEMALA",
            "Country": "GT"
        }
    },
    "Items": [
        {
            "Number": "1",
            "Codes": null,
            "Type": "Bien",
            "Description": null,
            "Qty": "5.0000",
            "UnitOfMeasure": "UND",
            "Price": "15.00000",
            "Discounts": null,
            "Taxes": {
                "Tax": [
                    {
                        "Code": "1",
                        "Description": "IVA",
                        "TaxableAmount": "66.964286",
                        "Amount": "8.03571"
                    }
                ]
            },
            "Totals": {
                "TotalItem": "75.0000"
            }
        },
        {
            "Number": "2",
            "Codes": null,
            "Type": "Bien",
            "Description": null,
            "Qty": "2.0000",
            "UnitOfMeasure": "UND",
            "Price": "5.00000",
            "Discounts": null,
            "Taxes": {
                "Tax": [
                    {
                        "Code": "1",
                        "Description": "IVA",
                        "TaxableAmount": "8.928571",
                        "Amount": "1.07143"
                    }
                ]
            },
            "Totals": {
                "TotalItem": "10.0000"
            }
        }
    ],
    "Totals": {
        "TotalTaxes": {
            "TotalTax": [
                {
                    "Description": "IVA",
                    "Amount": "9.10714"
                }
            ]
        },
        "GrandTotal": {
            "InvoiceTotal": "85.0000"
        }
    },
    "AdditionalDocumentInfo": {
        "AdditionalInfo": [
            {
                "Code": "NCRE",
                "Type": "COMPLEMENTO",
                "AditionalInfo": [
                    {
                        "Name": "NumeroAutorizacionDocumentoOrigen",
                        "Data": null,
                        "Value": "929C10BA-28E4-4544-AEEC-658B7866A1BD"
                    },
                    {
                        "Name": "FechaEmisionDocumentoOrigen",
                        "Data": null,
                        "Value": "2026-02-25"
                    },
                    {
                        "Name": "MotivoAjuste",
                        "Data": null,
                        "Value": "SE FACTURARON PRODUCTOS DE MAS"
                    },
                    {
                        "Name": "NumeroDocumentoOrigen",
                        "Data": null,
                        "Value": "686048580"
                    },
                    {
                        "Name": "SerieDocumentoOrigen",
                        "Data": null,
                        "Value": "929C10BA"
                    }
                ]
            },
            {
                "Code": "CODIGO-SECUENCIAL-0001",
                "Type": "ADENDA",
                "AditionalData": {
                    "Data": [
                        {
                            "Info": [
                                {
                                    "Name": "OBSERVACIONES",
                                    "Data": null,
                                    "Value": "-"
                                },
                                {
                                    "Name": "CANTIDAD_LETRAS",
                                    "Data": null,
                                    "Value": "OCHENTA Y CINCO CON 00\/100"
                                }
                            ]
                        }
                    ]
                },
                "AditionalInfo": [
                    {
                        "Name": "VALIDAR_REFERENCIA_INTERNA",
                        "Data": null,
                        "Value": "NO_VALIDAR"
                    }
                ]
            }
        ]
    }
}
ERROR - 2026-03-03 01:17:03 --> ======= DATOS ENVIO NOTA DE CREDITO FEL =======
ERROR - 2026-03-03 01:17:03 --> TOKEN FEL: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVc2VyIjoiR1QuMDAwMDYyODQ3MzI1LjYyODQ3MzI1IiwiQ291bnRyeSI6IkdUIiwiRW52IjoiMSIsIm5iZiI6MTc3MTk1NDY3NSwiZXhwIjoxNzc0NTQ2Njc1LCJpYXQiOjE3NzE5NTQ2NzUsImlzcyI6Imh0dHBzOi8vd3d3LmRpZ2lmYWN0LmNvbS5ndCIsImF1ZCI6Imh0dHBzOi8vYXBpbnVjLmRpZ2lmYWN0LmNvbS5kby9kby5jb20uYXBpbnVjIn0.cOAi0YJRGOJJ35RNWEgNDVfAet7uCTW50YoLTF3gaeg
ERROR - 2026-03-03 01:17:03 --> TAXID FEL: 000062847325
ERROR - 2026-03-03 01:17:03 --> USERNAME FEL: 62847325
ERROR - 2026-03-03 01:17:03 --> URL FINAL FEL (NOTA CREDITO): https://nucgt.digifact.com/gt.com.apinuc/api/v2/transform/nuc_json?TAXID=000062847325&USERNAME=62847325&FORMAT=XML
ERROR - 2026-03-03 01:17:03 --> BODY ENVIADO FEL (NOTA CREDITO): {"Version":"1.00","CountryCode":"GT","Header":{"DocType":"NCRE","IssuedDateTime":"2026-03-03T01:17:03-06:00","Currency":"GTQ"},"Seller":{"TaxID":"62847325","TaxIDAdditionalInfo":[{"Name":"AfiliacionIVA","Data":null,"Value":"GEN"}],"Name":"MACRETO, SOCIEDAD ANONIMA","BranchInfo":{"Code":"1","Name":"MACRETO, SOCIEDAD ANONIMA","AddressInfo":{"Address":"1 AVENIDA 4-01 ZONA 5","City":"01001","District":"RETALHULEU","State":"RETALHULEU","Country":"GT"}}},"Buyer":{"TaxID":"37748505","Name":"GONZÁLEZ,MURILLO,,STEVE,ALEXANDER","AddressInfo":{"Address":"CIUDAD","City":"GUATEMALA","District":"GUATEMALA","State":"GUATEMALA","Country":"GT"}},"Items":[{"Number":"1","Codes":null,"Type":"Bien","Description":null,"Qty":"5.0000","UnitOfMeasure":"UND","Price":"15.00000","Discounts":null,"Taxes":{"Tax":[{"Code":"1","Description":"IVA","TaxableAmount":"66.964286","Amount":"8.03571"}]},"Totals":{"TotalItem":"75.0000"}},{"Number":"2","Codes":null,"Type":"Bien","Description":null,"Qty":"2.0000","UnitOfMeasure":"UND","Price":"5.00000","Discounts":null,"Taxes":{"Tax":[{"Code":"1","Description":"IVA","TaxableAmount":"8.928571","Amount":"1.07143"}]},"Totals":{"TotalItem":"10.0000"}}],"Totals":{"TotalTaxes":{"TotalTax":[{"Description":"IVA","Amount":"9.10714"}]},"GrandTotal":{"InvoiceTotal":"85.0000"}},"AdditionalDocumentInfo":{"AdditionalInfo":[{"Code":"NCRE","Type":"COMPLEMENTO","AditionalInfo":[{"Name":"NumeroAutorizacionDocumentoOrigen","Data":null,"Value":"929C10BA-28E4-4544-AEEC-658B7866A1BD"},{"Name":"FechaEmisionDocumentoOrigen","Data":null,"Value":"2026-02-25"},{"Name":"MotivoAjuste","Data":null,"Value":"SE FACTURARON PRODUCTOS DE MAS"},{"Name":"NumeroDocumentoOrigen","Data":null,"Value":"686048580"},{"Name":"SerieDocumentoOrigen","Data":null,"Value":"929C10BA"}]},{"Code":"CODIGO-SECUENCIAL-0001","Type":"ADENDA","AditionalData":{"Data":[{"Info":[{"Name":"OBSERVACIONES","Data":null,"Value":"-"},{"Name":"CANTIDAD_LETRAS","Data":null,"Value":"OCHENTA Y CINCO CON 00/100"}]}]},"AditionalInfo":[{"Name":"VALIDAR_REFERENCIA_INTERNA","Data":null,"Value":"NO_VALIDAR"}]}]}}
ERROR - 2026-03-03 01:17:03 --> JSON FEL ENVIADO (FORMATEADO - NOTA CREDITO): {
    "Version": "1.00",
    "CountryCode": "GT",
    "Header": {
        "DocType": "NCRE",
        "IssuedDateTime": "2026-03-03T01:17:03-06:00",
        "Currency": "GTQ"
    },
    "Seller": {
        "TaxID": "62847325",
        "TaxIDAdditionalInfo": [
            {
                "Name": "AfiliacionIVA",
                "Data": null,
                "Value": "GEN"
            }
        ],
        "Name": "MACRETO, SOCIEDAD ANONIMA",
        "BranchInfo": {
            "Code": "1",
            "Name": "MACRETO, SOCIEDAD ANONIMA",
            "AddressInfo": {
                "Address": "1 AVENIDA 4-01 ZONA 5",
                "City": "01001",
                "District": "RETALHULEU",
                "State": "RETALHULEU",
                "Country": "GT"
            }
        }
    },
    "Buyer": {
        "TaxID": "37748505",
        "Name": "GONZ\u00c1LEZ,MURILLO,,STEVE,ALEXANDER",
        "AddressInfo": {
            "Address": "CIUDAD",
            "City": "GUATEMALA",
            "District": "GUATEMALA",
            "State": "GUATEMALA",
            "Country": "GT"
        }
    },
    "Items": [
        {
            "Number": "1",
            "Codes": null,
            "Type": "Bien",
            "Description": null,
            "Qty": "5.0000",
            "UnitOfMeasure": "UND",
            "Price": "15.00000",
            "Discounts": null,
            "Taxes": {
                "Tax": [
                    {
                        "Code": "1",
                        "Description": "IVA",
                        "TaxableAmount": "66.964286",
                        "Amount": "8.03571"
                    }
                ]
            },
            "Totals": {
                "TotalItem": "75.0000"
            }
        },
        {
            "Number": "2",
            "Codes": null,
            "Type": "Bien",
            "Description": null,
            "Qty": "2.0000",
            "UnitOfMeasure": "UND",
            "Price": "5.00000",
            "Discounts": null,
            "Taxes": {
                "Tax": [
                    {
                        "Code": "1",
                        "Description": "IVA",
                        "TaxableAmount": "8.928571",
                        "Amount": "1.07143"
                    }
                ]
            },
            "Totals": {
                "TotalItem": "10.0000"
            }
        }
    ],
    "Totals": {
        "TotalTaxes": {
            "TotalTax": [
                {
                    "Description": "IVA",
                    "Amount": "9.10714"
                }
            ]
        },
        "GrandTotal": {
            "InvoiceTotal": "85.0000"
        }
    },
    "AdditionalDocumentInfo": {
        "AdditionalInfo": [
            {
                "Code": "NCRE",
                "Type": "COMPLEMENTO",
                "AditionalInfo": [
                    {
                        "Name": "NumeroAutorizacionDocumentoOrigen",
                        "Data": null,
                        "Value": "929C10BA-28E4-4544-AEEC-658B7866A1BD"
                    },
                    {
                        "Name": "FechaEmisionDocumentoOrigen",
                        "Data": null,
                        "Value": "2026-02-25"
                    },
                    {
                        "Name": "MotivoAjuste",
                        "Data": null,
                        "Value": "SE FACTURARON PRODUCTOS DE MAS"
                    },
                    {
                        "Name": "NumeroDocumentoOrigen",
                        "Data": null,
                        "Value": "686048580"
                    },
                    {
                        "Name": "SerieDocumentoOrigen",
                        "Data": null,
                        "Value": "929C10BA"
                    }
                ]
            },
            {
                "Code": "CODIGO-SECUENCIAL-0001",
                "Type": "ADENDA",
                "AditionalData": {
                    "Data": [
                        {
                            "Info": [
                                {
                                    "Name": "OBSERVACIONES",
                                    "Data": null,
                                    "Value": "-"
                                },
                                {
                                    "Name": "CANTIDAD_LETRAS",
                                    "Data": null,
                                    "Value": "OCHENTA Y CINCO CON 00\/100"
                                }
                            ]
                        }
                    ]
                },
                "AditionalInfo": [
                    {
                        "Name": "VALIDAR_REFERENCIA_INTERNA",
                        "Data": null,
                        "Value": "NO_VALIDAR"
                    }
                ]
            }
        ]
    }
}
ERROR - 2026-03-03 01:17:04 --> HEADERS REALES ENVIADOS POR CURL (NOTA CREDITO): 
ERROR - 2026-03-03 01:17:04 --> HTTP CODE FEL (NOTA CREDITO): 200
ERROR - 2026-03-03 01:17:04 --> FEL RESPONSE (NOTA CREDITO): {"code":0,"message":"Ocurrio un error al convertir el NUC al xml de GT","description":"Error al transformar, No se encuentra el elemento Description en Item. [Ref D05]","responseData1":"","responseData2":"","responseData3":"","responseData4":"","authNumber":"","url":"","infoDetails":[],"suggestedFileName":"","suggestedFileName2":"","batch":"","serial":"","issuedTimeStamp":"","taxID":"","name":"","branchCode":"","branchName":"","receiverTaxID":"","receiverName":"","discounts":"","taxes":"","subTotal":"","totalAmount":"","enrolledTimeStamp":"","backprocessor":"","additionalInfo":null}
ERROR - 2026-03-03 01:17:04 --> Severity: error --> Exception: Call to private method FelInvoice_model::saveNotaCredito() from context 'Fel' /home/tecnomania/fel.tecnomaniagt.com/ventas/app/controllers/admin/Fel.php 584
ERROR - 2026-03-03 01:29:15 --> Could not find the language line "today"
ERROR - 2026-03-03 01:29:16 --> Could not find the language line "today"
ERROR - 2026-03-03 01:29:16 --> Could not find the language line "shop"
ERROR - 2026-03-03 01:29:16 --> Could not find the language line "toggle_alignment"
ERROR - 2026-03-03 01:29:16 --> Could not find the language line "lista de Facturas"
ERROR - 2026-03-03 01:29:16 --> Could not find the language line "Bonificaciones"
ERROR - 2026-03-03 01:29:16 --> Could not find the language line "Lista de Bonificaciones"
ERROR - 2026-03-03 01:29:16 --> Could not find the language line "Agregar Bonificación"
ERROR - 2026-03-03 01:29:16 --> Could not find the language line "Mermas"
ERROR - 2026-03-03 01:29:16 --> Could not find the language line "Lista de Merma"
ERROR - 2026-03-03 01:29:16 --> Could not find the language line "Agregar Merma"
ERROR - 2026-03-03 01:29:16 --> Could not find the language line "Certificadores"
ERROR - 2026-03-03 01:29:16 --> Could not find the language line "listado de Certifiacadores"
ERROR - 2026-03-03 01:29:16 --> Could not find the language line "Agregar Certitificador"
ERROR - 2026-03-03 01:29:16 --> Could not find the language line "Listado de Cliente Certificador"
ERROR - 2026-03-03 01:29:16 --> Could not find the language line "Agregar Cliente Certificador"
ERROR - 2026-03-03 01:29:16 --> Could not find the language line "Informe de Consolidado"
ERROR - 2026-03-03 01:29:16 --> Could not find the language line "Informe de mermas"
ERROR - 2026-03-03 01:29:16 --> Could not find the language line "Informe de bonificaciones"
ERROR - 2026-03-03 01:29:16 --> Could not find the language line "Informe de Rutas"
ERROR - 2026-03-03 01:29:16 --> Could not find the language line "ordered"
ERROR - 2026-03-03 01:29:16 --> Could not find the language line "due"
ERROR - 2026-03-03 01:29:16 --> Could not find the language line "transferring"
ERROR - 2026-03-03 01:29:16 --> Could not find the language line "download"
ERROR - 2026-03-03 01:29:16 --> Could not find the language line "required_invalid"
ERROR - 2026-03-03 01:29:17 --> Could not find the language line "today"
ERROR - 2026-03-03 01:29:18 --> Could not find the language line "today"
ERROR - 2026-03-03 01:29:28 --> Could not find the language line "today"
ERROR - 2026-03-03 01:29:28 --> ========== DEBUG NCRE ==========
ERROR - 2026-03-03 01:29:28 --> POST COMPLETO: {"invoice_id":"14","items":"[{\"id\":22,\"cantidad\":5,\"precio\":15},{\"id\":21,\"cantidad\":2,\"precio\":5}]","producto_cantidad":{"22":"5.0000","21":"2"},"descuento_ncre":"0","tipo_descuento":"porcentaje","nota_credito_razon":"se facturaron productos de mas"}
ERROR - 2026-03-03 01:29:28 --> invoice_id: 14
ERROR - 2026-03-03 01:29:28 --> items: [{"id":22,"cantidad":5,"precio":15},{"id":21,"cantidad":2,"precio":5}]
ERROR - 2026-03-03 01:29:28 --> razon: se facturaron productos de mas
ERROR - 2026-03-03 01:29:28 --> ITEMS DECODIFICADOS: [{"id":22,"cantidad":5,"precio":15},{"id":21,"cantidad":2,"precio":5}]
ERROR - 2026-03-03 01:29:28 --> INVOICE_ID RECIBIDO: 14
ERROR - 2026-03-03 01:29:28 --> FACTURA ORIGINAL: {"id":"14","ticket_id":"SALE2026\/02\/0026","branch_id":"1","branch_name":"MACRETO RETALHULEU","client_nit":"37748505","xml_base64":"[encoded data, 20920 characters]","html_base64":"","pdf_base64":"","qr_base64":null,"file_name_suggested":null,"url":null,"issued_at":"2026-02-25 17:21:00","created_at":"2026-02-25 17:24:06","company_id":"3","receptor_nombre":"GONZ\u00c1LEZ,MURILLO,,STEVE,ALEXANDER","receptor_direccion":"CIUDAD","receptor_municipio":"GUATEMALA","receptor_departamento":"GUATEMALA","receptor_pais":"GT","grand_total":"90.00","total_tax":"9.64","total_discount":"0.00","created_by_user_id":"3","serie":"929C10BA","numero":"686048580","qr_url":null,"uuid":"929C10BA-28E4-4544-AEEC-658B7866A1BD","tipo_dte":"FACT","anulada":"NO","fecha_anulacion":null,"motivo_anulacion":null,"acuse_anulacion":null,"anulada_por":null,"ncre":"NO"}
ERROR - 2026-03-03 01:29:28 --> ITEMS PROCESADOS: [{"product_id":22,"product_code":"","product_name":"","quantity":5,"unit_price":15,"taxable_amount":66.964286,"tax_amount":8.035714,"total":75,"discount":0},{"product_id":21,"product_code":"","product_name":"","quantity":2,"unit_price":5,"taxable_amount":8.928571,"tax_amount":1.071429,"total":10,"discount":0}]
ERROR - 2026-03-03 01:29:28 --> NOTA CREDITO DATA: {"reference_no":"NCRE-1772522968","invoice_id":"14","date":"2026-03-03 01:29:28","total":85,"total_tax":9.107143,"total_discount":0,"subTotal":75.892857,"totalAmount":85,"taxes":9.107143,"discounts":0,"note":"se facturaron productos de mas","branch_id":"1","branch_name":"MACRETO RETALHULEU","taxID":"37748505","receiverName":"GONZ\u00c1LEZ,MURILLO,,STEVE,ALEXANDER"}
ERROR - 2026-03-03 01:29:28 --> JSON DIGIFACT GENERADO: {"Version":"1.00","CountryCode":"GT","Header":{"DocType":"NCRE","IssuedDateTime":"2026-03-03T01:29:28-06:00","Currency":"GTQ"},"Seller":{"TaxID":"62847325","TaxIDAdditionalInfo":[{"Name":"AfiliacionIVA","Data":null,"Value":"GEN"}],"Name":"MACRETO, SOCIEDAD ANONIMA","BranchInfo":{"Code":"1","Name":"MACRETO, SOCIEDAD ANONIMA","AddressInfo":{"Address":"1 AVENIDA 4-01 ZONA 5","City":"01001","District":"RETALHULEU","State":"RETALHULEU","Country":"GT"}}},"Buyer":{"TaxID":"37748505","Name":"GONZ\u00c1LEZ,MURILLO,,STEVE,ALEXANDER","AddressInfo":{"Address":"CIUDAD","City":"GUATEMALA","District":"GUATEMALA","State":"GUATEMALA","Country":"GT"}},"Items":[{"Number":"1","Codes":null,"Type":"Bien","Description":"","Qty":"5.0000","UnitOfMeasure":"UND","Price":"15.00000","Discounts":null,"Taxes":{"Tax":[{"Code":"1","Description":"IVA","TaxableAmount":"66.964286","Amount":"8.03571"}]},"Totals":{"TotalItem":"75.0000"}},{"Number":"2","Codes":null,"Type":"Bien","Description":"","Qty":"2.0000","UnitOfMeasure":"UND","Price":"5.00000","Discounts":null,"Taxes":{"Tax":[{"Code":"1","Description":"IVA","TaxableAmount":"8.928571","Amount":"1.07143"}]},"Totals":{"TotalItem":"10.0000"}}],"Totals":{"TotalTaxes":{"TotalTax":[{"Description":"IVA","Amount":"9.10714"}]},"GrandTotal":{"InvoiceTotal":"85.0000"}},"AdditionalDocumentInfo":{"AdditionalInfo":[{"Code":"NCRE","Type":"COMPLEMENTO","AditionalInfo":[{"Name":"NumeroAutorizacionDocumentoOrigen","Data":null,"Value":"929C10BA-28E4-4544-AEEC-658B7866A1BD"},{"Name":"FechaEmisionDocumentoOrigen","Data":null,"Value":"2026-02-25"},{"Name":"MotivoAjuste","Data":null,"Value":"se facturaron productos de mas"},{"Name":"NumeroDocumentoOrigen","Data":null,"Value":"686048580"},{"Name":"SerieDocumentoOrigen","Data":null,"Value":"929C10BA"}]},{"Code":"CODIGO-SECUENCIAL-0001","Type":"ADENDA","AditionalData":{"Data":[{"Info":[{"Name":"OBSERVACIONES","Data":null,"Value":"-"},{"Name":"CANTIDAD_LETRAS","Data":null,"Value":"OCHENTA Y CINCO CON 00\/100"}]}]},"AditionalInfo":[{"Name":"VALIDAR_REFERENCIA_INTERNA","Data":null,"Value":"NO_VALIDAR"}]}]}}
ERROR - 2026-03-03 01:29:28 --> =========== JSON NCRE GENERADO ===========
ERROR - 2026-03-03 01:29:28 --> {"Version":"1.00","CountryCode":"GT","Header":{"DocType":"NCRE","IssuedDateTime":"2026-03-03T01:29:28-06:00","Currency":"GTQ"},"Seller":{"TaxID":"62847325","TaxIDAdditionalInfo":[{"Name":"AfiliacionIVA","Data":null,"Value":"GEN"}],"Name":"MACRETO, SOCIEDAD ANONIMA","BranchInfo":{"Code":"1","Name":"MACRETO, SOCIEDAD ANONIMA","AddressInfo":{"Address":"1 AVENIDA 4-01 ZONA 5","City":"01001","District":"RETALHULEU","State":"RETALHULEU","Country":"GT"}}},"Buyer":{"TaxID":"37748505","Name":"GONZ\u00c1LEZ,MURILLO,,STEVE,ALEXANDER","AddressInfo":{"Address":"CIUDAD","City":"GUATEMALA","District":"GUATEMALA","State":"GUATEMALA","Country":"GT"}},"Items":[{"Number":"1","Codes":null,"Type":"Bien","Description":"","Qty":"5.0000","UnitOfMeasure":"UND","Price":"15.00000","Discounts":null,"Taxes":{"Tax":[{"Code":"1","Description":"IVA","TaxableAmount":"66.964286","Amount":"8.03571"}]},"Totals":{"TotalItem":"75.0000"}},{"Number":"2","Codes":null,"Type":"Bien","Description":"","Qty":"2.0000","UnitOfMeasure":"UND","Price":"5.00000","Discounts":null,"Taxes":{"Tax":[{"Code":"1","Description":"IVA","TaxableAmount":"8.928571","Amount":"1.07143"}]},"Totals":{"TotalItem":"10.0000"}}],"Totals":{"TotalTaxes":{"TotalTax":[{"Description":"IVA","Amount":"9.10714"}]},"GrandTotal":{"InvoiceTotal":"85.0000"}},"AdditionalDocumentInfo":{"AdditionalInfo":[{"Code":"NCRE","Type":"COMPLEMENTO","AditionalInfo":[{"Name":"NumeroAutorizacionDocumentoOrigen","Data":null,"Value":"929C10BA-28E4-4544-AEEC-658B7866A1BD"},{"Name":"FechaEmisionDocumentoOrigen","Data":null,"Value":"2026-02-25"},{"Name":"MotivoAjuste","Data":null,"Value":"se facturaron productos de mas"},{"Name":"NumeroDocumentoOrigen","Data":null,"Value":"686048580"},{"Name":"SerieDocumentoOrigen","Data":null,"Value":"929C10BA"}]},{"Code":"CODIGO-SECUENCIAL-0001","Type":"ADENDA","AditionalData":{"Data":[{"Info":[{"Name":"OBSERVACIONES","Data":null,"Value":"-"},{"Name":"CANTIDAD_LETRAS","Data":null,"Value":"OCHENTA Y CINCO CON 00\/100"}]}]},"AditionalInfo":[{"Name":"VALIDAR_REFERENCIA_INTERNA","Data":null,"Value":"NO_VALIDAR"}]}]}}
ERROR - 2026-03-03 01:29:28 --> =========== FIN JSON NCRE ===========
ERROR - 2026-03-03 01:29:28 --> Could not find the language line "today"
ERROR - 2026-03-03 01:29:28 --> CONEXION CERTIFICADOR: stdClass Object
(
    [id] => 16
    [sucursal_id] => 1
    [certificador_id] => 7
    [nit] => 000062847325
    [usuario] => 62847325
    [contrasena] => Guate123*
    [activo] => 1
    [fecha_creacion] => 2025-09-04 22:46:43
    [token_nuc] => 
    [token_nuc_expira] => 
)

ERROR - 2026-03-03 01:29:28 --> JSON FEL (DEBUG): {
    "Version": "1.00",
    "CountryCode": "GT",
    "Header": {
        "DocType": "NCRE",
        "IssuedDateTime": "2026-03-03T01:29:28-06:00",
        "Currency": "GTQ"
    },
    "Seller": {
        "TaxID": "62847325",
        "TaxIDAdditionalInfo": [
            {
                "Name": "AfiliacionIVA",
                "Data": null,
                "Value": "GEN"
            }
        ],
        "Name": "MACRETO, SOCIEDAD ANONIMA",
        "BranchInfo": {
            "Code": "1",
            "Name": "MACRETO, SOCIEDAD ANONIMA",
            "AddressInfo": {
                "Address": "1 AVENIDA 4-01 ZONA 5",
                "City": "01001",
                "District": "RETALHULEU",
                "State": "RETALHULEU",
                "Country": "GT"
            }
        }
    },
    "Buyer": {
        "TaxID": "37748505",
        "Name": "GONZ\u00c1LEZ,MURILLO,,STEVE,ALEXANDER",
        "AddressInfo": {
            "Address": "CIUDAD",
            "City": "GUATEMALA",
            "District": "GUATEMALA",
            "State": "GUATEMALA",
            "Country": "GT"
        }
    },
    "Items": [
        {
            "Number": "1",
            "Codes": null,
            "Type": "Bien",
            "Description": "",
            "Qty": "5.0000",
            "UnitOfMeasure": "UND",
            "Price": "15.00000",
            "Discounts": null,
            "Taxes": {
                "Tax": [
                    {
                        "Code": "1",
                        "Description": "IVA",
                        "TaxableAmount": "66.964286",
                        "Amount": "8.03571"
                    }
                ]
            },
            "Totals": {
                "TotalItem": "75.0000"
            }
        },
        {
            "Number": "2",
            "Codes": null,
            "Type": "Bien",
            "Description": "",
            "Qty": "2.0000",
            "UnitOfMeasure": "UND",
            "Price": "5.00000",
            "Discounts": null,
            "Taxes": {
                "Tax": [
                    {
                        "Code": "1",
                        "Description": "IVA",
                        "TaxableAmount": "8.928571",
                        "Amount": "1.07143"
                    }
                ]
            },
            "Totals": {
                "TotalItem": "10.0000"
            }
        }
    ],
    "Totals": {
        "TotalTaxes": {
            "TotalTax": [
                {
                    "Description": "IVA",
                    "Amount": "9.10714"
                }
            ]
        },
        "GrandTotal": {
            "InvoiceTotal": "85.0000"
        }
    },
    "AdditionalDocumentInfo": {
        "AdditionalInfo": [
            {
                "Code": "NCRE",
                "Type": "COMPLEMENTO",
                "AditionalInfo": [
                    {
                        "Name": "NumeroAutorizacionDocumentoOrigen",
                        "Data": null,
                        "Value": "929C10BA-28E4-4544-AEEC-658B7866A1BD"
                    },
                    {
                        "Name": "FechaEmisionDocumentoOrigen",
                        "Data": null,
                        "Value": "2026-02-25"
                    },
                    {
                        "Name": "MotivoAjuste",
                        "Data": null,
                        "Value": "se facturaron productos de mas"
                    },
                    {
                        "Name": "NumeroDocumentoOrigen",
                        "Data": null,
                        "Value": "686048580"
                    },
                    {
                        "Name": "SerieDocumentoOrigen",
                        "Data": null,
                        "Value": "929C10BA"
                    }
                ]
            },
            {
                "Code": "CODIGO-SECUENCIAL-0001",
                "Type": "ADENDA",
                "AditionalData": {
                    "Data": [
                        {
                            "Info": [
                                {
                                    "Name": "OBSERVACIONES",
                                    "Data": null,
                                    "Value": "-"
                                },
                                {
                                    "Name": "CANTIDAD_LETRAS",
                                    "Data": null,
                                    "Value": "OCHENTA Y CINCO CON 00\/100"
                                }
                            ]
                        }
                    ]
                },
                "AditionalInfo": [
                    {
                        "Name": "VALIDAR_REFERENCIA_INTERNA",
                        "Data": null,
                        "Value": "NO_VALIDAR"
                    }
                ]
            }
        ]
    }
}
ERROR - 2026-03-03 01:29:28 --> ======= DATOS ENVIO NOTA DE CREDITO FEL =======
ERROR - 2026-03-03 01:29:28 --> TOKEN FEL: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVc2VyIjoiR1QuMDAwMDYyODQ3MzI1LjYyODQ3MzI1IiwiQ291bnRyeSI6IkdUIiwiRW52IjoiMSIsIm5iZiI6MTc3MTk1NDY3NSwiZXhwIjoxNzc0NTQ2Njc1LCJpYXQiOjE3NzE5NTQ2NzUsImlzcyI6Imh0dHBzOi8vd3d3LmRpZ2lmYWN0LmNvbS5ndCIsImF1ZCI6Imh0dHBzOi8vYXBpbnVjLmRpZ2lmYWN0LmNvbS5kby9kby5jb20uYXBpbnVjIn0.cOAi0YJRGOJJ35RNWEgNDVfAet7uCTW50YoLTF3gaeg
ERROR - 2026-03-03 01:29:28 --> TAXID FEL: 000062847325
ERROR - 2026-03-03 01:29:28 --> USERNAME FEL: 62847325
ERROR - 2026-03-03 01:29:28 --> URL FINAL FEL (NOTA CREDITO): https://nucgt.digifact.com/gt.com.apinuc/api/v2/transform/nuc_json?TAXID=000062847325&USERNAME=62847325&FORMAT=XML
ERROR - 2026-03-03 01:29:28 --> BODY ENVIADO FEL (NOTA CREDITO): {"Version":"1.00","CountryCode":"GT","Header":{"DocType":"NCRE","IssuedDateTime":"2026-03-03T01:29:28-06:00","Currency":"GTQ"},"Seller":{"TaxID":"62847325","TaxIDAdditionalInfo":[{"Name":"AfiliacionIVA","Data":null,"Value":"GEN"}],"Name":"MACRETO, SOCIEDAD ANONIMA","BranchInfo":{"Code":"1","Name":"MACRETO, SOCIEDAD ANONIMA","AddressInfo":{"Address":"1 AVENIDA 4-01 ZONA 5","City":"01001","District":"RETALHULEU","State":"RETALHULEU","Country":"GT"}}},"Buyer":{"TaxID":"37748505","Name":"GONZÁLEZ,MURILLO,,STEVE,ALEXANDER","AddressInfo":{"Address":"CIUDAD","City":"GUATEMALA","District":"GUATEMALA","State":"GUATEMALA","Country":"GT"}},"Items":[{"Number":"1","Codes":null,"Type":"Bien","Description":"","Qty":"5.0000","UnitOfMeasure":"UND","Price":"15.00000","Discounts":null,"Taxes":{"Tax":[{"Code":"1","Description":"IVA","TaxableAmount":"66.964286","Amount":"8.03571"}]},"Totals":{"TotalItem":"75.0000"}},{"Number":"2","Codes":null,"Type":"Bien","Description":"","Qty":"2.0000","UnitOfMeasure":"UND","Price":"5.00000","Discounts":null,"Taxes":{"Tax":[{"Code":"1","Description":"IVA","TaxableAmount":"8.928571","Amount":"1.07143"}]},"Totals":{"TotalItem":"10.0000"}}],"Totals":{"TotalTaxes":{"TotalTax":[{"Description":"IVA","Amount":"9.10714"}]},"GrandTotal":{"InvoiceTotal":"85.0000"}},"AdditionalDocumentInfo":{"AdditionalInfo":[{"Code":"NCRE","Type":"COMPLEMENTO","AditionalInfo":[{"Name":"NumeroAutorizacionDocumentoOrigen","Data":null,"Value":"929C10BA-28E4-4544-AEEC-658B7866A1BD"},{"Name":"FechaEmisionDocumentoOrigen","Data":null,"Value":"2026-02-25"},{"Name":"MotivoAjuste","Data":null,"Value":"se facturaron productos de mas"},{"Name":"NumeroDocumentoOrigen","Data":null,"Value":"686048580"},{"Name":"SerieDocumentoOrigen","Data":null,"Value":"929C10BA"}]},{"Code":"CODIGO-SECUENCIAL-0001","Type":"ADENDA","AditionalData":{"Data":[{"Info":[{"Name":"OBSERVACIONES","Data":null,"Value":"-"},{"Name":"CANTIDAD_LETRAS","Data":null,"Value":"OCHENTA Y CINCO CON 00/100"}]}]},"AditionalInfo":[{"Name":"VALIDAR_REFERENCIA_INTERNA","Data":null,"Value":"NO_VALIDAR"}]}]}}
ERROR - 2026-03-03 01:29:28 --> JSON FEL ENVIADO (FORMATEADO - NOTA CREDITO): {
    "Version": "1.00",
    "CountryCode": "GT",
    "Header": {
        "DocType": "NCRE",
        "IssuedDateTime": "2026-03-03T01:29:28-06:00",
        "Currency": "GTQ"
    },
    "Seller": {
        "TaxID": "62847325",
        "TaxIDAdditionalInfo": [
            {
                "Name": "AfiliacionIVA",
                "Data": null,
                "Value": "GEN"
            }
        ],
        "Name": "MACRETO, SOCIEDAD ANONIMA",
        "BranchInfo": {
            "Code": "1",
            "Name": "MACRETO, SOCIEDAD ANONIMA",
            "AddressInfo": {
                "Address": "1 AVENIDA 4-01 ZONA 5",
                "City": "01001",
                "District": "RETALHULEU",
                "State": "RETALHULEU",
                "Country": "GT"
            }
        }
    },
    "Buyer": {
        "TaxID": "37748505",
        "Name": "GONZ\u00c1LEZ,MURILLO,,STEVE,ALEXANDER",
        "AddressInfo": {
            "Address": "CIUDAD",
            "City": "GUATEMALA",
            "District": "GUATEMALA",
            "State": "GUATEMALA",
            "Country": "GT"
        }
    },
    "Items": [
        {
            "Number": "1",
            "Codes": null,
            "Type": "Bien",
            "Description": "",
            "Qty": "5.0000",
            "UnitOfMeasure": "UND",
            "Price": "15.00000",
            "Discounts": null,
            "Taxes": {
                "Tax": [
                    {
                        "Code": "1",
                        "Description": "IVA",
                        "TaxableAmount": "66.964286",
                        "Amount": "8.03571"
                    }
                ]
            },
            "Totals": {
                "TotalItem": "75.0000"
            }
        },
        {
            "Number": "2",
            "Codes": null,
            "Type": "Bien",
            "Description": "",
            "Qty": "2.0000",
            "UnitOfMeasure": "UND",
            "Price": "5.00000",
            "Discounts": null,
            "Taxes": {
                "Tax": [
                    {
                        "Code": "1",
                        "Description": "IVA",
                        "TaxableAmount": "8.928571",
                        "Amount": "1.07143"
                    }
                ]
            },
            "Totals": {
                "TotalItem": "10.0000"
            }
        }
    ],
    "Totals": {
        "TotalTaxes": {
            "TotalTax": [
                {
                    "Description": "IVA",
                    "Amount": "9.10714"
                }
            ]
        },
        "GrandTotal": {
            "InvoiceTotal": "85.0000"
        }
    },
    "AdditionalDocumentInfo": {
        "AdditionalInfo": [
            {
                "Code": "NCRE",
                "Type": "COMPLEMENTO",
                "AditionalInfo": [
                    {
                        "Name": "NumeroAutorizacionDocumentoOrigen",
                        "Data": null,
                        "Value": "929C10BA-28E4-4544-AEEC-658B7866A1BD"
                    },
                    {
                        "Name": "FechaEmisionDocumentoOrigen",
                        "Data": null,
                        "Value": "2026-02-25"
                    },
                    {
                        "Name": "MotivoAjuste",
                        "Data": null,
                        "Value": "se facturaron productos de mas"
                    },
                    {
                        "Name": "NumeroDocumentoOrigen",
                        "Data": null,
                        "Value": "686048580"
                    },
                    {
                        "Name": "SerieDocumentoOrigen",
                        "Data": null,
                        "Value": "929C10BA"
                    }
                ]
            },
            {
                "Code": "CODIGO-SECUENCIAL-0001",
                "Type": "ADENDA",
                "AditionalData": {
                    "Data": [
                        {
                            "Info": [
                                {
                                    "Name": "OBSERVACIONES",
                                    "Data": null,
                                    "Value": "-"
                                },
                                {
                                    "Name": "CANTIDAD_LETRAS",
                                    "Data": null,
                                    "Value": "OCHENTA Y CINCO CON 00\/100"
                                }
                            ]
                        }
                    ]
                },
                "AditionalInfo": [
                    {
                        "Name": "VALIDAR_REFERENCIA_INTERNA",
                        "Data": null,
                        "Value": "NO_VALIDAR"
                    }
                ]
            }
        ]
    }
}
ERROR - 2026-03-03 01:29:29 --> HEADERS REALES ENVIADOS POR CURL (NOTA CREDITO): 
ERROR - 2026-03-03 01:29:29 --> HTTP CODE FEL (NOTA CREDITO): 200
ERROR - 2026-03-03 01:29:29 --> FEL RESPONSE (NOTA CREDITO): {"code":0,"message":"Ocurrio un error al convertir el NUC al xml de GT","description":"Error al transformar, No se encuentra el elemento Description en Item. [Ref D05]","responseData1":"","responseData2":"","responseData3":"","responseData4":"","authNumber":"","url":"","infoDetails":[],"suggestedFileName":"","suggestedFileName2":"","batch":"","serial":"","issuedTimeStamp":"","taxID":"","name":"","branchCode":"","branchName":"","receiverTaxID":"","receiverName":"","discounts":"","taxes":"","subTotal":"","totalAmount":"","enrolledTimeStamp":"","backprocessor":"","additionalInfo":null}
ERROR - 2026-03-03 01:29:29 --> Severity: error --> Exception: Call to private method FelInvoice_model::saveNotaCredito() from context 'Fel' /home/tecnomania/fel.tecnomaniagt.com/ventas/app/controllers/admin/Fel.php 584
ERROR - 2026-03-03 14:14:00 --> Could not find the language line "type_email_to_reset"
ERROR - 2026-03-03 14:14:39 --> Could not find the language line "today"
ERROR - 2026-03-03 14:14:39 --> Could not find the language line "shop"
ERROR - 2026-03-03 14:14:39 --> Could not find the language line "toggle_alignment"
ERROR - 2026-03-03 14:14:39 --> Could not find the language line "today_profit"
ERROR - 2026-03-03 14:14:39 --> Could not find the language line "lista de Facturas"
ERROR - 2026-03-03 14:14:39 --> Could not find the language line "Bonificaciones"
ERROR - 2026-03-03 14:14:39 --> Could not find the language line "Lista de Bonificaciones"
ERROR - 2026-03-03 14:14:39 --> Could not find the language line "Agregar Bonificación"
ERROR - 2026-03-03 14:14:39 --> Could not find the language line "Mermas"
ERROR - 2026-03-03 14:14:39 --> Could not find the language line "Lista de Merma"
ERROR - 2026-03-03 14:14:39 --> Could not find the language line "Agregar Merma"
ERROR - 2026-03-03 14:14:39 --> Could not find the language line "Certificadores"
ERROR - 2026-03-03 14:14:39 --> Could not find the language line "listado de Certifiacadores"
ERROR - 2026-03-03 14:14:39 --> Could not find the language line "Agregar Certitificador"
ERROR - 2026-03-03 14:14:39 --> Could not find the language line "Listado de Cliente Certificador"
ERROR - 2026-03-03 14:14:39 --> Could not find the language line "Agregar Cliente Certificador"
ERROR - 2026-03-03 14:14:39 --> Could not find the language line "promos"
ERROR - 2026-03-03 14:14:39 --> Could not find the language line "list_printers"
ERROR - 2026-03-03 14:14:39 --> Could not find the language line "add_printer"
ERROR - 2026-03-03 14:14:39 --> Could not find the language line "expense_categories"
ERROR - 2026-03-03 14:14:39 --> Could not find the language line "site_logs"
ERROR - 2026-03-03 14:14:39 --> Could not find the language line "backups"
ERROR - 2026-03-03 14:14:39 --> Could not find the language line "Informe de Consolidado"
ERROR - 2026-03-03 14:14:39 --> Could not find the language line "Informe de mermas"
ERROR - 2026-03-03 14:14:39 --> Could not find the language line "Informe de bonificaciones"
ERROR - 2026-03-03 14:14:39 --> Could not find the language line "Informe de Rutas"
ERROR - 2026-03-03 14:14:39 --> Could not find the language line "front_end"
ERROR - 2026-03-03 14:14:39 --> Could not find the language line "shop_settings"
ERROR - 2026-03-03 14:14:39 --> Could not find the language line "slider_settings"
ERROR - 2026-03-03 14:14:39 --> Could not find the language line "list_pages"
ERROR - 2026-03-03 14:14:39 --> Could not find the language line "add_page"
ERROR - 2026-03-03 14:14:39 --> Could not find the language line "sms_settings"
ERROR - 2026-03-03 14:14:39 --> Could not find the language line "send_sms"
ERROR - 2026-03-03 14:14:39 --> Could not find the language line "sms_log"
ERROR - 2026-03-03 14:14:39 --> Could not find the language line "due"
ERROR - 2026-03-03 14:14:39 --> Could not find the language line "due"
ERROR - 2026-03-03 14:14:39 --> Could not find the language line "due"
ERROR - 2026-03-03 14:14:39 --> Could not find the language line "ordered"
ERROR - 2026-03-03 14:14:39 --> Could not find the language line "due"
ERROR - 2026-03-03 14:14:39 --> Could not find the language line "transferring"
ERROR - 2026-03-03 14:14:39 --> Could not find the language line "download"
ERROR - 2026-03-03 14:14:39 --> Could not find the language line "required_invalid"
