USE %RIT
JOIN 6 INTO TIPOA=S0[1,1] CODANAGR=S0[2,6]
JOIN 8 TO 6 INTO CODANAGR=CODANAGR
JOIN 7 TO 6 INTO CODANAGR=CODANAGR
JOIN 13 TO 8 ALIAS 113 INTO COM=COMNASC
JOIN 13 TO 6 ALIAS 213 INTO COM=COMRF(COMRES)
JOIN %BAN ALIAS 14 INTO CODTAB==S7
JOIN %BAN ALIAS 24 INTO CODTAB==S7+S8
JOIN 13 TO 24@ ALIAS 313 INTO COM==S5
JOIN 13 TO 7 ALIAS 413 INTO COM=COMCOST

END
DESCRIPTION
BEGIN
  %RIT->* " "
  6->* "Anagrafica persone fisiche e giuridiche"
  8->* "Anagrafica persone fisiche"
  113@->* "Comuni"
  213@->* "Comuni"
  14@->* "BAN"
  24@->* "BAN"
  313@->* "Comuni"
END

GENERAL
BEGIN
  OFFSET 0 0
  FONT "Roman 17cpi"
  SIZE 12
  CARTATTERE "X"
  INIZIALE 3 3
END

SECTION BODY ODD 73

STRINGA 1
BEGIN
 KEY "Azienda di credito"
 PROMPT 74 6 ""
 FIELD 14@->S0
END

STRINGA 2
BEGIN
 KEY "Dipendenza"
 PROMPT 74 8 ""
 FIELD 24@->S0
END

STRINGA 3
BEGIN
 KEY "PROVINCIA Dipendenza"
 PROMPT 129 8 ""
 FIELD 313@->PROVCOM
END

STRINGA 4
BEGIN
 KEY "COD. CONCESS."
 PROMPT 16 11 ""
 FIELD S9
END

STRINGA 5
BEGIN
 KEY "CODICE FISCALE"
 PROMPT 26 11 ""
 FIELD 6->COFI
END

STRINGA 6
BEGIN
 KEY "COGNOME, DENOMINAZIONE O RAGIONE SOCIALE"
 PROMPT 4 15 ""
 FIELD 6->RAGSOC[1,30]
END

STRINGA 7
BEGIN
 KEY "NOME"
 PROMPT 95 15 ""
 FIELD 6->RAGSOC[31,-1]
END

LISTA 8
BEGIN
 KEY "Tipo anagrafica"
 FIELD 6->TIPOA
 ITEM "F| " MESSAGE ENABLE,1@|DISABLE,2@
 ITEM "G| " MESSAGE ENABLE,2@|DISABLE,1@
END

GRUPPO 9
BEGIN
 KEY "Persone fisiche"
 PROMPT 0 0 ""
 GROUP  1
END

DATA 10
BEGIN
 KEY "DATA DI NASCITA"
 PROMPT 4 17 ""
 GROUP  1
 PICTURE "# #^   # #^ ^ # # #"
 FIELD 8->DATANASC
 FORMAT "1444-"
END

DATA 
BEGIN
 KEY "DATA DI COSTITUZIONE"
 PROMPT 4 17 ""
 GROUP  2
 PICTURE "# #^   # #^ ^ # # #"
 FIELD 7->DATACOST
 FORMAT "1444-"
END

STRINGA 11
BEGIN
 KEY "SESSO (M o F)"
 PROMPT 34 17 ""
 GROUP  1
 FIELD 8->SESSO
END

STRINGA 12
BEGIN
 KEY "COMUNE (o Stato estero) DI NASCITA"
 PROMPT 42 17 ""
 GROUP  1
 FIELD 113@->DENCOM
END

STRINGA 12
BEGIN
 KEY "COMUNE (o Stato estero) DI COSTITUZIONE"
 PROMPT 42 17 ""
 GROUP  2
 FIELD 413@->DENCOM
END

STRINGA 13
BEGIN
 KEY "PROV. DI NASCITA (sigla)"
 PROMPT 120 17 ""
 GROUP  1
 FIELD 113@->PROVCOM
END

STRINGA 
BEGIN
 KEY "PROV. DI COSTITUZIONE (sigla)"
 PROMPT 120 17 ""
 GROUP  2
 FIELD 413@->PROVCOM
END

STRINGA 14
BEGIN
 KEY "DOMICILIO FISCALE: COMUNE"
 PROMPT 14 19 ""
 FIELD 213@->DENCOM
END

STRINGA 15
BEGIN
 KEY "DOMICILIO FISCALE: PROV. (sigla)"
 PROMPT 64 19 ""
 FIELD 213@->PROVCOM
END

STRINGA 16
BEGIN
 KEY "DOMICILIO FISCALE: VIA"
 PROMPT 72 19 ""
 FIELD 6->INDRF
 FIELD 6->INDRES
END

STRINGA 17
BEGIN
 KEY "DOMICILIO FISCALE: NUMERO CIVICO"
 PROMPT 124 19 ""
 FIELD 6->CIVRF
 FIELD 6->CIVRES
END

NUMERO 18
BEGIN
 KEY "AL PERIODO DI RIFERIMENTO (mese o anno)"
 PROMPT 53 26 ""
 FIELD I0
END

NUMERO 19
BEGIN
 KEY "AL PERIODO DI RIFERIMENTO (anno)"
 PROMPT 60 26 ""
 FIELD I1
END

DATA 20
BEGIN
 KEY "OVVERO ALTRA DATA"
 PROMPT 113 26 ""
 PICTURE "# # ^ # #^  ^^# #"
 FIELD D1
 FORMAT "1444-"
END

