<?php

namespace App\Modules\Invoices;

class Quote extends AbstractInvoice
{
    /**
     *	Register events.
     */
    public static function boot()
    {
        parent::boot();

        // When a sale is created we want to
        // update the created_by field
        static::creating(function ($invoice) {
            $invoice->type = 'quote';
        });
    }
}
