fix detsta download, fix card move card update
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -186,6 +186,12 @@ class Customer extends BaseFitnessActiveRecord
|
||||
|
||||
}
|
||||
|
||||
public function afterSave($insert, $changedAttributes){
|
||||
if ( !$insert ){
|
||||
Card::updateCardFlagTicket($this->id_customer_card);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user