ziwen 2 жил өмнө
parent
commit
bd97ab989c

+ 1 - 0
models/fms/contract_invoice.go

@@ -508,6 +508,7 @@ func GetInvoiceListCurrencySum(condition string, pars []interface{}, groupRule s
 	query := global.DEFAULT_MYSQL.Table("contract_invoice AS a").
 		Select("a.currency_unit, a.invoice_type, SUM(a.amount) AS amount_total, SUM(a.origin_amount) AS origin_amount_total, b.company_name").
 		Joins("JOIN contract_register b ON a.contract_register_id = b.contract_register_id").
+		Where("a.is_deleted = 0").
 		Where(condition, pars...).
 		Group(groupRule)
 	err = query.Find(&results).Error