add contract
This commit is contained in:
@@ -5,13 +5,16 @@ namespace common\components\giro;
|
||||
use common\components\giro\GiroBase;
|
||||
|
||||
/**
|
||||
*
|
||||
* @property common\components\giro\GiroUzenetsorszam $uzenetSorszam
|
||||
* @property common\components\giro\GiroBankszamla $kezdemenyezoBankszamla
|
||||
*@property common\components\giro\GiroBeszedFej $fej
|
||||
*@property common\components\giro\GiroBeszedLab $lab
|
||||
*@property common\components\giro\GiroBeszedTetel[] $tetelek
|
||||
*
|
||||
*/
|
||||
class GiroBeszed extends GiroBase {
|
||||
|
||||
public $fej;
|
||||
public $lab;
|
||||
public $tetelek = [];
|
||||
|
||||
public function __construct() {
|
||||
}
|
||||
@@ -36,7 +39,7 @@ class GiroBeszed extends GiroBase {
|
||||
$fej->kezdemenyezoBankszamla->szamlaszam = \Yii::$app->params['ugiro_kezdemenyezo_szamlaszam']; // "5860025215371128";
|
||||
// $fej->kezdemenyezoBankszamla->bankszerv = "58600252"; // "TAKBHUHB";
|
||||
$fej->ertesitesiHatarido = "";
|
||||
$fej->kezdemenyezoCegNeve = \Yii::$app->params['company'];
|
||||
$fej->kezdemenyezoCegNeve = \Yii::$app->params['company_name'];
|
||||
|
||||
return $fej->toString ();
|
||||
}
|
||||
@@ -57,12 +60,12 @@ class GiroBeszed extends GiroBase {
|
||||
public static function createTetel($request,$sorszam,$terhelesiDatum) {
|
||||
$tetel = new GiroBeszedTetel ();
|
||||
$customer = $request->customer;
|
||||
$tetel->tetelSorszam = $sorszam;
|
||||
$tetel->tetelSorszam = $request->number;
|
||||
$tetel->terhelesiDatum = $terhelesiDatum;
|
||||
$tetel->osszeg = $request->money;
|
||||
// $tetel->kotelezettBankszamla->bankszerv = "58600252";
|
||||
$tetel->kotelezettBankszamla->szamlaszam = $customer->bank_account;
|
||||
$tetel->ugyfelazonositoAKezdemenyezonel = $request->id_ticket_installment_request;
|
||||
$tetel->ugyfelazonositoAKezdemenyezonel = $customer->id_customer;
|
||||
// $tetel->ugyfelNeve = "Schneider Roland";
|
||||
// $tetel->ugyfelCime = "Mosonmagyarovar, Gardonyi 31";
|
||||
$tetel->szamlaTulajdonosNeve = $customer->name;
|
||||
@@ -84,4 +87,18 @@ class GiroBeszed extends GiroBase {
|
||||
|
||||
return $lab->toString ();
|
||||
}
|
||||
|
||||
|
||||
public function toString( ) {
|
||||
$s = "";
|
||||
$s .= $this->fej->toString();
|
||||
|
||||
foreach ($this->tetelek as $tetel ){
|
||||
$s .= $tetel->toString();
|
||||
}
|
||||
|
||||
$s .= $this->lab->toString();
|
||||
return $s;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user