hsun 2 жил өмнө
parent
commit
583095fd58

+ 1 - 3
controller/contract/register.go

@@ -1369,9 +1369,7 @@ func (rg *RegisterController) InvoiceList(c *gin.Context) {
 	}
 	sumMap := make(map[string]float64)
 	for i := range sumList {
-		if sumList[i].CurrencyUnit == fms.BaseCurrencyCode {
-			amountTotal = sumList[i].AmountTotal
-		}
+		amountTotal += sumList[i].AmountTotal
 		sumMap[sumList[i].CurrencyUnit] = sumList[i].OriginAmountTotal
 	}
 	for i := range currencyTotals {