fix detsta download, fix card move card update

This commit is contained in:
2016-03-18 10:21:28 +01:00
parent 16d25abd7c
commit 1d5a5be5bf
8 changed files with 31 additions and 7 deletions

View File

@@ -24,7 +24,7 @@ class GiroBase {
$data = substr($data, 0, $hossz );
}
$data = str_pad($data, $hossz, $pad_string, STR_PAD_RIGHT);
echo $data;
//echo $data;
// echo strlen($data);
return $data;
}

View File

@@ -71,7 +71,7 @@ class GiroBeszed extends GiroBase {
$tetel->szamlaTulajdonosNeve = $customer->name;
$tetel->kozlemeny = "Fitness berlet. Megbizas azon: " . $request->id_ticket_installment_request;
return $tetel->toString();
return $tetel->toString();
}
public static function createLab($requests) {

View File

@@ -2,6 +2,7 @@
namespace common\components\giro;
use common\components\giro\GiroBase;
use yii\helpers\VarDumper;
/**
* @property common\components\giro\GiroUzenetsorszam $uzenetSorszam
* @property common\components\giro\GiroBankszamla $kotelezettBankszamla

View File

@@ -186,6 +186,12 @@ class Customer extends BaseFitnessActiveRecord
}
public function afterSave($insert, $changedAttributes){
if ( !$insert ){
Card::updateCardFlagTicket($this->id_customer_card);
}
}
}

View File

@@ -5,6 +5,7 @@ namespace common\models;
use Yii;
use yii\helpers\Url;
use yii\helpers\VarDumper;
use common\models\BaseFitnessActiveRecord;
/**
* This is the model class for table "log".
@@ -28,7 +29,7 @@ use yii\helpers\VarDumper;
* @property string $created_at
* @property string $updated_at
*/
class Log extends \yii\db\ActiveRecord
class Log extends BaseFitnessActiveRecord
{
public static $TYPE_INFO = 10;