Пример #1
0
 public Integer getTotalExpense() {
   Integer result = 0;
   if (cacKhoanChi != null) {
     for (GiaoDich gd : cacKhoanChi) {
       result += gd.getSoTien();
     }
   }
   return result;
 }
Пример #2
0
 public Integer getTotalLoan() {
   Integer result = 0;
   if (cacKhoanChoVay != null) {
     for (GiaoDich gd : cacKhoanChoVay) {
       result += gd.getSoTien();
     }
   }
   return result;
 }
Пример #3
0
 public Integer getTotalIncome() {
   Integer result = 0;
   if (cacKhoanThu != null) {
     for (GiaoDich gd : cacKhoanThu) {
       result += gd.getSoTien();
     }
   }
   return result;
 }