消费申请/报销单关联

接口: /report/consume/correlation?businessCode={businessCode} GET JSON

请求参数

参数 类型 必须 默认值 主键 描述
businessCode string Y Y 消费申请单号

返回数据

参数 类型 描述
businessCode string 消费申请单编码
formSubType string 单据小类
cost_center string 成本中心
requestUserEmployeeNo string 申请人工号
departmentName string 部门
amount decimal 批准金额
subsidiaryBizCode string 业务实体编码
subsidiaryName string 业务实体
correlationPattern string 关联模式, 费用关联消费申请单据(FEE_TO_PRE_CONSUME),

消费申请费用(FEE_TO_PRE_CONSUME_FEE), 费用关联消费申请预算单元(FEE_TO_PRE_CONSUME_FEE_GROUP)|

当关联模式为 FEE_TO_PRE_CONSUME, 报销单费用与消费申请直接关联, 关联信息在correlations字段;

参数 类型 描述
correlations.expenseType string 报销费用类型编码
correlations.amountBase decimal 本币消费金额
correlations.amountOriginal decimal 原币消费金额
correlations.approvedAmount decimal 本币批准金额
correlations.currency currency 消费币种
correlations.formCode string 报销单号
correlations.formName string 报销名称
correlations.formStatus string 报销单状态

示例:

{
    "amount": 66,
    "correlationPattern": "FEE_TO_PRE_CONSUME",
    "expenses": null,
    "expenseGroups": null,
    "correlations": [
        {
            "currency": "CNY",
            "formCode": "BBB17081603",
            "formStatus": "DRAFT",
            "formName": "任务节点",
            "expense_type": "2001_01",
            "amount_base": 66,
            "amount_original": 66,
            "amount_approved": 66,
            "exchange_rate": 1,
            "exchange_date": 1502467200000
        }
    ],
    "businessCode": "MK7217080002",
    "reportType": "消费申请",
    "bill_type": "BC2EC1441895791145100003",
    "cost_center": "YF09",
    "reim_user_code": "999999990aaaaaaaaa",
    "subsidiary_code": "00001",
    "subsidiary_name": "每刻1"
}

当关联模式为 FEE_TO_PRE_CONSUME_FEE, 报销单费用与消费申请的费用关联, 关联信息在expenses.correlations字段中;

参数 类型 描述
expenses.feeCode string 消费申请费用编码
expenses.expenseType string 消费申请费用类型编码
expenses.amountBase decimal 消费申请费用申请金额
expenses.amountOriginal decimal 消费申请费用申请金额
expenses.approvedAmount decimal 消费申请费用申请金额
expenses.currency decimal 消费申请费用货币
expenses.exchangeRate decimal 消费申请费用本币和消费货币汇率
expenses.exchangeDate date 消费申请费用汇率计算日期
expenses.correlations.expenseType string 报销费用类型编码
expenses.correlations.amountBase decimal 本币消费金额
expenses.correlations.amountOriginal decimal 原币消费金额
expenses.correlations.approvedAmount decimal 本币批准金额
expenses.correlations.currency currency 消费币种
expenses.correlations.formCode string 报销单号
expenses.correlations.formName string 报销名称
expenses.correlations.formStatus string 报销单状态

示例:

{
    "amount": 2.22,
    "correlationPattern": "FEE_TO_PRE_CONSUME_FEE",
    "expenses": [
        {
            "currency": "CNY",
            "correlations": [{
                "currency": "CNY",
                "formCode": "MK17063901",
                "formStatus": "DRAFT",
                "formName": "机票",
                "expense_type": "2002_01",
                "amount_base": 2.22,
                "amount_original": 2.22,
                "amount_approved": 2.22,
                "exchange_rate": 1,
                "exchange_date": 1498579200000
                },
                {
                "currency": "CNY",
                "formCode": "MK17063802",
                "formStatus": "DRAFT",
                "formName": "机票",
                "expense_type": "2002_01",
                "amount_base": 2.22,
                "amount_original": 2.22,
                "amount_approved": 2.22,
                "exchange_rate": 1,
                "exchange_date": 1498579200000
            }],
            "report_line_id": "PFD170628ZKBUHOG",
            "expense_type": null,
            "amount_base": 2.22,
            "amount_original": 2.22,
            "amount_approved": 2.22,
            "exchange_rate": null,
            "exchange_date": 1498579200000
        }
    ],
    "expenseGroups": null,
    "correlations": null,
    "report_id": "117063801",
    "report_type": "消费申请",
    "bill_type": "PLC161221ZULXLHC",
    "cost_center": "DP1609081G44ZU9S",
    "reim_user_code": "k3",
    "subsidiary_code": "SU1609011JM6O0SG",
    "subsidiary_name": "张氏测试有限公司"
}

当关联模式为 FEE_TO_PRE_CONSUME_FEE_GROUP, 报销单费用与消费申请的费用关联, 关联信息在expenseGroups.correlations字段中;

参数 类型 描述
expenseGroups.correlations.expenseType string 报销费用类型编码
expenseGroups.correlations.amountBase decimal 本币消费金额
expenseGroups.correlations.amountOriginal decimal 原币消费金额
expenseGroups.correlations.approvedAmount decimal 本币批准金额
expenseGroups.correlations.currency currency 消费币种
expenseGroups.correlations.formCode string 报销单号
expenseGroups.correlations.formName string 报销名称
expenseGroups.correlations.formStatus string 报销单状态

示例:

{
    "amount": 100,
    "correlationPattern": "FEE_TO_PRE_CONSUME_FEE_GROUP",
    "expenses": null,
    "expenseGroups": [
        {
            "budgetaryAccountName": "三级科目",
            "budgetPeriodDesc": "2017年度第4月度预算期间",
            "budgetTargetName": "研发部",
            "correlations": 
            [{
                "currency": "CNY",
                "formCode": "BBB17081607",
                "formStatus": "DRAFT",
                "formName": "测试关联模式",
                "expense_type": "2001_01",
                "amount_base": 100,
                "amount_original": 100,
                "amount_approved": 100,
                "exchange_rate": 1,
                "exchange_date": 1503244800000
            }],
            "expenses": null
        }
    ],
    "correlations": null,
    "report_id": "MK7217081605",
    "report_type": "消费申请",
    "bill_type": "BC2EC1441895791145100003",
    "cost_center": "YF09",
    "reim_user_code": "999999990aaaaaaaaa",
    "subsidiary_code": "00001",
    "subsidiary_name": "每刻1"
}

results matching ""

    No results matching ""