hsun 2 년 전
부모
커밋
583095fd58
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 3
      controller/contract/register.go

+ 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 {