|
@@ -165,7 +165,7 @@ func DeleteInvoicePaymentSummaryByInvoiceIdAndPaymentId(invoiceId, arriveId, reg
|
|
|
|
|
|
// GetContractSummaryInvoicePaymentAmount 获取汇总金额合计信息
|
|
|
func GetContractSummaryInvoicePaymentAmount(condition string, pars []interface{}) (amountTotal float64, err error) {
|
|
|
- joinCond := `a.contract_register_id = b.contract_register_id `
|
|
|
+ joinCond := `a.register_id = b.contract_register_id `
|
|
|
|
|
|
query := global.DEFAULT_MYSQL.Table("invoice_payment_summary AS a").
|
|
|
Select("IFNULL(SUM(b.amount),0)").
|