예제 #1
0
 protected function setVariableValues() {
 	parent::setVariableValues();
 	
 	$this->setVariable('vat_percentage', $this->payout->getVatPercentage());
 	$this->setVariable('vat_number', $this->payout->getVatNumber());
 	$this->setVariable('reg_number', $this->payout->getRegNumber());
 	$this->setVariable('payment_vat_part', $this->payout->getAmountVatPart());
 	$this->setVariable('payment_incl_vat', $this->payout->getAmountWithVat());
 	$this->setVariable('payment_excl_vat', $this->payout->getAmountWithoutWat());
 	$this->setVariable('invoicenumber', $this->payout->getInvoiceNumber());
 }    
예제 #2
0
    public function sendEmail() {
        if ($this->getApplyVat()) {
            $mailTemplate = new Pap_Mail_OnVATPayout();
        } else {
            $mailTemplate = new Pap_Mail_OnPayout();
        }
        $mailTemplate->setUser($this->user);
        $mailTemplate->setPayout($this);
        $mailTemplate->addRecipient($this->user->getEmail());

        $mailTemplate->send();
    }