add reception account transfer/mixed

This commit is contained in:
2016-03-04 21:46:31 +01:00
parent da96c64348
commit ead52ae09b
18 changed files with 357 additions and 17 deletions

View File

@@ -135,6 +135,17 @@ class DailyListing
return $days_between > $days_visiblity;
}
/**
* cutler győr-ben a nap záráshoz ezt nyomtatjuk ki
* Ez a metódus csak akkor használható, ha csak ez a statisztika kell
* */
public function readMixed(){
$this->readProductsByCategory();
$this->readTicketStas();
$this->readMoneyMovements();
}
public function readTotalEasy(){
$this->readTicketMoney();
$this->readProductsMoney();

View File

@@ -254,6 +254,13 @@ class Helper {
public static function fixAsciiChars($in) {
$out = str_replace ( "ö", "0", $in );
$out = str_replace ( "Ö", "0", $out );
/*
$out = str_replace ( "Y", "%", $out );
$out = str_replace ( "y", "%", $out );
$out = str_replace ( "Z", "y", $out );
$out = str_replace ( "z", "y", $out );
$out = str_replace ( "%", "y", $out );
*/
return $out;
}
public static function isUserCartVisibilityUser() {
@@ -361,7 +368,7 @@ class Helper {
return $result;
}
public static function generateRandomString($length = 6,$characters = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ' ) {
public static function generateRandomString($length = 6,$characters = '0123456789ABCDEFGHIJKLMNOPQRSTUVWX' ) {
$charactersLength = strlen($characters);
$randomString = '';
for ($i = 0; $i < $length; $i++) {

View File

@@ -40,7 +40,8 @@ class AccountStateWidget extends Widget{
'user.username',
[
'attribute' => 'created_at',
'label' => 'Nyitás ideje'
'label' => 'Nyitás ideje',
'format' => 'datetime'
],
];
}else{
@@ -61,11 +62,13 @@ class AccountStateWidget extends Widget{
'user.username',
[
'attribute' => 'start_date',
'label' => 'Előző nyitás ideje'
'label' => 'Előző nyitás ideje' ,
'format' => 'datetime'
],
[
'attribute' => 'created_at',
'label' => 'Zárás ideje'
'label' => 'Zárás ideje',
'format' => 'datetime'
],
];
}
@@ -74,6 +77,7 @@ class AccountStateWidget extends Widget{
echo DetailView::widget([
'options' => ['class' => 'table table-striped table-bordered detail-view table-account-view'] ,
'model' => $this->model,
'attributes' =>$attributes,
]) ;

View File

@@ -27,6 +27,7 @@ class TotalDifferenceWidget extends Widget{
$ft = " Ft";
$s .= DetailView::widget([
'options' => ['class' => 'table table-striped table-bordered detail-view table-account-diff'],
'model' => $this->model,
'template' =>"<tr><th>{label}</th><td style='text-align: right;'>{value} </td></tr>",
'attributes' => [

View File

@@ -0,0 +1,9 @@
<?php
namespace common\components\total;
class TotalProductsByCategoryWidget extends TotalBaseWidget{
public $viewFile = 'total_product_by_category.php';
}