add payment method colum and money total to backend/transfer/index

This commit is contained in:
2016-03-02 08:07:33 +01:00
parent 055fc541ea
commit 11abfc54f4
7 changed files with 63 additions and 16 deletions

View 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;
}
}