add payment method colum and money total to backend/transfer/index
This commit is contained in:
19
common/components/DataProviderTotal.php
Normal file
19
common/components/DataProviderTotal.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
namespace common\components;
|
||||
|
||||
|
||||
class DataProviderTotal{
|
||||
|
||||
|
||||
|
||||
public static function pageTotal($provider, $fieldName)
|
||||
{
|
||||
$total=0;
|
||||
foreach($provider as $item){
|
||||
$total+=$item[$fieldName];
|
||||
}
|
||||
return $total;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user