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