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 {