44 lines
1.2 KiB
PHP
44 lines
1.2 KiB
PHP
<?php
|
|
namespace common\components\giro;
|
|
|
|
use common\components\giro\GiroBase;
|
|
/**
|
|
* @property common\components\giro\GiroUzenetsorszam $uzenetSorszam
|
|
* @property common\components\giro\GiroBankszamla $kotelezettBankszamla
|
|
* */
|
|
class GiroBeszedTetel extends GiroBase{
|
|
|
|
public $rekordTipus = "02";
|
|
public $tetelSorszam = 0;
|
|
public $terhelesiDatum = "";
|
|
public $osszeg;
|
|
public $kotelezettBankszamla;
|
|
public $ugyfelazonositoAKezdemenyezonel;
|
|
public $ugyfelNeve;
|
|
public $ugyfelCime;
|
|
public $szamlaTulajdonosNeve;
|
|
public $kozlemeny;
|
|
|
|
|
|
public function __construct(){
|
|
$this->kotelezettBankszamla = new GiroBankszamla();
|
|
}
|
|
|
|
public function toString(){
|
|
return $this->rekordTipus
|
|
. $this->szamKitolt($this->tetelSorszam,6)
|
|
. $this->terhelesiDatum
|
|
. $this->szamKitolt($this->osszeg, 10)
|
|
. $this->kotelezettBankszamla->toString()
|
|
. $this->szovegKitolt($this->ugyfelazonositoAKezdemenyezonel ,24)
|
|
. $this->szovegKitolt( $this->ugyfelNeve ,35 )
|
|
. $this->szovegKitolt($this->ugyfelCime , 35 )
|
|
. $this->szovegKitolt($this->szamlaTulajdonosNeve , 35 )
|
|
. $this->szovegKitolt($this->kozlemeny , 70 )
|
|
. $this->rekordVege()
|
|
;
|
|
|
|
}
|
|
|
|
|
|
} |