Diseño ficheros factures Nombres ficheros Estructura ficheros

Anuncio
Diseño ficheros factures
Nombres ficheros
Pdf :
‘C’+ codigo clientes (8)+’F’+ numero factura (8)+’D’+ Data factura (YYYYMMDD) +’E’+ Cliente envió (8).PDF
Exemplo :C00126895F10018905D20100426E00126895.PDF
Fichero:
‘C’+ codigo clientes (8)+’F’+ numero factura (8)+’D’+ Data factura (YYYYMMDD) +’E’+ Cliente envió (8).TXT
Exemplo:C00128940F10018905D20100426E00126895.TXT
Estructura ficheros :
Primera línea :
‘GS REGISTRO DE CONTROL’
Siguientes líneas :
Registro cabecera.
Descripción
Tipo de registro
Numero de factura
Data factura
Código centro
Importe bruto
Importe descuento
Base IVA 1
Porcentaje IVA 1
Importe IVA 1
Base IVA 2
Porcentaje IVA 2
Importe IVA 2
Base IVA 3
Porcentaje IVA 3
Importe IVA 3
Importe Total factura
Data 1er vencimiento
Importe 1er vencimiento
Data 2º vencimiento
Importe 2º vencimiento
Data 3er vencimiento
Importe 3er vencimiento
Observaciones
Long
1
8
8
3
13
13
13
5
13
13
5
13
13
5
13
13
8
13
8
13
8
13
60
Tipo
A
A
N
A
N
N
N
N
N
N
N
N
N
N
N
N
N
N
N
N
N
N
A
Valor
C
AAAAMMDD
2 decimales
2 decimales
2 decimales
2 decimales
2 decimales
2 decimales
2 decimales
2 decimales
2 decimales
2 decimales
2 decimales
2 decimales
AAAAMMDD
2 decimales
AAAAMMDD
2 decimales
AAAAMMDD
2 decimales
Desde
1
2
10
18
21
34
47
60
65
78
91
96
109
122
127
140
153
161
174
182
195
203
216
Hasta
1
9
17
20
33
46
59
64
77
90
95
108
121
126
139
152
160
173
181
194
202
215
275
Registro del detalle .
Tipo de registre
1
A
D
1
1
Data de albaran
8
N
AAAAMMDD
2
9
Número albaran
8
A
10
17
Importe bruto
13
N
2 decimales
18
30
Importe descuento
13
N
2 decimales
31
43
Importe neto
13
N
2 decimales
44
56
Registro del articulo .
Descripción
Tipo de registro
Número albaran
Data de albaran
Código articulo
Descripción articulo
Unidades
Precio
Importe bruto
Importe descuento
Importe neto
Long
1
8
8
15
40
7
9
13
13
13
Tipo
A
A
N
A
A
N
N
N
N
N
Valor
A
AAAAMMDD
4 decimales
2 decimales
2 decimales
2 decimales
Desde
1
2
10
18
33
73
80
89
102
115
Hasta
1
9
17
32
72
79
88
101
114
127
DESDE
HASTA
1
1
2
101
Registro de imagen.
Tipo registro
Imagen PDF (sin ruta)
LON
TIPO
1
A
100
A
VALOR
I
NOTA: Les campos numéricos (TIPO N) tienen que estar sin Comas ,Decimal y amb zeros
inicials (si un campo es 0 te que tenir totes les posicions a zero)
Eje:
Lin1:GS REGISTRO DE CONTROL
Lin2:C1001890520100426001000000002326800000000000000000000019080004000000000000763000000000000001600000000
0000000000000000418800700000000000029300000000243242010072000000000243240000000000000000000000000000000000
00000000000000000000000000000
Lin3:D2010042600774586000000002326800000000000000000000023268
Lin5:A
7745862010040112940
ESPARRAGOS BACON 6/540g GYM
0000007000069800000000000069800000000000000000000000698
Lin6:A
7745862010040112940
ESPARRAGOS BACON 6/540g GYM
0000035000069800000000000349000000000000000000000003490
Lin7:A
7745862010040114010
GUISANTE VAINA 4/2.5k BON
0000028000031800000000000318000000000000000000000003180
Lin8:A
7745862010040119203
0000168000026500000000001590000000000000000000000015900
Lin9:IC00128940F10018905D20100426E00126895.PDF
SALT.CAMPEST.4/2.5 MINUTEBON
Descargar