mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-10-31 03:57:29 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			25 lines
		
	
	
		
			428 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			428 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php namespace App\Models;
 | |
| 
 | |
| use Auth;
 | |
| use Illuminate\Database\Eloquent\SoftDeletes;
 | |
| 
 | |
| class TaxRate extends EntityModel
 | |
| {
 | |
|     use SoftDeletes;
 | |
|     protected $dates = ['deleted_at'];
 | |
| 
 | |
|     protected $fillable = [
 | |
|         'name',
 | |
|         'rate'
 | |
|     ];
 | |
| 
 | |
|     public function getEntityType()
 | |
|     {
 | |
|         return ENTITY_TAX_RATE;
 | |
|     }
 | |
|     
 | |
|     public function canEdit() {
 | |
|         return Auth::user()->hasPermission('admin');
 | |
|     }
 | |
| }
 |