|
@@ -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);
|