Skip to content

Commit

Permalink
🎨 Ajustado campos trailer
Browse files Browse the repository at this point in the history
  • Loading branch information
wallissonmarinho committed Mar 18, 2021
1 parent 3203eb2 commit 0620160
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
28 changes: 14 additions & 14 deletions layout/mte/afdv3.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)'
Expand Down Expand Up @@ -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)'
Expand Down Expand Up @@ -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]
Expand Down Expand Up @@ -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)'
Expand Down
12 changes: 6 additions & 6 deletions test/remessa_afd_v3_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 0620160

Please sign in to comment.