Report Branch
**Report Branch - Filters**
----------------------------
| No. | Label Select |
| :--------: | -------- |
| 1 | ประเภทรายงาน |
| 2 | รหัสพนักงาน(จุดบริการ) |
| 3 | saleId |
| 4 | ชื่อลูกค้า |
| 5 | ทีมขาย |
| 6 | ประเภทผลิตภัณฑ์ |
| 7 | ภาค |
| 8 | จังหวัด(สาขา) |
| 9 | อำเภอ |
| 10 | เหตุผลงานเลื่อน |
| 11 | วันที่เริ่มต้น |
| 12 | วันที่สิ้นสุด |
| 13 | ประเภทงาน |
---
**Report Branch - Disable Report**
----------------------------------
| Type Report | Order Disable (ลำดับอ้างอิงจาก Filters) |
|----| ----------------------------------------------- |
| L1: ผลการจัดส่งงานของจุดบริการ ( แยกตามจังหวัด) | [3, 4, 9, 10, 13] |
| L2: ผลการจัดส่งงานของจุดบริการ ( แยกตามจุดบริการ) | [3, 4, 9, 10, 13] |
| L3: ผลการจัดส่งงานของจุดบริการ(รายละเอียด) | [] |
| สรุป: แยกทีม | [3, 4, 5, 9, 10, 13] |
| สรุป: งานเลื่อน | [3, 4, 9, 10, 13] |
| สรุป: แยกผลิตภัณฑ์ | [3, 4, 6, 9, 10, 13] |
---
**Report Branch - Enum Filters**
----------------------------
**ประเภทรายงาน**
| Enum | Title |
|:----:| ----------------------------------------------- |
| 1 | L1: ผลการจัดส่งงานของจุดบริการ ( แยกตามจังหวัด) |
| 2 | L2: ผลการจัดส่งงานของจุดบริการ ( แยกตามจุดบริการ) |
| 3 | L3: ผลการจัดส่งงานของจุดบริการ(รายละเอียด) |
| 4 | สรุป: แยกทีม |
| 5 | สรุป: งานเลื่อน |
| 6 | สรุป: แยกผลิตภัณฑ์ |
**ประเภทงาน**
| Enum | Title |
|:----:| ------|
| | งานใหม่|
| | งานเก่า |
| | งานอื่น |
---
**API Document**
-----------------
**Get Filter**
* **Method :** GET
* **URL :** /BranchReport/GetFilter
* **Parameter :** staffId (long)
* **Response :**
```json
{
"id": 0,
"success": true,
"message": "string",
"errors": [
"string"
],
"responseObject": {
"dataReportType": [
{
"id": "string",
"title": "string"
}
],
"dataSaleGroup": [
{
"id": "string",
"saleGroupName": "string",
"saleGroup": "string",
"title": "string"
}
],
"dataProductType": [
{
"id": "string",
"title": "string",
"productType": "string",
"productGroup": "string"
}
],
"dataRegion": [
{
"id": "string",
"title": "string"
}
],
"dataBranch": [
{
"id": "string",
"title": "string",
"regionId": "string",
"areaId": "string"
}
],
"dataRemark": [
{
"id": "string",
"title": "string"
}
],
"dataWork": [
{
"title": "string",
"id": "string"
}
],
"dataWorkSubtype": [
{
"id": "string",
"title": "string"
}
],
"dataSaler": [
{
"id": "string",
"title": "string"
}
]
}
}
```
* **สถานะตอบกลับ :** **200 OK** : "Successful"
**List Report L1**
* **Method :** POST
* **URL :** /BranchReport/ListReportL1
* **Body :**
```json
{
"request": {
"staffId": 0,
"reportType": 0,
"saleGroup": "string",
"productType": "string",
"region": "string",
"branch": "string",
"startDate": "2024-03-25T08:52:03.432Z",
"endDate": "2024-03-25T08:52:03.432Z",
"saler": "string"
}
}
```
* **Response :**
```json
{
"id": 0,
"success": true,
"message": "string",
"errors": [
"string"
],
"responseObject": {
"reportData": [
{
"region": {
"id": "string",
"title": "string"
},
"datailRegion": [
{
"provincial": "string",
"workingAmount": 0,
"newWorking": 0,
"newComplete": 0,
"newBeforeBranch": 0,
"newBeforePoint": 0,
"newAfter": 0,
"newTotal": 0,
"oldWorking": 0,
"oldComplete": 0,
"oldBeforeBranch": 0,
"oldBeforePoint": 0,
"oldAfter": 0,
"oldTotal": 0,
"otherWorking": 0,
"otherComplete": 0,
"otherBeforeBranch": 0,
"otherBeforePoint": 0,
"otherAfter": 0,
"otherTotal": 0
}
],
"totals": {
"totalWorkingAmount": 0,
"totalNewWorking": 0,
"totalNewComplete": 0,
"totalNewBeforeBranch": 0,
"totalNewBeforePoint": 0,
"totalNewAfter": 0,
"totalNewTotal": 0,
"totalOldWorking": 0,
"totalOldComplete": 0,
"totalOldBeforeBranch": 0,
"totalOldBeforePoint": 0,
"totalOldAfter": 0,
"totalOldTotal": 0,
"totalOtherWorking": 0,
"totalOtherComplete": 0,
"totalOtherBeforeBranch": 0,
"totalOtherBeforePoint": 0,
"totalOtherAfter": 0,
"totalOtherTotal": 0
}
}
],
"totals": {
"totalWorkingAmount": 0,
"totalNewWorking": 0,
"totalNewComplete": 0,
"totalNewBeforeBranch": 0,
"totalNewBeforePoint": 0,
"totalNewAfter": 0,
"totalNewTotal": 0,
"totalOldWorking": 0,
"totalOldComplete": 0,
"totalOldBeforeBranch": 0,
"totalOldBeforePoint": 0,
"totalOldAfter": 0,
"totalOldTotal": 0,
"totalOtherWorking": 0,
"totalOtherComplete": 0,
"totalOtherBeforeBranch": 0,
"totalOtherBeforePoint": 0,
"totalOtherAfter": 0,
"totalOtherTotal": 0
}
}
}
```
* **สถานะตอบกลับ :** **200 OK :** "Successful"
**List Report L2**
* **Method :** POST
* **URL :** /BranchReport/ListReportL2
* **Body :**
```json
{
"request": {
"staffId": 0,
"reportType": 0,
"saleGroup": "string",
"productType": "string",
"region": "string",
"branch": "string",
"startDate": "2024-03-25T08:52:33.489Z",
"endDate": "2024-03-25T08:52:33.489Z",
"saler": "string"
}
}
```
* **Response :**
```json
{
"id": 0,
"success": true,
"message": "string",
"errors": [
"string"
],
"responseObject": {
"reportData": [
{
"staffName": "string",
"datailProduct": [
{
"workingDate": "string",
"workingAmount": 0,
"newWorking": 0,
"newComplete": 0,
"newBeforeBranch": 0,
"newBeforePoint": 0,
"newAfter": 0,
"newTotal": 0,
"oldWorking": 0,
"oldComplete": 0,
"oldBeforeBranch": 0,
"oldBeforePoint": 0,
"oldAfter": 0,
"oldTotal": 0,
"otherWorking": 0,
"otherComplete": 0,
"otherBeforeBranch": 0,
"otherBeforePoint": 0,
"otherAfter": 0,
"otherTotal": 0
}
],
"totals": {
"totalWorkingAmount": 0,
"totalNewWorking": 0,
"totalNewComplete": 0,
"totalNewBeforeBranch": 0,
"totalNewBeforePoint": 0,
"totalNewAfter": 0,
"totalNewTotal": 0,
"totalOldWorking": 0,
"totalOldComplete": 0,
"totalOldBeforeBranch": 0,
"totalOldBeforePoint": 0,
"totalOldAfter": 0,
"totalOldTotal": 0,
"totalOtherWorking": 0,
"totalOtherComplete": 0,
"totalOtherBeforeBranch": 0,
"totalOtherBeforePoint": 0,
"totalOtherAfter": 0,
"totalOtherTotal": 0
}
}
],
"totals": {
"totalWorkingAmount": 0,
"totalNewWorking": 0,
"totalNewComplete": 0,
"totalNewBeforeBranch": 0,
"totalNewBeforePoint": 0,
"totalNewAfter": 0,
"totalNewTotal": 0,
"totalOldWorking": 0,
"totalOldComplete": 0,
"totalOldBeforeBranch": 0,
"totalOldBeforePoint": 0,
"totalOldAfter": 0,
"totalOldTotal": 0,
"totalOtherWorking": 0,
"totalOtherComplete": 0,
"totalOtherBeforeBranch": 0,
"totalOtherBeforePoint": 0,
"totalOtherAfter": 0,
"totalOtherTotal": 0
}
}
}
```
* **สถานะตอบกลับ :** **200 OK :** "Successful"
**List Report L3**
* **Method :** POST
* **URL :** /BranchReport/ListReportL3
* **Body :**
```json
{
"request": {
"staffId": 0,
"reportType": 0,
"saleGroup": "string",
"productType": "string",
"region": "string",
"branch": "string",
"remarkType": "string",
"startDate": "2024-03-25T08:52:48.825Z",
"endDate": "2024-03-25T08:52:48.825Z",
"workType": "string",
"district": "string",
"saleId": "string",
"customerName": "string",
"workSubType": "string",
"saler": "string"
}
}
```
* **Response :**
```json
{
"id": 0,
"success": true,
"message": "string",
"errors": [
"string"
],
"responseObject": [
{
"rowNumber": 0,
"saleId": 0,
"region": "string",
"branchCode": "string",
"products": "string",
"productType": "string",
"departmentBranch": "string",
"departmentId": "string",
"salerName": "string",
"prefix": "string",
"guarantorFirstName": "string",
"guarantorLastName": "string",
"carRegistrationId": "string",
"carRegistrationType": "string",
"carRegistrationClass": 0,
"work": "string",
"activityName": "string",
"saleStatus": "string",
"saleAction": "string",
"saleRemark": "string",
"contactChannels": "string",
"employeeId": "string",
"policySenderName": "string",
"district": "string",
"subdistrict": "string",
"requestRemark": "string",
"actionStatus": "string",
"notificationDate": "string",
"coverageDate": "string",
"coverageDatePRB": "string",
"deliveryDate": "string",
"requestDate": "string",
"dueDate": "string",
"actionDate": "string",
"jobId": 0,
"completeOrSkip": "string",
"newOrOld": "string"
}
]
}
```
* **สถานะตอบกลับ :** **200 OK :** "Successful"
**List Report Group**
* **Method :** POST
* **URL :** /BranchReport/ListReportGroup
* **Body :**
``` json
{
"request": {
"staffId": 0,
"reportType": 0,
"productType": "string",
"region": "string",
"branch": "string",
"startDate": "2024-03-25T08:53:09.575Z",
"endDate": "2024-03-25T08:53:09.575Z",
"saler": "string"
}
}
```
* **Response :**
``` json
{
"id": 0,
"success": true,
"message": "string",
"errors": [
"string"
],
"responseObject": {
"reportData": [
{
"salerGroupId": 0,
"salerGroup": "string",
"shipmentsTotal": 0,
"newWorking": 0,
"newComplete": 0,
"newBeforeBranch": 0,
"newBeforePoint": 0,
"newAfter": 0,
"newTotal": 0,
"oldWorking": 0,
"oldComplete": 0,
"oldBeforeBranch": 0,
"oldBeforePoint": 0,
"oldAfter": 0,
"oldTotal": 0,
"otherWorking": 0,
"otherComplete": 0,
"otherBeforeBranch": 0,
"otherBeforePoint": 0,
"otherAfter": 0,
"otherTotal": 0
}
],
"totals": {
"totalWorkingAmount": 0,
"totalNewWorking": 0,
"totalNewComplete": 0,
"totalNewBeforeBranch": 0,
"totalNewBeforePoint": 0,
"totalNewAfter": 0,
"totalNewTotal": 0,
"totalOldWorking": 0,
"totalOldComplete": 0,
"totalOldBeforeBranch": 0,
"totalOldBeforePoint": 0,
"totalOldAfter": 0,
"totalOldTotal": 0,
"totalOtherWorking": 0,
"totalOtherComplete": 0,
"totalOtherBeforeBranch": 0,
"totalOtherBeforePoint": 0,
"totalOtherAfter": 0,
"totalOtherTotal": 0
}
}
}
```
* **สถานะตอบกลับ :** **200 OK :** "Successful"
**List Report Postponed**
* **Method :** POST
* **URL :** /BranchReport/ListReportPostponed
* **Body :**
```json
{
"request": {
"staffId": 0,
"reportType": 0,
"saleGroup": "string",
"productType": "string",
"region": "string",
"branch": "string",
"startDate": "2024-03-25T08:53:22.871Z",
"endDate": "2024-03-25T08:53:22.871Z",
"saler": "string"
}
}
```
* **Response :**
```json
{
"id": 0,
"success": true,
"message": "string",
"errors": [
"string"
],
"responseObject": {
"reportData": [
{
"unsuccessfulId": 0,
"unsuccessful": "string",
"shipmentsTotal": 0,
"newWorking": 0,
"newComplete": 0,
"newBeforeBranch": 0,
"newBeforePoint": 0,
"newAfter": 0,
"newTotal": 0,
"oldWorking": 0,
"oldComplete": 0,
"oldBeforeBranch": 0,
"oldBeforePoint": 0,
"oldAfter": 0,
"oldTotal": 0,
"otherWorking": 0,
"otherComplete": 0,
"otherBeforeBranch": 0,
"otherBeforePoint": 0,
"otherAfter": 0,
"otherTotal": 0
}
],
"totals": {
"totalWorkingAmount": 0,
"totalNewWorking": 0,
"totalNewComplete": 0,
"totalNewBeforeBranch": 0,
"totalNewBeforePoint": 0,
"totalNewAfter": 0,
"totalNewTotal": 0,
"totalOldWorking": 0,
"totalOldComplete": 0,
"totalOldBeforeBranch": 0,
"totalOldBeforePoint": 0,
"totalOldAfter": 0,
"totalOldTotal": 0,
"totalOtherWorking": 0,
"totalOtherComplete": 0,
"totalOtherBeforeBranch": 0,
"totalOtherBeforePoint": 0,
"totalOtherAfter": 0,
"totalOtherTotal": 0
}
}
}
```
* **สถานะตอบกลับ :** **200 OK :** "Successful"
**List Report Product**
* **Method :** POST
* **URL :** /BranchReport/ListReportProduct
* **Body :**
```json
{
"request": {
"staffId": 0,
"reportType": 0,
"saleGroup": "string",
"region": "string",
"branch": "string",
"startDate": "2024-03-25T08:53:48.140Z",
"endDate": "2024-03-25T08:53:48.140Z",
"saler": "string"
}
}
```
* **Response :**
```json
{
"id": 0,
"success": true,
"message": "string",
"errors": [
"string"
],
"responseObject": {
"reportData": [
{
"product": "string",
"shipmentsTotal": 0,
"newWorking": 0,
"newComplete": 0,
"newBeforeBranch": 0,
"newBeforePoint": 0,
"newAfter": 0,
"newTotal": 0,
"oldWorking": 0,
"oldComplete": 0,
"oldBeforeBranch": 0,
"oldBeforePoint": 0,
"oldAfter": 0,
"oldTotal": 0,
"otherWorking": 0,
"otherComplete": 0,
"otherBeforeBranch": 0,
"otherBeforePoint": 0,
"otherAfter": 0,
"otherTotal": 0
}
],
"totals": {
"totalWorkingAmount": 0,
"totalNewWorking": 0,
"totalNewComplete": 0,
"totalNewBeforeBranch": 0,
"totalNewBeforePoint": 0,
"totalNewAfter": 0,
"totalNewTotal": 0,
"totalOldWorking": 0,
"totalOldComplete": 0,
"totalOldBeforeBranch": 0,
"totalOldBeforePoint": 0,
"totalOldAfter": 0,
"totalOldTotal": 0,
"totalOtherWorking": 0,
"totalOtherComplete": 0,
"totalOtherBeforeBranch": 0,
"totalOtherBeforePoint": 0,
"totalOtherAfter": 0,
"totalOtherTotal": 0
}
}
}
```
* **สถานะตอบกลับ :** **200 OK :** "Successful"