From 01d4fdbdcff810f9150dd300fd0ffee7cf573f32 Mon Sep 17 00:00:00 2001 From: Enrique Barcelli Date: Sun, 5 Dec 2021 11:32:06 +0800 Subject: [PATCH] fix empty arrays of json being created as empty text --- .../openbravo/kikobar/intfactsunat/query-facturador.sql | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/org/openbravo/kikobar/intfactsunat/query-facturador.sql b/src/org/openbravo/kikobar/intfactsunat/query-facturador.sql index b02564f..cb9ac01 100644 --- a/src/org/openbravo/kikobar/intfactsunat/query-facturador.sql +++ b/src/org/openbravo/kikobar/intfactsunat/query-facturador.sql @@ -65,7 +65,7 @@ select 'cabecera', json_agg(DISTINCT jsonb_build_object( 'ivoiceid',c_invoice_id, - 'tipoOperacion','0101', + 'tipOperacion','0101', 'fecEmision',dateinvoiced::date, 'horEmision',dateinvoiced::time, 'codLocalEmisor','0001', @@ -150,7 +150,7 @@ select ) || jsonb_build_object( - 'adicionalDetalle','' + 'adicionalDetalle','[]'::json ) || jsonb_build_object( @@ -175,11 +175,11 @@ select ) || jsonb_build_object( - 'relacionados','' + 'relacionados','[]'::json ) || jsonb_build_object( - 'variablesGlobales','' + 'variablesGlobales','[]'::json ) || jsonb_build_object(