rabin 3 years ago
parent
commit
6308c6681b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      service/agent/lib/Member.php

+ 2 - 2
service/agent/lib/Member.php

@@ -694,8 +694,6 @@ class Member
             }
             }
             if($temp){
             if($temp){
                 $total = sprintf ('%01.2f',$sell - max($temp));
                 $total = sprintf ('%01.2f',$sell - max($temp));
-            }else{
-                $total = sprintf ('%01.2f',$sell);
             }
             }
         } else {
         } else {
             $total = 0;
             $total = 0;
@@ -703,6 +701,8 @@ class Member
                 $total += $val['total'];
                 $total += $val['total'];
             }
             }
         }
         }
+
+        $total = sprintf ('%01.2f',$sell);
         
         
         return $total;
         return $total;
     }
     }