简要描述
- 功能
功能
- 权限标签
prj:invoice:save
- 新建 by zj 2022-03-10 11:14:22 星期四
- 修改 by llz 2022-03-11 17:07:10 星期五
请求字段添加invoiceTypeCode 发票类型编码
- 修改 by zj 2022-05-06 15:33:39 星期五
请求参数 添加 managerMemberId 经办人id
请求URL
{URL}/ent/invoice/batch/save
请求方式
请求参数
[{
"projectId":1223,
"fileId":1,
"itemName": "货物名称",
"invoiceDate":"开票时间",
"invoiceNumber":"代码",
"sellerName":"开票公司",
"purchaserName":"收票公司",
"invoiceType":"发票类型",
"unitPrice":11.1,
"quantity":1,
"remark":"摘要",
"taxRate":"税率",
"invoiceTax":11.1,
"invoiceAmountPreTax":11.1,
"totalAmount":11.1,
"invoiceTypeCode":"General ",
"managerMemberId":1,
"itemList":[{
"itemName":"货物名称",
"specification":"规格型号",
"unit":"单位",
"quantity":"123",
"unitPrice":"12.34",
"amount":"12.34",
"taxRate":"2.3%",
"tax":"123"
}]
},
{
"projectId":1223,
"fileId":1,
"itemName": "货物名称",
"invoiceDate":"开票时间",
"invoiceNumber":"代码",
"sellerName":"开票公司",
"purchaserName":"收票公司",
"invoiceType":"发票类型",
"unitPrice":11.1,
"quantity":1,
"remark":"摘要",
"taxRate":"税率",
"invoiceTax":11.1,
"invoiceAmountPreTax":11.1,
"totalAmount":11.1,
"invoiceTypeCode":"General ",
"managerMemberId":12,
"itemList":[{
"itemName":"货物名称",
"specification":"规格型号",
"unit":"单位",
"quantity":"123",
"unitPrice":"12.34",
"amount":"12.34",
"taxRate":"2.3%",
"tax":"123"
}]
}]
参数
参数名 |
必选 |
类型 |
说明 |
projectId |
是 |
num |
项目id |
fileId |
是 |
num |
发票文件id 关联x_aliyun_oss_upload |
itemName |
是 |
string |
货物名称 |
invoiceDate |
是 |
string |
开票时间 |
invoiceNumber |
是 |
string |
代码 |
sellerName |
是 |
string |
开票公司 |
purchaserName |
是 |
string |
收票公司 |
invoiceType |
是 |
string |
发票类型(普票、专票) |
unitPrice |
否 |
num |
单价 |
quantity |
否 |
num |
数量 |
remark |
否 |
string |
摘要 |
taxRate |
否 |
string |
税率 |
invoiceTax |
是 |
num |
进项税额 |
invoiceAmountPreTax |
是 |
num |
不含税价格 |
totalAmount |
是 |
num |
含税价格 |
managerMemberId |
否 |
num |
经办人id |
itemList |
否 |
list |
详情列表 |
itemName |
是 |
string |
货物或应税劳务、服务名称 |
specification |
否 |
string |
规格型号 |
unit |
否 |
string |
单位 |
quantity |
否 |
string |
数量 |
unitPrice |
否 |
string |
单价 |
amount |
否 |
string |
金额 |
taxRate |
否 |
string |
税率 |
tax |
否 |
string |
税额 |
invoiceTypeCode |
是 |
string |
发票类型编码 普票 General 专票 Special 其他Others |
返回示例
{
"code": 0,
"data": {},
"message": ""
}
返回参数说明
参数名 |
类型 |
说明 |
code |
int |
返回结果 0 成功 500 异常 |
message |
int |
返回信息 |
data |
object |
返回结果 |