|
@@ -302,7 +302,7 @@ func (ct *SellerController) InvoiceList(c *gin.Context) {
|
|
|
totalCond += ` AND group_id IN (?) `
|
|
|
totalPars = append(totalPars, groupIds)
|
|
|
}
|
|
|
- sumCond := ` (invoice_type = ? OR invoice_type = ? ) AND is_deleted = 0 AND seller_id != 0 `
|
|
|
+ sumCond := ` (invoice_type = ? OR invoice_type = ? ) AND a.is_deleted = 0 AND a.seller_id != 0 `
|
|
|
sumPars := make([]interface{}, 0)
|
|
|
sumPars = append(sumPars, fms.ContractInvoiceTypeMake, fms.ContractInvoiceTypePreMake)
|
|
|
cond := ` (c.invoice_type = %d OR c.invoice_type = %d) AND c.is_deleted = 0 AND c.seller_id != 0 `
|