|
@@ -1622,6 +1622,9 @@ func JyOpenInvoice(orderCode, userId string, data map[string]interface{}) error
|
|
|
}*/
|
|
|
invoicedMoney := InvoiceAmount(orderCode) //已开票金额
|
|
|
invoiceMoney := qutil.Int64All((*orderInfo)["pay_money"]) - invoicedMoney
|
|
|
+ if invoiceMoney == 0 {
|
|
|
+ return errors.New("开票金额已用完")
|
|
|
+ }
|
|
|
data["order_code"] = orderCode
|
|
|
data["invoice_order_code"] = orderCode
|
|
|
data["only_Identifying"] = onlyIdentifying
|