NUMERO 21
BEGIN
 KEY "TRIBUTO 1001: IMPORTO"
 PROMPT 44 31 ""
 MESSAGE COPY,10@
 PICTURE "###.###.###^^^"
 FIELD R0
END

NUMERO 22
BEGIN
 KEY "TRIBUTO 1001: INTERESSI"
 PROMPT 75 31 ""
 MESSAGE ADD,10@
 PICTURE "###.###.###^^^"
 FIELD R7
END

NUMERO 23
BEGIN
 KEY "TRIBUTO 1001: TOTALE"
 PROMPT 112 31 ""
 GROUP  10
 MESSAGE COPY,9@
 PICTURE "###.###.###^^^"
END

NUMERO 24
BEGIN
 KEY "TRIBUTO 1040: IMPORTO"
 PROMPT 44 33 ""
 MESSAGE COPY,11@
 PICTURE "###.###.###^^^"
 FIELD R1
END

NUMERO 25
BEGIN
 KEY "TRIBUTO 1040: INTERESSI"
 PROMPT 75 33 ""
 MESSAGE ADD,11@
 PICTURE "###.###.###^^^"
 FIELD R7
END

NUMERO 26
BEGIN
 KEY "TRIBUTO 1040: TOTALE"
 PROMPT 112 33 ""
 GROUP  11
 MESSAGE ADD,9@
 PICTURE "###.###.###^^^"
END

STRINGA 27
BEGIN
 KEY "TRIBUTO 3: CODICE"
 PROMPT 7 35 ""
 FIELD S2
END

NUMERO 28
BEGIN
 KEY "TRIBUTO 3: IMPORTO"
 PROMPT 44 35 ""
 MESSAGE COPY,12@
 PICTURE "###.###.###^^^"
 FIELD R2
END

NUMERO 29
BEGIN
 KEY "TRIBUTO 3: INTERESSI"
 PROMPT 75 35 ""
 MESSAGE ADD,12@
 PICTURE "###.###.###^^^"
 FIELD R8
END

NUMERO 30
BEGIN
 KEY "TRIBUTO 3: TOTALE"
 PROMPT 112 35 ""
 GROUP  12
 MESSAGE ADD,9@
 PICTURE "###.###.###^^^"
END

STRINGA 31
BEGIN
 KEY "TRIBUTO 4: CODICE"
 PROMPT 7 37 ""
 FIELD S3
END

NUMERO 32
BEGIN
 KEY "TRIBUTO 4: IMPORTO"
 PROMPT 44 37 ""
 MESSAGE COPY,13@
 PICTURE "###.###.###^^^"
 FIELD R3
END

NUMERO 33
BEGIN
 KEY "TRIBUTO 4: INTERESSI"
 PROMPT 75 37 ""
 MESSAGE ADD,13@
 PICTURE "###.###.###^^^"
 FIELD R9
END

NUMERO 34
BEGIN
 KEY "TRIBUTO 4: TOTALE"
 PROMPT 112 37 ""
 GROUP  13
 MESSAGE ADD,9@
 PICTURE "###.###.###^^^"
END

STRINGA 35
BEGIN
 KEY "TRIBUTO 5: CODICE"
 PROMPT 7 39 ""
 FIELD S4
END

NUMERO 36
BEGIN
 KEY "TRIBUTO 5: IMPORTO"
 PROMPT 44 39 ""
 MESSAGE COPY,14@
 PICTURE "###.###.###^^^"
 FIELD R4
END

NUMERO 37
BEGIN
 KEY "TRIBUTO 5: INTERESSI"
 PROMPT 75 39 ""
 MESSAGE ADD,14@
 PICTURE "###.###.###^^^"
 FIELD R10
END

NUMERO 38
BEGIN
 KEY "TRIBUTO 5: TOTALE"
 PROMPT 112 39 ""
 GROUP  14
 MESSAGE ADD,9@
 PICTURE "###.###.###^^^"
END

STRINGA 39
BEGIN
 KEY "TRIBUTO 6: CODICE"
 PROMPT 7 41 ""
 FIELD S5
END

NUMERO 40
BEGIN
 KEY "TRIBUTO 6: IMPORTO"
 PROMPT 44 41 ""
 MESSAGE COPY,15@
 PICTURE "###.###.###^^^"
 FIELD R5
END

NUMERO 41
BEGIN
 KEY "TRIBUTO 6: INTERESSI"
 PROMPT 75 41 ""
 MESSAGE ADD,15@
 PICTURE "###.###.###^^^"
 FIELD R11
END

NUMERO 42
BEGIN
 KEY "TRIBUTO 6: TOTALE"
 PROMPT 112 41 ""
 GROUP  15
 MESSAGE ADD,9@
 PICTURE "###.###.###^^^"
END

NUMERO 43
BEGIN
 KEY "TOTALE (in lettere)"
 PROMPT 9 55 ""
 GROUP  9
 PICTURE "LETTERE"
END

NUMERO 44
BEGIN
 KEY "TOTALE (in cifre)"
 PROMPT 112 55 ""
 GROUP  9
 PICTURE "###.###.###^^^"
END

DATA 45
BEGIN
 KEY "DATA: giorno - mese - anno"
 PROMPT 79 60 ""
 PICTURE "@  @^  @  @^ ^^@  @"
 FIELD D0
 FORMAT "1444-"
END

STRINGA 46
BEGIN
 KEY "CODICE AZIENDA"
 PROMPT 102 60 ""
 FIELD S7
END

STRINGA 47
BEGIN
 KEY "CODICE DIPENDENZA"
 PROMPT 120 60 ""
 FIELD S8
END

END

END
