Commit b3c2a0fe by 王昆

gsb

parent 1061be54
......@@ -92,9 +92,6 @@ class BusinessmenCtl extends CtlBase {
* @param {*} params
*/
async signing(pobj, pobj2, req) {
if (!pobj.hasOwnProperty('credit_code') && !pobj.credit_code) {
return system.getResult(null, `参数错误 同意社会信用代码不能为空`);
}
if (!pobj.hasOwnProperty('cost_rate') || isNaN(pobj.cost_rate)) {
return system.getResult(null, `参数错误 核定成本费用率不能为空并且必须为数字`);
}
......@@ -116,9 +113,7 @@ class BusinessmenCtl extends CtlBase {
if (!pobj.hasOwnProperty('tax_rate') || !pobj.tax_rate || isNaN(pobj.tax_rate)) {
return system.getResult(null, `参数错误 含税价百分比不能为空并且必须为数字`);
}
pobj.invoice_content = pobj.invoice_content || [];
try {
pobj.service_rate = system.y2f(pobj.service_rate);
pobj.tax_rate = system.y2f(pobj.tax_rate);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment