mirror of
				https://github.com/crater-invoice/crater.git
				synced 2025-10-31 05:31:10 -04:00 
			
		
		
		
	Minor fixes
This commit is contained in:
		| @ -47,4 +47,21 @@ class Currency extends Model | ||||
|     { | ||||
|         return $this->hasMany(RecurringInvoice::class); | ||||
|     } | ||||
|  | ||||
|     public function checkTransactions() | ||||
|     { | ||||
|         if ( | ||||
|             $this->customers()->exists() || | ||||
|             $this->items()->exists() || | ||||
|             $this->invoices()->exists() || | ||||
|             $this->estimates()->exists() || | ||||
|             $this->expenses()->exists() || | ||||
|             $this->payments()->exists() || | ||||
|             $this->recurringInvoices()->exists() | ||||
|         ) { | ||||
|             return true; | ||||
|         } | ||||
|  | ||||
|         return false; | ||||
|     } | ||||
| } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user