Commit d567c9e2 by 王昆

gsb

parent a781c844
......@@ -161,10 +161,10 @@ class InvoiceService extends ServiceBase {
return system.getResult(`发票不存在`);
}
//获取个体户信息 拿到customer 在order服务下 参数:通过merchant_credit_code或者是merchant_id (购买方商户)
if(!invoice.data.invoicesummaryinfo ||!invoice.data.invoicesummaryinfo.merchant_credit_code ){
if(!invoice.data.invoicesummaryinfo ||!invoice.data.invoicesummaryinfo.businessmen_credit_code ){
return system.getResult(`发票信息错误`);
}
let businessmen = await this.callms("order", "queryObusinessmenByCreditCode", {credit_code:invoice.data.invoicesummaryinfo.merchant_credit_code});
let businessmen = await this.callms("order", "queryObusinessmenByCreditCode", {credit_code:invoice.data.invoicesummaryinfo.businessmen_credit_code});
//获取交付商信息 拿到companyID 在common服务下 参数:通过deliver_id
if(!invoice.data.invoicedeliver[0].deliver_id){
return system.getResult(`交付商不存在`);
......
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