<?php

namespace KupShop\KupShopBundle\Email;

class OrderB2BCreateEmail extends OrderEmail
{
    protected static $name = 'Vytvoření nové B2B objednávky';
    protected static $type = 'ORDER_CREATE_B2B';
    protected static $priority = 10;

    protected $subject = 'Děkujeme za Vaši B2B objednávku {KOD}';
    protected $template = 'email/email_order_create.tpl';

    public static function isAllowed()
    {
        return findModule(\Modules::B2B);
    }

    public function sendEmail($message, $logComment = null)
    {
        return parent::sendEmail($message, $this->comment);
    }
}
