> For the complete documentation index, see [llms.txt](https://kythuat.dtechvn.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kythuat.dtechvn.com/ket-noi-htkk/maping-tu-1-bao-cao.md).

# MAPING TỪ 1 BÁO CÁO

## Ý NGHĨA CHỨC NĂNG

* Maping 1 xml có form cố định từ báo cáo cố định (báo cáo dạng Fix)

## HƯỚNG DẪN SỬ DỤNG

### 1. XÁC ĐỊNH THÔNG TIN

* Xác định file xml + báo cáo ghép vào
* Xác định key xml và key báo cáo
  * xml thường lấy key là "path": là thẻ xml&#x20;
  * key báo cáo: báo cáo dạng fix thường có 1 cột là id dòng. Ví dụ: mã số, stt, thuyết minh
* Tên file xml khi sinh ra sau khi xử lý
  * Thường sẽ là tên file xml gốc làm temp + chèn thêm text thông tin: Tháng, năm, cơ quan quản lý thuế... tuỳ vào giao diện htkk
  * Kỹ thuật thường sẽ tạo htkk tay và xem nguyên tắc tạo tên cho file, từ đó xác định được nội dung cần chèn thêm, vị trí chèn

### 2. XỬ LÝ

* Tạo dòng quản lý trong htkk api
* Maping giữa xml và báo cáo&#x20;

  <figure><img src="/files/zjVPpnmU0NYQjreplN1u" alt=""><figcaption><p>Maping xml </p></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://kythuat.dtechvn.com/ket-noi-htkk/maping-tu-1-bao-cao.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
