wugg 2 years ago
parent
commit
65a8da5ff3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/command/reportTips.php

+ 1 - 1
app/command/reportTips.php

@@ -51,7 +51,7 @@ class reportTips extends Command
         foreach ($tips as $key=>$value){
 			$t=[];
 			$t['p']=$value['department'];
-			$t['thtotal']=sprintf( "%.2f",$month_total[$key]??0 - $month_thtotal[$key]??0);
+			$t['thtotal']=sprintf( "%.2f",(($month_total[$key]??0) - ($month_thtotal[$key]??0)));
 			$t['mtotal']=sprintf( "%.2f",$month_total[$key]??0 );
 			$t['mthfee']=sprintf( "%.2f",$month_thtotal[$key]??0);
 			$t['wtotal']=sprintf( "%.2f",$week_total[$key]??0);