From 06201602d2084ae28425ee09de0ff540ef950644 Mon Sep 17 00:00:00 2001 From: Wallisson Marinho Date: Thu, 18 Mar 2021 11:33:08 -0300 Subject: [PATCH] :art: Ajustado campos trailer --- layout/mte/afdv3.go | 28 ++++++++++++++-------------- test/remessa_afd_v3_test.go | 12 ++++++------ 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/layout/mte/afdv3.go b/layout/mte/afdv3.go index 3d7a6c9..8d3556c 100644 --- a/layout/mte/afdv3.go +++ b/layout/mte/afdv3.go @@ -37,7 +37,7 @@ remessa: picture: 'X(14)' cno_caepf_empregador: pos: [26,39] - picture: '9(14)' + picture: 'X(14)' razao_social_empregador: pos: [40,189] picture: 'X(150)' @@ -76,22 +76,22 @@ remessa: default: 999999999 quantidade_registro_tipo_2: pos: [10,18] - picture: 'X(9)' + picture: '9(9)' quantidade_registro_tipo_3: pos: [19,27] - picture: 'X(9)' + picture: '9(9)' quantidade_registro_tipo_4: pos: [28,36] - picture: 'X(9)' + picture: '9(9)' quantidade_registro_tipo_5: pos: [37,45] - picture: 'X(9)' + picture: '9(9)' quantidade_registro_tipo_6: pos: [46,54] - picture: 'X(9)' + picture: '9(9)' quantidade_registro_tipo_7: pos: [55,63] - picture: 'X(9)' + picture: '9(9)' tipo_registro: pos: [64,64] picture: '9(1)' @@ -304,7 +304,7 @@ retorno: picture: 'X(150)' inpi_empregador: pos: [190,206] - picture: 'X(17)' + picture: '9(17)' default: 99999999999999999 data_inicio: pos: [207,214] @@ -337,22 +337,22 @@ retorno: default: 999999999 quantidade_registro_tipo_2: pos: [10,18] - picture: 'X(9)' + picture: '9(9)' quantidade_registro_tipo_3: pos: [19,27] - picture: 'X(9)' + picture: '9(9)' quantidade_registro_tipo_4: pos: [28,36] - picture: 'X(9)' + picture: '9(9)' quantidade_registro_tipo_5: pos: [37,45] - picture: 'X(9)' + picture: '9(9)' quantidade_registro_tipo_6: pos: [46,54] - picture: 'X(9)' + picture: '9(9)' quantidade_registro_tipo_7: pos: [55,63] - picture: 'X(9)' + picture: '9(9)' tipo_registro: pos: [64,64] picture: '9(1)' diff --git a/test/remessa_afd_v3_test.go b/test/remessa_afd_v3_test.go index 23bfc67..3c700e5 100644 --- a/test/remessa_afd_v3_test.go +++ b/test/remessa_afd_v3_test.go @@ -86,12 +86,12 @@ func TestRemessaAFDV3(t *testing.T) { lote.InserirDetalhe(detalhe) } - remessa.Trailer["quantidade_registro_tipo_2"] = "1" - remessa.Trailer["quantidade_registro_tipo_3"] = "1" - remessa.Trailer["quantidade_registro_tipo_4"] = "1" - remessa.Trailer["quantidade_registro_tipo_5"] = "1" - remessa.Trailer["quantidade_registro_tipo_6"] = "1" - remessa.Trailer["quantidade_registro_tipo_7"] = "1" + remessa.Trailer["quantidade_registro_tipo_2"] = 1 + remessa.Trailer["quantidade_registro_tipo_3"] = 1 + remessa.Trailer["quantidade_registro_tipo_4"] = 1 + remessa.Trailer["quantidade_registro_tipo_5"] = 1 + remessa.Trailer["quantidade_registro_tipo_6"] = 1 + remessa.Trailer["quantidade_registro_tipo_7"] = 1 remessaFile := file.NewRemessaFile(remessa, "afdv3.rem") arquivo := remessaFile.Write()