<?php

defined('BASEPATH') or exit('No direct script access allowed');

class Purchase_order_to_contact extends App_mail_template
{
    protected $for = 'contact';

    protected $data;

    public $slug = 'purchase-order-to-contact';

    public $rel_type = 'purchase_order';

    public function __construct($data)
    {
        parent::__construct();

        $this->data = $data;
        // For SMS and merge fields for email
        $this->set_merge_fields('purchase_order_merge_fields', $this->data);
    }
    public function build()
    {
        $this->to($this->data->mail_to)->set_rel_id($this->data->po_id);
    }
}
