|
@@ -483,6 +483,7 @@ func (this *Invoice) ShowinvoiceList() {
|
|
"order_code": order_code,
|
|
"order_code": order_code,
|
|
})+1 >= config.InvoiceConfig.SubmitNum
|
|
})+1 >= config.InvoiceConfig.SubmitNum
|
|
}
|
|
}
|
|
|
|
+ data["only_Identifying"] = encrypt.SE.EncodeString(qutil.InterfaceToStr(data["only_Identifying"]))
|
|
data["isReopen"] = isReopen
|
|
data["isReopen"] = isReopen
|
|
invoiceData = append(invoiceData, data)
|
|
invoiceData = append(invoiceData, data)
|
|
}
|
|
}
|
|
@@ -528,6 +529,7 @@ func (this *Invoice) NewInvoiceShow() {
|
|
invoice := util.Mysql.FindOne("invoice", map[string]interface{}{"id": encrypt.SE.Decode4Hex(code)}, "id,only_Identifying,order_code,invoice_money,remark,invoice_type,invoice_content,invoice_variety,company_name,phone,mail,taxpayer_identnum,invoice_money,invoice_order_money,company_address,bank_name,recipient,delivery_address,bank_account,company_phone", "")
|
|
invoice := util.Mysql.FindOne("invoice", map[string]interface{}{"id": encrypt.SE.Decode4Hex(code)}, "id,only_Identifying,order_code,invoice_money,remark,invoice_type,invoice_content,invoice_variety,company_name,phone,mail,taxpayer_identnum,invoice_money,invoice_order_money,company_address,bank_name,recipient,delivery_address,bank_account,company_phone", "")
|
|
if invoice != nil {
|
|
if invoice != nil {
|
|
(*invoice)["id"] = code
|
|
(*invoice)["id"] = code
|
|
|
|
+ (*invoice)["only_Identifying"] = encrypt.SE.EncodeString(qutil.InterfaceToStr((*invoice)["only_Identifying"]))
|
|
}
|
|
}
|
|
data["invoice"] = invoice
|
|
data["invoice"] = invoice
|
|
}
|
|
}
|
|
@@ -1390,13 +1392,14 @@ func IsAllowInvoice(res map[string]interface{}) bool {
|
|
filter := qutil.ObjToString(res["filter"].(string))
|
|
filter := qutil.ObjToString(res["filter"].(string))
|
|
filter_map := map[string]interface{}{}
|
|
filter_map := map[string]interface{}{}
|
|
_ = json.Unmarshal([]byte(filter), &filter_map)
|
|
_ = json.Unmarshal([]byte(filter), &filter_map)
|
|
- if qutil.IntAll(res["order_status"]) == 1 && qutil.InterfaceToStr(filter_map["badge"]) != "exchange" &&
|
|
|
|
- //用户下单|| 代用户下单|| qmx下单 已全额回款 发票企业为剑鱼
|
|
|
|
- (qutil.IntAll(res["is_backstage_order"]) == 0 || qutil.InterfaceToStr(res["order_channel"]) == "xdqd04" ||
|
|
|
|
- (qutil.IntAll(res["return_status"]) == 1 && util.Mysql.Count("invoice", map[string]interface{}{
|
|
|
|
- "order_code": res["order_code"],
|
|
|
|
- }) == 0 && qutil.InterfaceToStr(res["signing_subject"]) == "h01")) {
|
|
|
|
- return true
|
|
|
|
|
|
+ if qutil.IntAll(res["order_status"]) == 1 && qutil.InterfaceToStr(filter_map["badge"]) != "exchange" {
|
|
|
|
+ //用户下单|| 代用户下单
|
|
|
|
+ if qutil.IntAll(res["is_backstage_order"]) == 0 || qutil.InterfaceToStr(res["order_channel"]) == "xdqd04" {
|
|
|
|
+ return len(ShowList(qutil.InterfaceToStr(res["order_code"]))) == 0
|
|
|
|
+ } else { //qmx下单 已全额回款 发票企业为剑鱼
|
|
|
|
+ return qutil.IntAll(res["return_status"]) == 1 && qutil.InterfaceToStr(res["signing_subject"]) == "h01" &&
|
|
|
|
+ len(ShowList(qutil.InterfaceToStr(res["order_code"]))) == 0
|
|
|
|
+ }
|
|
}
|
|
}
|
|
return false
|
|
return false
|
|
}
|
|
}
|
|
@@ -1421,6 +1424,8 @@ func (this *Invoice) Available() {
|
|
status = 1
|
|
status = 1
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ } else {
|
|
|
|
+ status = 1
|
|
}
|
|
}
|
|
}
|
|
}
|
|
this.ServeJson(map[string]interface{}{
|
|
this.ServeJson(map[string]interface{}{
|