atk4\data\tests\smbo\Payment::init PHP Méthode

init() public méthode

public init ( )
    public function init()
    {
        parent::init();
        $this->addCondition('doc_type', 'payment');
        $j_p = $this->j_payment = $this->join('payment.document_id');
        $j_p->addField('cheque_no');
        $j_p->hasOne('account_id', new Account());
        $j_p->addField('misc_payment', ['type' => 'bool']);
    }
Payment