会计科目映射规则税额科目新增接口
接口 /accounting/subject/rule/tax/save POST JSON
Method:POST
数据格式:JSON
请求参数
参数 | 类型 | 必须 | 默认值 | 主键 | 描述 |
---|---|---|---|---|---|
ruleDtos | List<AccountingSubjectMappingTaxRuleDto> | Y | 属性类型对象AccountingSubjectMappingTaxRuleDto说明如下 |
参数 | 类型 | 必须 | 默认值 | 主键 | 描述 |
---|---|---|---|---|---|
ruleNo | string | Y | 编号:输入已有规则编号,将更新已有记录;主键,留空或0或其他整型数字编号,将新增该记录 | ||
taxRateScope | string | Y | 税率类型:可选值 1、OPEN 2、WHITE_LIST; OPEN表示全部,WHITE_LIST表示部分 | ||
taxRates | List<string> | Y | 税率类型编码:输入税率类型编码 | ||
subsidiaryScope | string | Y | 业务实体:可选值 1、OPEN 2、WHITE_LIST; OPEN表示全部,WHITE_LIST表示部分 | ||
subsidiaryCodes | List<string> | N | 业务实体编码:当业务实体值为WHITE_LIST时必填,输入业务实体编码 | ||
deductionSubjectGroupBizCode | string | Y | 会计科目表编码,只能输入一个表 | ||
deductionSubjectBusinessCode | string | Y | 科目:输入“末级科目代码”,只能输入一个科目 | ||
cashFlowName | string | N | 现金流量 | ||
cashFlowCode | string | N | 现金流量编码 | ||
transferSubjectGroupBizCode | string | Y | 转出会计科目表编码,只能输入一个表 | ||
transferSubjectBusinessCode | string | Y | 转出科目:输入“末级科目代码”,只能输入一个科目 | ||
transferCashFlowName | string | N | 转出现金流量 | ||
transferCashFlowCode | string | N | 转出流量编码 |
说明
税额科目规则接口新增的时候不校验重复性,如有需要可在页面进行重复性校验
- 返回数据
字段 | 类型 | 描述 |
---|---|---|
code | string | ACK:成功;NACK:失败 |
message | string | 错误提示 |
data | string | 部分成功的错误提示 |
- 请求示例:
{
"ruleDtos": [{
"ruleNo": "3",
"taxRateScope": "WHITE_LIST",
"taxRates": ["111","333"],
"subsidiaryScope": "OPEN",
"subsidiaryCodes": ["SD4564153","SD5D8WDAF"],
"deductionSubjectGroupBizCode": "dsfsdf",
"deductionSubjectBusinessCode": "AS190409XXANG8X",
"cashFlowName": "现金流量",
"cashFlowCode": "XJ001",
"transferSubjectGroupBizCode": "ASG5641516SDDSS",
"transferSubjectBusinessCode": "AS190409DXANGSF",
"transferCashFlowName": "现金流量2",
"transferCashFlowCode": "XJ002"
}, {
"ruleNo": "3",
"taxRateScope": "WHITE_LIST",
"taxRates": ["555","777"],
"subsidiaryScope": "OPEN",
"subsidiaryCodes": ["SD4564SD153","SD5D8WSDDAF"],
"deductionSubjectGroupBizCode": "ASG15SD15FCSFS",
"deductionSubjectBusinessCode": "AS190409XXANG8X",
"cashFlowName": "现金流量",
"cashFlowCode": "XJ001",
"transferSubjectGroupBizCode": "ASG5641FDDF6SDDSS",
"transferSubjectBusinessCode": "AS19040SAA1NGSF",
"transferCashFlowName": "现金流量3",
"transferCashFlowCode": "XJ003"
}]
}
返回数据(成功)
{
"code": "ACK",
"message": "",
"data": [],
"args": null,
"linkDetail": false,
"nonBizError": false
}
返回数据(部分成功)
{
"code": "ACK",
"message": "",
"data": [
"第2条规则中税率类型不存在;"
],
"args": null,
"linkDetail": false,
"nonBizError": false
}