# Servizi

# API

# Endpoint di lettura

##### API Base Url:

dev: [https://b2b-services-subscription-dev.agyo.io/api](https://b2b-services-subscription-test.agyo.io/swagger-ui.html)

test: [https://b2b-services-subscription-test.agyo.io/api](https://b2b-services-subscription-test.agyo.io/swagger-ui.html)

prod: [https://b2b-services-subscription.agyo.io/api](https://b2b-services-subscription-test.agyo.io/swagger-ui.html)

##### Swagger:

[https://b2b-services-subscription-test.agyo.io/swagger-ui.html](https://b2b-services-subscription-test.agyo.io/swagger-ui.html)

# Endpoint di scrittura

##### API Base Url:

dev: [https://agyo-subscription-api-dev.agyo.io/api](https://agyo-subscription-api-test.agyo.io/swagger-ui.html)

test: [https://agyo-subscription-api-test.agyo.io/api](https://agyo-subscription-api-test.agyo.io/swagger-ui.html)

prod: [https://agyo-subscription-api-test.agyo.io/api](https://agyo-subscription-api-test.agyo.io/swagger-ui.html)

##### Swagger:

[https://agyo-subscription-api-test.agyo.io/swagger-ui.html](https://agyo-subscription-api-test.agyo.io/swagger-ui.html)

# TS Digital Insights

# TS Digital Insights

### Processo![flow.png](https://digital-docs.ts-paas.com/uploads/images/gallery/2023-05/scaled-1680-/5zGfz3yugnx41hK9-flow.png)

Il flusso per utilizzare il servizio di **INSIGHTS** parte dalla firma del contratto, per far ciò dal FE viene chiamato il servizio **Insights-api** e tramite la chiamata **signContratct** viene recuperato il template(**ONE\_PLATFORM\_INSIGHT**) del contratto per dare i consensi, vengono aggiunti i check sulle clausole e il tutto poi viene inviato ad L-CMS che si occupa di tenere una copia del contratto firmato e viene inviata una mail all'utente che riepiloga il contratto firmato. Una volta firmato il contratto viene chiamata l'api di attivazione del servizio **activeService** che scatena tutta la serie di eventi per far si che il servizio sia correttamente attivo e venga notificato il **datalake** di questa attivazione per iniziare a processare i dati dell'azienda così da poter calcolare gli insights.

## Endpoint

##### DEV

<p class="callout info">[https://insights-api-dev.agyo.io/swagger](https://insights-api-dev.agyo.io/swagger)  
[https://ts-digital-insights-config-write-dev.agyo.io/swagger-ui/index.html](https://ts-digital-insights-config-write-dev.agyo.io/swagger-ui/index.html)  
[https://ts-digital-insights-config-read-dev.agyo.io/swagger-ui/index.html](https://ts-digital-insights-config-read-dev.agyo.io/swagger-ui/index.html#/)</p>

#####   
TEST

<p class="callout info">[https://insights-api-test.agyo.io/swagger](https://insights-api-test.agyo.io/swagger)  
[https://ts-digital-insights-config-write-test.agyo.io/swagger-ui/index.html](https://ts-digital-insights-config-write-test.agyo.io/swagger-ui/index.html)  
[https://ts-digital-insights-config-read-test.agyo.io/swagger-ui/index.html](https://ts-digital-insights-config-read-test.agyo.io/swagger-ui/index.html)</p>

#####   
PROD

<p class="callout info"> </p>

## Api

#### Insights-api

\*opzionale

---

<p class="callout info">\[GET\] /getCardList/{itemId}</p>

Permette di recuperare la lista delle card di insights.

- `itemId` identificativo uuid dell'azienda.

---

<p class="callout info">\[GET\] /getKpiData/{kpiName}/{itemId}</p>

Permette di recuperare i dati specifici per il singolo kpi.

- `kpiName` nome del kpi per cui si vuole recuperare i dati.
- `itemId` identificativo uuid dell'azienda.

---

<p class="callout info">\[POST\] /signContract</p>

Permette di firmare il contratto per dare il consenso di trattare i dati di un azienda ai fine di poterli usare per analytics.

- `itemId` identificativo uuid dell'azienda.
- `userId` identificativo uuid dell'utente che sta firmando il contratto per conto dell'azienda.

---

<p class="callout info">\[POST\] /activeService</p>

Permette di attivare il servizio di insights.

- `ownerId` identificativo uuid dell'azienda owner del pacchetto.
- `itemId` identificativo uuid dell'azienda.

---

<p class="callout info">\[POST\] <span class="property">/disableService</span></p>

Permette di disattivare il servizio di insights.

- `ownerId` \* identificativo uuid dell'azienda owner del pacchetto.
- `itemId` identificativo uuid dell'azienda.

---

<p class="callout info">\[GET\] /getStatus/{itemId}/{ownerId}</p>

Permette di recuperare le informazioni sul pacchetto di insights per una singola azienda. Con il parametro `infoServiceName` si possono recuperare dei conteggi aggiuntivi sul pacchetto.

- `ownerId` identificativo uuid dell'azienda owner del pacchetto.
- `itemId` identificativo uuid dell'azienda.
- `infoServiceName` \* valori possibili: 
    - **CARD\_NUMBER** permette di recuperare il numero di insights disponibili.
    - **SALES\_INFO** permette di recuperare l'incremento % di fatture ricevute e inviate rispetto l'anno precedente.

```JSON
{
    "configInfo": {
        "id": 4,
        "itemId": "e6e530cc-8f98-4fc1-9017-cda412b51497",
        "ownerId": "e6e530cc-8f98-4fc1-9017-cda412b51497",
        "createdAt": "2023-04-20T13:22:18.947+00:00",
        "createdBy": "c34b9996-fb3f-4378-a9e5-fb180d8a5db9-WEBHOOK-INVOKER-INSIGHTS",
        "updatedAt": "2023-04-20T13:22:18.947+00:00",
        "updatedBy": "c34b9996-fb3f-4378-a9e5-fb180d8a5db9-WEBHOOK-INVOKER-INSIGHTS",
        "active": true,
        "readonly": false,
        "flows": [
            {
                "id": 4,
                "configId": 4,
                "flowId": "EIP",
                "createdAt": "2023-04-20T13:22:18.959+00:00",
                "createdBy": "c34b9996-fb3f-4378-a9e5-fb180d8a5db9-WEBHOOK-INVOKER-INSIGHTS",
                "updatedAt": "2023-04-20T13:22:18.959+00:00",
                "updatedBy": "c34b9996-fb3f-4378-a9e5-fb180d8a5db9-WEBHOOK-INVOKER-INSIGHTS",
                "active": true
            }
        ]
    },
    "status": "ACTIVE",
    "infoService": [
        {
            "name": "cardNumber",
            "value": 7,
            "type": "number"
        }
    ]
}
```

---

#### Ts-digital-insights-config-read

---

---

<p class="callout info">\[GET\] /api/v1/flows</p>

Permette di recuperare la lista dei flussi disponibili.

---

<p class="callout info">\[GET\] /api/v1/flows/{flowId}</p>

Permette di recuperare le informazioni di un singolo flusso.

- `flowId` identificativo uuid dell'azienda.

---

<p class="callout info">\[GET\] /api/v1/config/{itemId}/{ownerId}</p>

Permette di recuperare le info del config.

- `ownerId` identificativo uuid dell'azienda owner del pacchetto.
- `itemId` identificativo uuid dell'azienda.

---

#### Ts-digital-insights-config-write

---

## Flussi

Il servizio digital Insights una volta attivo permette di configurare differenti flussi su cui è configurato il servizio come ad esempio:

<table border="1" id="bkmrk-app_id-%28identificati" style="border-collapse: collapse; width: 100%;"><tbody><tr><td style="width: 50%;">**flow\_id (identificativo del flusso)**</td><td style="width: 50%;">**flow description**</td></tr><tr><td style="width: 50%;">EIP</td><td style="width: 50%;">Digital Invoice</td></tr><tr><td style="width: 50%;">FLOW\_2</td><td style="width: 50%;"> </td></tr><tr><td style="width: 50%;">FLOW\_3</td><td style="width: 50%;"> </td></tr></tbody></table>

Esistono dei flussi che vengono attivati automaticamente all'attivazione del servizio.

## Flussi di Notifica

Tramite il config è possibile configurare per ogni flusso una lista di endpoint a cui notificare l'attivazione del flusso di digital Insights.

L'endpoint del servizio a cui il config dovrà inviare la notifica deve essere sviluppato nel seguente modo:

<table border="1" id="bkmrk-protocollo-rest-meto" style="border-collapse: collapse; width: 100%;"><tbody><tr><td style="width: 50%;">**Protocollo**</td><td style="width: 50%;">REST</td></tr><tr><td style="width: 50%;">**Metodo**</td><td style="width: 50%;">POST</td></tr><tr><td style="width: 50%;">**Autenticazione**</td><td style="width: 50%;">Bearer JWT</td></tr><tr><td style="width: 50%;">**Body della richiesta per notifiche sui flussi**</td><td style="width: 50%;">{

"flowId": "String",

"itemId": "String",

"ownerId": "String",

"action": "ENABLE\_FLOW/DISABLE\_FLOW",

}

</td></tr></tbody></table>

Di seguito è presente una descrizione dei parametri passati nel body:

- **flowId**: identificativo del flusso (es EIP per fatturazione)
- **itemId**: azienda su cui è stato attivato il flusso
- **ownerId**: azienda che paga il servizio Digital Insights

Gli endpoint messi a disposizione dovranno essere idempotenti, quindi dovranno gestire potenziali chiamate doppie (in caso di eventuali errori del sistema) .

Gli endpoint dovranno restituire le seguenti risposte

<table border="1" id="bkmrk-status-code-body-200" style="border-collapse: collapse; width: 100%;"><tbody><tr><td style="width: 41.9753%;">**Status Code**</td><td style="width: 58.0247%;">**Body**</td></tr><tr><td style="width: 41.9753%;">200/202</td><td style="width: 58.0247%;">{

"message":""

}

</td></tr><tr><td style="width: 41.9753%;">400/401/404/406/412/500/502</td><td style="width: 58.0247%;">{

"code": "string",

"timeStamp": "2021-07-08T13:13:12.223Z",

"message": "string"

}

</td></tr></tbody></table>

<span style="color: #ff0000;">**\[documentazione parziale, ancora in fase di sviluppo\]**</span>

# Insights Use Case

Use Case di Insights disponibili

# Statistiche SDI

Insights legati alle fatture elettroniche del singolo cliente:

![](https://digital-docs.ts-paas.com/uploads/images/gallery/2023-08/ArWVvP4ro3Kko9Gg-embedded-image-puunjqmi.png)

Datalake calculation:

I kpi da calcolare (rispettivamente anno in corso e anno precedente) in data lake sono:   
Numero fatture elettroniche (un campo per le attive e un campo per le passive).  
Valore fatture elettroniche (sia attive che passive), valore proveniente dalle linee.   
Vengono considerati le condizioni per il calcolo del fatturato (vedi condizioni sotto).

  
Analytics model converter:

Per l’insights «Fatture emesse»: somma del «TotaleFattureAttiveAnnoInCorso» per i mesi di competenza dell’anno in corso  
Per l’insights «Fatture ricevute »: somma del «TotaleFatturePassiveAnnoInCorso» per i mesi di competenza dell’anno in corso  
Per la «media mensile fatture emesse» : «TotaleFattureAttiveAnnoInCorso» diviso il numero dei mesi di competenza  
Per la «media mensile fatture ricevute» : «TotaleFatturePassiveAnnoInCorso» diviso il numero dei mesi di competenza

Condizioni per il calcolo del fatturato:

<table border="0" cellpadding="0" cellspacing="0" id="bkmrk-ciclo-attivo-%28active" style="border-collapse: collapse; width: 888pt; mso-yfti-tbllook: 1536;" width="1776"><colgroup><col style="mso-width-source: userset; width: 66pt;" width="132"></col> <col style="mso-width-source: userset; width: 69pt;" width="139"></col> <col style="mso-width-source: userset; width: 92pt;" width="185"></col> <col style="mso-width-source: userset; width: 91pt;" width="182"></col> <col style="mso-width-source: userset; width: 166pt;" width="331"></col> <col style="mso-width-source: userset; width: 209pt;" width="419"></col> <col style="mso-width-source: userset; width: 194pt;" width="388"></col> </colgroup><tbody><tr style="mso-height-source: userset; height: 28.38pt;"><td class="oa1" height="57" style="height: 28.38pt; width: 66pt;" width="132"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">Ciclo attivo (active = true)</span>

</td><td class="oa1" style="width: 69pt;" width="139"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">Flusso</span>

</td><td class="oa1" style="width: 92pt;" width="185"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">Stato</span>

</td><td class="oa1" style="width: 91pt;" width="182"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">Stato Dalake</span>

</td><td class="oa1" style="width: 166pt;" width="331"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">Tipo documento</span>

</td><td class="oa1" style="width: 209pt;" width="419"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">Formula di calcolo</span>

</td><td class="oa1" style="width: 194pt;" width="388"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">Formula di calcolo TD07, TD08, TD09</span>

</td></tr><tr style="mso-height-source: userset; height: 75.27pt;"><td class="oa2" height="151" style="height: 75.27pt; width: 66pt;" width="132"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"><span style="mso-spacerun: yes;"> </span></span>

</td><td class="oa2" style="width: 69pt;" width="139"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">SDIPA</span>

</td><td class="oa2" style="width: 92pt;" width="185"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">ACCETTATA (PA)  
ACCETTATA PER DECORENZA TERMINI (PA)</span>

</td><td class="oa2" style="width: 91pt;" width="182"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">ACCETTATO  
  
NESSUNA\_RISPOSTA  
IN\_GESTIONE</span>

</td><td class="oa2" style="width: 166pt;" width="331"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">TD01, TD02, TD03, TD04, TD05, TD06, TD24, TD25, TD26 (se cedente diverso da cessionario solo per TD26)</span>

</td><td class="oa2" style="width: 209pt;" width="419"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">-Sommatoria degli imponibili di tutte le linee ( 2.2.1.11<span style="mso-spacerun: yes;"> </span>&lt;</span><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">PrezzoTotale</span><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">&gt;) tranne TD04  
\- per TD04 fare la sommatoria di tutte le linee<span style="mso-spacerun: yes;"> </span>(2.2.1.11<span style="mso-spacerun: yes;"> </span>&lt;</span><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">PrezzoTotale</span><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">&gt;, questa sommatoria è da considerare in valore assoluto (togliere quindi l'eventuale segno "-") e da sottrarre alla stessa sommatoria degli altri tipi documento</span>

</td><td class="oa2" style="width: 194pt;" width="388"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">- sommatoria 2.2.2<span style="mso-spacerun: yes;"> </span>&lt;Importo&gt; - 2.2.3.1<span style="mso-spacerun: yes;"> </span>&lt;Imposta&gt;  
Oppure  
2.2.2<span style="mso-spacerun: yes;"> </span>&lt;Importo&gt; / \[1+( 2.2.3.2<span style="mso-spacerun: yes;"> </span>&lt;Aliquota&gt;/100)\]  
(i tag 2.2.3.1 e 2.2.2 sono alternativi)  
-TD08 (nota credito) va considerata in valore assoluto e sottratta al fatturato</span>

</td></tr><tr style="mso-height-source: userset; height: 47.12pt;"><td class="oa2" height="94" style="height: 47.12pt; width: 66pt;" width="132"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> </span>

</td><td class="oa2" style="width: 69pt;" width="139"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">SDIPR</span>

</td><td class="oa2" style="width: 92pt;" width="185"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">EMESSA (PR)</span>

</td><td class="oa2" style="width: 91pt;" width="182"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">INVIATO</span>

</td><td class="oa2" style="width: 166pt;" width="331"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">TD01, TD02, TD03, TD04, TD05, TD06, TD24, TD25, TD26 (se cedente diverso da cessionario solo per TD26), TD27</span>

</td><td class="oa2" style="width: 209pt;" width="419"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">idem</span>

</td><td class="oa2" style="width: 194pt;" width="388"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> </span>

</td></tr><tr style="mso-height-source: userset; height: 47.95pt;"><td class="oa2" height="96" style="height: 47.95pt; width: 66pt;" width="132"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> </span>

</td><td class="oa2" style="width: 69pt;" width="139"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">AUTOINVIO / SELFSEND</span>

</td><td class="oa2" style="width: 92pt;" width="185"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">AUTO INVIATA</span>

</td><td class="oa2" style="width: 91pt;" width="182"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">AUTO\_INVIATO</span>

</td><td class="oa2" style="width: 166pt;" width="331"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">TD01, TD02, TD03, TD04, TD05, TD06, TD24, TD25, TD26 (se cedente diverso da cessionario TD26), TD27</span>

</td><td class="oa2" style="width: 209pt;" width="419"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">idem</span>

</td><td class="oa2" style="width: 194pt;" width="388"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> </span>

</td></tr><tr style="mso-height-source: userset; height: 31.04pt;"><td class="oa3" height="62" style="height: 31.04pt; width: 66pt;" width="132"></td><td class="oa3" style="width: 69pt;" width="139"></td><td class="oa3" style="width: 92pt;" width="185"></td><td class="oa3" style="width: 91pt;" width="182"></td><td class="oa3" style="width: 166pt;" width="331"></td><td class="oa3" style="width: 209pt;" width="419"></td><td class="oa4" style="width: 194pt;" width="388"></td></tr><tr style="mso-height-source: userset; height: 28.38pt;"><td class="oa5" height="57" style="height: 28.38pt; width: 66pt;" width="132"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">Ciclo passivo (active=false)</span>

</td><td class="oa5" style="width: 69pt;" width="139"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">Flusso</span>

</td><td class="oa5" style="width: 92pt;" width="185"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">Stato</span>

</td><td class="oa5" style="width: 91pt;" width="182"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">Stato Dalake</span>

</td><td class="oa5" style="width: 166pt;" width="331"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">Tipo documento</span>

</td><td class="oa5" style="width: 209pt;" width="419"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">Formula di calcolo</span>

</td><td class="oa6" style="width: 194pt;" width="388"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">Formula di calcolo TD07, TD08, TD09</span>

</td></tr><tr style="mso-height-source: userset; height: 84.65pt;"><td class="oa2" height="169" style="height: 84.65pt; width: 66pt;" width="132"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> </span>

</td><td class="oa2" style="width: 69pt;" width="139"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">SDIPA</span>

</td><td class="oa2" style="width: 92pt;" width="185"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">ACCETTATA (PA)  
ACCETTATA PER DECORENZA TERMINI (PA)</span>

</td><td class="oa2" style="width: 91pt;" width="182"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">ACCETTATO  
  
NESSUNA\_RISPOSTA  
  
A\_DISPOSIZIONE  
  
RICEVUTO</span>

</td><td class="oa2" style="width: 166pt;" width="331"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">TD01, TD02, TD03, TD04, TD05, TD06, TD20, TD24, TD25, TD26 (se cedente diverso da cessionario solo per TD26), TD28</span>

</td><td class="oa2" style="width: 209pt;" width="419"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">-Sommatoria degli imponibili di tutte le linee ( 2.2.1.11<span style="mso-spacerun: yes;"> </span>&lt;</span><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">PrezzoTotale</span><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">&gt;) + sommatoria 2.1.1.7.3<span style="mso-spacerun: yes;"> </span>&lt;</span><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">ImportoContributoCassa</span><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">&gt; tranne TD04  
\- per TD04 fare la sommatoria di tutte le linee<span style="mso-spacerun: yes;"> </span>(2.2.1.11<span style="mso-spacerun: yes;"> </span>&lt;</span><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">PrezzoTotale</span><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">&gt;) + sommatoria 2.1.1.7.3<span style="mso-spacerun: yes;"> </span>&lt;</span><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">ImportoContributoCassa</span><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">&gt;, considerarla in valore assoluto (togliere quindi l'eventuale segno "-") e sottrarlo alla stessa sommatoria degli altri tipi documento</span>

</td><td class="oa2" style="width: 194pt;" width="388"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">- sommatoria 2.2.2<span style="mso-spacerun: yes;"> </span>&lt;Importo&gt; - 2.2.3.1<span style="mso-spacerun: yes;"> </span>&lt;Imposta&gt;  
Oppure  
2.2.2<span style="mso-spacerun: yes;"> </span>&lt;Importo&gt; / \[1+( 2.2.3.2<span style="mso-spacerun: yes;"> </span>&lt;Aliquota&gt;/100)\]  
(i tag 2.2.3.1 e 2.2.2 sono alternativi)  
-TD08 (nota credito) va considerata in valore assoluto e sottratta al fatturato</span>

</td></tr><tr style="mso-height-source: userset; height: 47.12pt;"><td class="oa2" height="94" style="height: 47.12pt; width: 66pt;" width="132"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> </span>

</td><td class="oa2" style="width: 69pt;" width="139"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">SDIPR</span>

</td><td class="oa2" style="width: 92pt;" width="185"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">RICEVUTA</span>

</td><td class="oa2" style="width: 91pt;" width="182"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">A\_DISPOSIZIONE  
  
RICEVUTO</span>

</td><td class="oa2" style="width: 166pt;" width="331"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">TD01, TD02, TD03, TD04, TD05, TD06, TD20, TD24, TD25, TD26 (se cedente diverso da cessionario solo per TD26), TD28</span>

</td><td class="oa2" style="width: 209pt;" width="419"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">idem</span>

</td><td class="oa2" style="width: 194pt;" width="388"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> </span>

</td></tr><tr style="mso-height-source: userset; height: 47.12pt;"><td class="oa2" height="94" style="height: 47.12pt; width: 66pt;" width="132"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> </span>

</td><td class="oa2" style="width: 69pt;" width="139"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">AUTOINVIO / SELFSEND</span>

</td><td class="oa2" style="width: 92pt;" width="185"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">RICEVUTA</span>

</td><td class="oa2" style="width: 91pt;" width="182"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">A\_DISPOSIZIONE  
  
RICEVUTO</span>

</td><td class="oa2" style="width: 166pt;" width="331"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">TD01, TD02, TD03, TD04, TD05, TD06, TD20, TD24, TD25, TD26 (se cedente diverso da cessionario solo per TD26), TD28</span>

</td><td class="oa2" style="width: 209pt;" width="419"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">idem</span>

</td><td class="oa2" style="width: 194pt;" width="388"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> </span>

</td></tr></tbody></table>

# KPI Green

<div id="bkmrk-kpi-green-sono-degli">KPI Green sono degli indicatori legati al potenziale risparmio dovuto all'utilizzo della fatturazione elettronica e alla rinuncia a stampare le fatture. Si tratta risparmio calcolato in termini di Alberi (numero) , Acqua (litri) e Co2 (kg). </div><div id="bkmrk-"></div><div id="bkmrk--1"></div><div id="bkmrk-datalake-calculation">Datalake Calculation:</div><div id="bkmrk--2"></div><div id="bkmrk-calcolato-direttamen">Calcolato direttamente su synapse, con i dati dei consumi, utilizzando vista vw_greenDigitalBox e la funzione udf_greenDigitalBox e scritto su tabella api.greendigitalbox.</div><div id="bkmrk-%C2%A0"> </div><div id="bkmrk-al-fine-di-arricchir">Al fine di arricchire i dati con gli ulteriori filtri è stata scritta su sql anche l'anagrafica.</div><div id="bkmrk--3">  
</div><div id="bkmrk-per-ogni-partita-iva">Per ogni partita IVA e mese vengono calcolati i seguenti indicatori moltiplicando i parametri per #alberi, litri acqua e kg CO2 per la somma del numero di fatture:</div><div id="bkmrk-sum%28%5Bnfatture%5D%29-%2A-0%2C">SUM([Nfatture]) * 0,00026944 [RisparmioAlberi]</div><div id="bkmrk-sum%28%5Bnfatture%5D%29-%2A-0%2C-1">SUM([Nfatture]) * 0,88721574 [RisparmioAcqua]</div><div id="bkmrk-sum%28%5Bnfatture%5D%29-%2A-0%2C-2">SUM([Nfatture]) * 0,0224532 [RisparmioCO2]</div><div id="bkmrk--4">  
</div><div id="bkmrk-viene-inoltre-filtra">Viene inoltre filtrato il dato per i consumi delle **fatture attive**</div><div id="bkmrk--5">  
</div><div id="bkmrk-il-dato-viene-salvat">Il dato viene salvato nella tabella sql api.greenDigitalBox</div>Parametri utilizzati per il calcolo:

<table border="0" cellpadding="0" cellspacing="0" id="bkmrk-fattura-%28%23%29-1-numero" style="width: 537px; height: 351.409px;" width="1463"><colgroup><col style="width: 443px;" width="914"></col> <col style="width: 201px;" width="549"></col> </colgroup><tbody><tr style="height: 72.4089px;"><td class="oa1" height="109" style="height: 72.4089px; width: 457pt;" width="914"><span style="font-size: 18pt; font-family: Arial; font-variant: normal; color: black; font-weight: bold; font-style: normal;">Fattura (#)</span>

</td><td class="oa2" style="width: 275pt; height: 72.4089px;" width="549"><span style="font-size: 24pt; font-family: Arial; font-variant: normal; color: black; font-weight: normal; font-style: normal;">1</span>

</td></tr><tr style="height: 70px;"><td class="oa1" height="105" style="height: 70px; width: 457pt;" width="914"><span style="font-size: 18pt; font-family: Arial; font-variant: normal; color: black; font-weight: bold; font-style: normal;">Numero di fogli (per fattura)</span>

</td><td class="oa2" style="width: 275pt; height: 70px;" width="549"><span style="font-size: 24pt; font-family: Arial; font-variant: normal; color: black; font-weight: normal; font-style: normal;">3</span>

</td></tr><tr style="height: 70px;"><td class="oa1" height="105" style="height: 70px; width: 457pt;" width="914"><span style="font-size: 18pt; font-family: Arial; font-variant: normal; color: black; font-weight: bold; font-style: normal;">Alberi (#)</span>

</td><td class="oa2" style="width: 275pt; height: 70px;" width="549"><span style="font-size: 24pt; font-family: Arial; font-variant: normal; color: black; font-weight: normal; font-style: normal;">0,00026944</span>

</td></tr><tr style="height: 70px;"><td class="oa1" height="105" style="height: 70px; width: 457pt;" width="914"><span style="font-size: 18pt; font-family: Arial; font-variant: normal; color: black; font-weight: bold; font-style: normal;">Acqua (litri)</span>

</td><td class="oa2" style="width: 275pt; height: 70px;" width="549"><span style="font-size: 24pt; font-family: Arial; font-variant: normal; color: black; font-weight: normal; font-style: normal;">0,88721574</span>

</td></tr><tr style="height: 69px;"><td class="oa1" height="105" style="height: 69px; width: 457pt;" width="914"><span style="font-size: 18pt; font-family: Arial; font-variant: normal; color: black; font-weight: bold; font-style: normal;">CO2 (kg)</span>

</td><td class="oa2" style="width: 275pt; height: 69px;" width="549"><span style="font-size: 24pt; font-family: Arial; font-variant: normal; color: black; font-weight: normal; font-style: normal;">0,0224532</span>

</td></tr></tbody></table>

# Incassi e pagamenti da fatture elettroniche

Si tratta di un Insights basato sulle fatture elettroniche del singolo cliente in cui, attraverso la lettura della data scadenza del singolo documento, si calcolano gli incassi e pagamenti previsti nei successivi 6 mesi rispetto alla data di riferimento. Oltre al calcolo degli incassi e pagamenti (raggruppati per mese) viene fornito al cliente la differenza tra incassi e pagamenti a livello mensile ma anche a livello cumulato, suggerendo inoltre l'andamento generale dei successivi 6 mesi attraverso un messaggio testuale sintetico.

![](https://digital-docs.ts-paas.com/uploads/images/gallery/2023-08/hxHIx6mynZ13wnII-embedded-image-0jfoke47.png)

**Perimetro**:  
\- Selezione clienti sottoscriventi  
\- Filtro temporale sulla tabella \[dati pagamento\] delle fatture che hanno \[data scadenza pagamento\] tra oggi (incluso) e i prossimi 12 mesi

o Il dato grezzo deriva da \[fattura elettronica header\]; vengono selezionati i codici fiscali del cedente prestatore e i codici fiscali del cessionario committente, oltre all’importo pagamento. Quest’ultimo viene diviso per il tasso di cambio recuperato dalle API di Banca d’Italia. Il campo utilizzato per recuperare la valuta della fattura è il campo \[divisa\] dalla tabella \[dati generali\].

o Con i dati così recuperati vengono calcolate le somme delle fatture attive e passive per mese e le cumulate sui 12 mesi; dove il dato è mancante viene messo di default il valore 0. Il calcolo è stato eseguito seguendo l’algoritmo allegato.

o In base ai valori appena selezionati vengono calcolati i flag di alert mensile, cumulato e annuale

Definizione data scadenza :

- Per definire la data della scadenza considerare il campo 2.4.2.5 &lt;DataScadenzaPagamento&gt;  
    \- se 2.4.2.5 &lt;DataScadenzaPagamento&gt; non è compilato riportiamo la data del documento contenuta nel campo 2.1.1.3 &lt;Data&gt;

Condizioni :

<table border="0" cellpadding="0" cellspacing="0" id="bkmrk-ciclo-attivo-%28active" style="border-collapse: collapse; width: 888pt; mso-yfti-tbllook: 1536;" width="1776"><colgroup><col style="mso-width-source: userset; width: 66pt;" width="132"></col> <col style="mso-width-source: userset; width: 69pt;" width="139"></col> <col style="mso-width-source: userset; width: 92pt;" width="185"></col> <col style="mso-width-source: userset; width: 91pt;" width="182"></col> <col style="mso-width-source: userset; width: 166pt;" width="331"></col> <col style="mso-width-source: userset; width: 209pt;" width="419"></col> <col style="mso-width-source: userset; width: 194pt;" width="388"></col> </colgroup><tbody><tr style="mso-height-source: userset; height: 28.38pt;"><td class="oa1" height="57" style="height: 28.38pt; width: 66pt;" width="132"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">Ciclo attivo (active = true)</span>

</td><td class="oa1" style="width: 69pt;" width="139"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">Flusso</span>

</td><td class="oa1" style="width: 92pt;" width="185"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">Stato</span>

</td><td class="oa1" style="width: 91pt;" width="182"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">Stato Dalake</span>

</td><td class="oa1" style="width: 166pt;" width="331"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">Tipo documento</span>

</td><td class="oa1" style="width: 209pt;" width="419"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">Formula di calcolo</span>

</td><td class="oa1" style="width: 194pt;" width="388"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">Formula di calcolo TD07, TD08, TD09</span>

</td></tr><tr style="mso-height-source: userset; height: 75.27pt;"><td class="oa2" height="151" style="height: 75.27pt; width: 66pt;" width="132"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"><span style="mso-spacerun: yes;"> </span></span>

</td><td class="oa2" style="width: 69pt;" width="139"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">SDIPA</span>

</td><td class="oa2" style="width: 92pt;" width="185"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">ACCETTATA (PA)  
ACCETTATA PER DECORENZA TERMINI (PA)</span>

</td><td class="oa2" style="width: 91pt;" width="182"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">ACCETTATO  
  
NESSUNA\_RISPOSTA  
IN\_GESTIONE</span>

</td><td class="oa2" style="width: 166pt;" width="331"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">TD01, TD02, TD03, TD04, TD05, TD06, TD24, TD25, TD26 (se cedente diverso da cessionario solo per TD26)</span>

</td><td class="oa2" style="width: 209pt;" width="419"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">-Sommatoria degli imponibili di tutte le linee ( 2.2.1.11<span style="mso-spacerun: yes;"> </span>&lt;</span><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">PrezzoTotale</span><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">&gt;) tranne TD04  
\- per TD04 fare la sommatoria di tutte le linee<span style="mso-spacerun: yes;"> </span>(2.2.1.11<span style="mso-spacerun: yes;"> </span>&lt;</span><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">PrezzoTotale</span><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">&gt;, questa sommatoria è da considerare in valore assoluto (togliere quindi l'eventuale segno "-") e da sottrarre alla stessa sommatoria degli altri tipi documento</span>

</td><td class="oa2" style="width: 194pt;" width="388"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">- sommatoria 2.2.2<span style="mso-spacerun: yes;"> </span>&lt;Importo&gt; - 2.2.3.1<span style="mso-spacerun: yes;"> </span>&lt;Imposta&gt;  
Oppure  
2.2.2<span style="mso-spacerun: yes;"> </span>&lt;Importo&gt; / \[1+( 2.2.3.2<span style="mso-spacerun: yes;"> </span>&lt;Aliquota&gt;/100)\]  
(i tag 2.2.3.1 e 2.2.2 sono alternativi)  
-TD08 (nota credito) va considerata in valore assoluto e sottratta al fatturato</span>

</td></tr><tr style="mso-height-source: userset; height: 47.12pt;"><td class="oa2" height="94" style="height: 47.12pt; width: 66pt;" width="132"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> </span>

</td><td class="oa2" style="width: 69pt;" width="139"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">SDIPR</span>

</td><td class="oa2" style="width: 92pt;" width="185"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">EMESSA (PR)</span>

</td><td class="oa2" style="width: 91pt;" width="182"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">INVIATO</span>

</td><td class="oa2" style="width: 166pt;" width="331"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">TD01, TD02, TD03, TD04, TD05, TD06, TD24, TD25, TD26 (se cedente diverso da cessionario solo per TD26), TD27</span>

</td><td class="oa2" style="width: 209pt;" width="419"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">idem</span>

</td><td class="oa2" style="width: 194pt;" width="388"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> </span>

</td></tr><tr style="mso-height-source: userset; height: 47.95pt;"><td class="oa2" height="96" style="height: 47.95pt; width: 66pt;" width="132"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> </span>

</td><td class="oa2" style="width: 69pt;" width="139"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">AUTOINVIO / SELFSEND</span>

</td><td class="oa2" style="width: 92pt;" width="185"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">AUTO INVIATA</span>

</td><td class="oa2" style="width: 91pt;" width="182"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">AUTO\_INVIATO</span>

</td><td class="oa2" style="width: 166pt;" width="331"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">TD01, TD02, TD03, TD04, TD05, TD06, TD24, TD25, TD26 (se cedente diverso da cessionario TD26), TD27</span>

</td><td class="oa2" style="width: 209pt;" width="419"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">idem</span>

</td><td class="oa2" style="width: 194pt;" width="388"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> </span>

</td></tr><tr style="mso-height-source: userset; height: 31.04pt;"><td class="oa3" height="62" style="height: 31.04pt; width: 66pt;" width="132"></td><td class="oa3" style="width: 69pt;" width="139"></td><td class="oa3" style="width: 92pt;" width="185"></td><td class="oa3" style="width: 91pt;" width="182"></td><td class="oa3" style="width: 166pt;" width="331"></td><td class="oa3" style="width: 209pt;" width="419"></td><td class="oa4" style="width: 194pt;" width="388"></td></tr><tr style="mso-height-source: userset; height: 28.38pt;"><td class="oa5" height="57" style="height: 28.38pt; width: 66pt;" width="132"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">Ciclo passivo (active=false)</span>

</td><td class="oa5" style="width: 69pt;" width="139"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">Flusso</span>

</td><td class="oa5" style="width: 92pt;" width="185"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">Stato</span>

</td><td class="oa5" style="width: 91pt;" width="182"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">Stato Dalake</span>

</td><td class="oa5" style="width: 166pt;" width="331"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">Tipo documento</span>

</td><td class="oa5" style="width: 209pt;" width="419"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">Formula di calcolo</span>

</td><td class="oa6" style="width: 194pt;" width="388"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">Formula di calcolo TD07, TD08, TD09</span>

</td></tr><tr style="mso-height-source: userset; height: 84.65pt;"><td class="oa2" height="169" style="height: 84.65pt; width: 66pt;" width="132"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> </span>

</td><td class="oa2" style="width: 69pt;" width="139"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">SDIPA</span>

</td><td class="oa2" style="width: 92pt;" width="185"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">ACCETTATA (PA)  
ACCETTATA PER DECORENZA TERMINI (PA)</span>

</td><td class="oa2" style="width: 91pt;" width="182"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">ACCETTATO  
  
NESSUNA\_RISPOSTA  
  
A\_DISPOSIZIONE  
  
RICEVUTO</span>

</td><td class="oa2" style="width: 166pt;" width="331"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">TD01, TD02, TD03, TD04, TD05, TD06, TD20, TD24, TD25, TD26 (se cedente diverso da cessionario solo per TD26), TD28</span>

</td><td class="oa2" style="width: 209pt;" width="419"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">-Sommatoria degli imponibili di tutte le linee ( 2.2.1.11<span style="mso-spacerun: yes;"> </span>&lt;</span><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">PrezzoTotale</span><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">&gt;) + sommatoria 2.1.1.7.3<span style="mso-spacerun: yes;"> </span>&lt;</span><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">ImportoContributoCassa</span><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">&gt; tranne TD04  
\- per TD04 fare la sommatoria di tutte le linee<span style="mso-spacerun: yes;"> </span>(2.2.1.11<span style="mso-spacerun: yes;"> </span>&lt;</span><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">PrezzoTotale</span><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">&gt;) + sommatoria 2.1.1.7.3<span style="mso-spacerun: yes;"> </span>&lt;</span><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">ImportoContributoCassa</span><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">&gt;, considerarla in valore assoluto (togliere quindi l'eventuale segno "-") e sottrarlo alla stessa sommatoria degli altri tipi documento</span>

</td><td class="oa2" style="width: 194pt;" width="388"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">- sommatoria 2.2.2<span style="mso-spacerun: yes;"> </span>&lt;Importo&gt; - 2.2.3.1<span style="mso-spacerun: yes;"> </span>&lt;Imposta&gt;  
Oppure  
2.2.2<span style="mso-spacerun: yes;"> </span>&lt;Importo&gt; / \[1+( 2.2.3.2<span style="mso-spacerun: yes;"> </span>&lt;Aliquota&gt;/100)\]  
(i tag 2.2.3.1 e 2.2.2 sono alternativi)  
-TD08 (nota credito) va considerata in valore assoluto e sottratta al fatturato</span>

</td></tr><tr style="mso-height-source: userset; height: 47.12pt;"><td class="oa2" height="94" style="height: 47.12pt; width: 66pt;" width="132"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> </span>

</td><td class="oa2" style="width: 69pt;" width="139"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">SDIPR</span>

</td><td class="oa2" style="width: 92pt;" width="185"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">RICEVUTA</span>

</td><td class="oa2" style="width: 91pt;" width="182"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">A\_DISPOSIZIONE  
  
RICEVUTO</span>

</td><td class="oa2" style="width: 166pt;" width="331"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">TD01, TD02, TD03, TD04, TD05, TD06, TD20, TD24, TD25, TD26 (se cedente diverso da cessionario solo per TD26), TD28</span>

</td><td class="oa2" style="width: 209pt;" width="419"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">idem</span>

</td><td class="oa2" style="width: 194pt;" width="388"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> </span>

</td></tr><tr style="mso-height-source: userset; height: 47.12pt;"><td class="oa2" height="94" style="height: 47.12pt; width: 66pt;" width="132"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> </span>

</td><td class="oa2" style="width: 69pt;" width="139"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">AUTOINVIO / SELFSEND</span>

</td><td class="oa2" style="width: 92pt;" width="185"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">RICEVUTA</span>

</td><td class="oa2" style="width: 91pt;" width="182"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">A\_DISPOSIZIONE  
  
RICEVUTO</span>

</td><td class="oa2" style="width: 166pt;" width="331"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">TD01, TD02, TD03, TD04, TD05, TD06, TD20, TD24, TD25, TD26 (se cedente diverso da cessionario solo per TD26), TD28</span>

</td><td class="oa2" style="width: 209pt;" width="419"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;">idem</span>

</td><td class="oa2" style="width: 194pt;" width="388"><span style="font-size: 8.0pt; font-family: Arial; mso-ascii-font-family: Arial; mso-ascii-theme-font: major-latin; font-variant: normal; color: black; text-transform: none; language: it; font-weight: normal; font-style: normal; mso-style-textfill-type: solid; mso-style-textfill-fill-color: black; mso-style-textfill-fill-alpha: 100.0%;"> </span>

</td></tr></tbody></table>