Commit 4a7ecccd by 王昆

gsb

parent 31ddef8a
...@@ -453,6 +453,9 @@ class InvoiceCtl extends CtlBase { ...@@ -453,6 +453,9 @@ class InvoiceCtl extends CtlBase {
// 功能1 确定个体户开票 // 功能1 确定个体户开票
async confirmInvoice(params, pobj2, req) { async confirmInvoice(params, pobj2, req) {
try { try {
if (params.fee_type != "20") {
system.getResult(null, "费用类型错误");
}
let invoiceData = await this.buildTradeInvoice(params); let invoiceData = await this.buildTradeInvoice(params);
return invoiceData; return invoiceData;
} catch (error) { } catch (error) {
......
...@@ -17,7 +17,7 @@ class MerchantCtl extends CtlBase { ...@@ -17,7 +17,7 @@ class MerchantCtl extends CtlBase {
// 开票类型字典获取 // 开票类型字典获取
async feeTypeDic(params, pobj2, req) { async feeTypeDic(params, pobj2, req) {
try { try {
// params.forceUpdate = true; params.forceUpdate = true;
let feeType = await this.merchantSve.getFeeTypeWithCache(params); let feeType = await this.merchantSve.getFeeTypeWithCache(params);
let dic = [{"type": "00", "name": "注册订单付款"}, {"type": feeType, "name": "转账交易付款"}]; let dic = [{"type": "00", "name": "注册订单付款"}, {"type": feeType, "name": "转账交易付款"}];
return system.getResultSuccess(dic); return system.getResultSuccess(dic);
......
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