# Statements

## Overview

The statements service is used to generate and save the statement. The business logic for both types of statements differs based on the request. Hence, there are 4 APIs (2- Create and 2- Search).

MUKTASoft provides two types of statements: Analysis Statements and Utilization Statements.

**Analysis Statement**

* **Purpose**: Generated for estimates already created and present in the system.
* **Accessibility**: Employees can view the Analysis Statement from the estimate view screen.
* **Linkage**: The statement is linked to the specific estimate for which it is generated.

**Utilization Statement**

* **Purpose**: Generated for measurement books already created and present in the system.
* **Accessibility**: Employees can view the Utilization Statement from the measurement view screen.
* **Linkage**: The statement is linked to the specific measurement for which it is generated.

### Dependency

* DIGIT backbone services
* Persister
* MDMSV2
* IDgen
* Rate Analysis
* Estimate
* Measurement Book
* Contract

### Sequence Diagram

<figure><img src="/files/tcvWzz6CtFq7cQnWhl2K" alt=""><figcaption><p>Utilization Statement</p></figcaption></figure>

<figure><img src="/files/Irq1nPw6dGJUK42TdQUy" alt=""><figcaption><p>Analysis Statement</p></figcaption></figure>

##

## API Specifications

<https://raw.githubusercontent.com/egovernments/DIGIT-Specs/works-v2/Domain%20Services/Works/Statement-v1.0.0.yaml>

## DB Diagram

<div align="left"><figure><img src="/files/7GPfCqt8rddfUqc65gYS" alt="" width="563"><figcaption></figcaption></figure></div>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.digit.org/works/reference-implementations/muktasoft-v2.2/deployment/muktasoft-services/statements.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
