预提台账查询接口

说明

该接口用于查询预提台账

请求类型

post

接口地址

/api/openapi/expense/accrual/standingbook/query/V2

请求参数

参数说明

字段名 类型 说明 必填性
requestUserEmployeeId string 查询人工号 必填
accrualPeriod string 预提期间格式:yyyy-MM 必填
accrualNum string 预提编号支持模糊搜索 非必填
status Array[String] 预提状态
枚举值:
OPEN 开启
CLOSED 关闭
INVALID 已作废
非必填
departmentBizCodeList Array[String] 筛选条件部门业务编码 非必填
expenseTypeBizCodeList Array[String] 筛选条件费用类型业务编码 非必填
legalEntityBizCodeList Array[String] 筛选条件公司抬头业务编码 非必填
start number 分页起始位置从0开始。默认0 必填
length number 分页条数默认20最大100 必填

headers:

字段名 类型 说明 必填性
lang String 语言环境 非必填 默认:zh
中文-zh
英文-en

参数示例

{
    "requestUserEmployeeId":"YYZ002",
    "accrualPeriod":"2021-12",
    "departmentBizCodeList": ["DP1"],
    "expenseTypeBizCodeList":["CORP001"],
    "legalEntityBizCodeList": ["ELC21042811WLNPXC"],
      "status":["OPEN"],
    "accrualNum": "",
    "start": 0,
    "length": 20
}

注:参数为空则代表全量搜索

响应参数

参数说明

字段名 类型 说明
hasNextPage boolean 是否有下一页
dataList Array[AccrualStandingBook] 预提台账

AccrualStandingBook

字段名 类型 说明
accrualNum string 预提编号
accrualPeriod string 预提期间格式:yyyy-MM
expenseTypeBizCode string 费用类型业务编码
expenseTypeName string 费用类型名称
legalEntityBizCode string 公司抬头业务编码
legalEntityName string 公司抬头名称
departmentBizCode string 预提部门业务编码
departmentName string 预提部门名称
coverUserEmployeeId string 归属人工号
coverUserName string 归属人姓名
accrualAmount AmountInput 预提金额
reversalAmount AmountInput 已冲销金额
pendingAmount AmountInput 未冲销金额
status string 预提状态
枚举值:
**OPEN** 开启
** CLOSED **关闭
**INVALID** 已作废
accrualFormCode string 预提单据号
formType string 枚举值:
REIMBURSE 报销单
PRECONSUME 预提单(申请单)
accrualVoucherStatus string 预提凭证生成状态
枚举值:
**GENERATE** 已生成
**NO_GENERATE** 未生成
accrualVoucherNum string 预提凭证编号
variance bool 有无差异
VarianceAmount 差异
varianceVoucherNum string 差异凭证编号
coveredRecords Array[CoveredRecord] 核销记录
coveredRecords Array[CoveredRecord] 核销记录
tradingPartnerBizCode string 往来单位bizCode
tradingPartnerName string 往来单位名称

CoveredRecord

字段名 类型 说明
expenseTypeBizCode string 费用类型业务编码
expenseTypeName string 费用类型名称
consumeTime number 消费时间13位时间戳
reversalAmount AmountInput 核销金额
formCode string 关联单据号
reversalVoucherState string 核销凭证生成状态
reversalVoucherNum string 核销凭证编号
lastReversal boolean 是否为最后一次核销

参数示例

{
    "code": "ACK",
    "message": "",
    "data": {
        "hasNextPage": true,
        "dataList": [
            {
                "accrualNum": "YuTi202112310004",
                "accrualPeriod": "2021-12",
                "expenseTypeBizCode": null,
                "expenseTypeName": "对私预提费用类型",
                "legalEntityBizCode": "ELC2105201HOC0RNK",
                "legalEntityName": "GJM测试专用U8V12抬头",
                "departmentBizCode": "devolop",
                "departmentName": "研发部",
                "coverUserEmployeeId": "G001",
                "coverUserName": "小明",
                "tradingPartnerBizCode": "AAddd",
                "tradingPartnerName": "高架道路寄过来的",
                "accrualAmount": {
                    "amount": 240.00,
                    "currency": "CNY",
                    "customExchangeRate": 1,
                    "amountStr": "¥240.00"
                },
                "reversalAmount": {
                    "amount": 0.00,
                    "currency": "CNY",
                    "customExchangeRate": 1,
                    "amountStr": "¥0.00"
                },
                "pendingAmount": {
                    "amount": 240.00,
                    "currency": "CNY",
                    "customExchangeRate": 1,
                    "amountStr": "¥240.00"
                },
                "status": "OPEN",
                "accrualFormCode": "MK21120320",
                "accrualVoucherStatus": "GENERATE",
                "accrualVoucherNum": "VIN2112311FN5DDS0",
                "variance": false,
                "VarianceAmount": null,
                "varianceVoucherNum": "",
                "coveredRecords": []
            },
            {
                "accrualNum": "YuTi202112310003",
                "accrualPeriod": "2021-12",
                "expenseTypeBizCode": null,
                "expenseTypeName": "对私预提费用类型",
                "legalEntityBizCode": "ELC2105201HOC0RNK",
                "legalEntityName": "GJM测试专用U8V12抬头",
                "departmentBizCode": "devolop",
                "departmentName": "研发部",
                "coverUserEmployeeId": "G001",
                "coverUserName": "小明",
                "tradingPartnerBizCode": "AAddd",
                "tradingPartnerName": "高架道路寄过来的",
                "accrualAmount": {
                    "amount": 240.00,
                    "currency": "CNY",
                    "customExchangeRate": 1,
                    "amountStr": "¥240.00"
                },
                "reversalAmount": {
                    "amount": 0.00,
                    "currency": "CNY",
                    "customExchangeRate": 1,
                    "amountStr": "¥0.00"
                },
                "pendingAmount": {
                    "amount": 240.00,
                    "currency": "CNY",
                    "customExchangeRate": 1,
                    "amountStr": "¥240.00"
                },
                "status": "INVALID",
                "accrualFormCode": "MK21120320",
                "accrualVoucherStatus": "NO_GENERATE",
                "accrualVoucherNum": null,
                "variance": false,
                "VarianceAmount": null,
                "varianceVoucherNum": "",
                "coveredRecords": []
            }
        ]
    },
    "errorCode": null,
    "success": true
}

更新说明

Copyright © 杭州每刻科技有限公司 www.maycur.com all right reserved,powered by Gitbook该文件修订时间: 2024-11-20 10:52:00

results matching ""

    No results matching ""

    results matching ""

      No results matching ""