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

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

@@ -694,15 +694,16 @@ class Member
             }
             if($temp){
                 $total = sprintf ('%01.2f',$sell - max($temp));
+            }else{
+                $total = sprintf ('%01.2f',$sell);
             }
         } else {
             $total = 0;
             foreach ($info as $key => $val) {
                 $total += $val['total'];
             }
+            $total = sprintf ('%01.2f',$total);
         }
-
-        $total = sprintf ('%01.2f',$sell);
         
         return $total;
     }