mirror of
				https://github.com/crater-invoice/crater.git
				synced 2025-10-30 13:11:08 -04:00 
			
		
		
		
	update message and formatting
This commit is contained in:
		| @ -20,14 +20,8 @@ class CompanyCurrencyCheckTransactionsController extends Controller | ||||
|  | ||||
|         $this->authorize('manage company', $company); | ||||
|  | ||||
|         if ($company->hasTransactions()) { | ||||
|             return response()->json([ | ||||
|                 'success' => false, | ||||
|             ]); | ||||
|         } | ||||
|  | ||||
|         return response()->json([ | ||||
|             'success' => true, | ||||
|             'has_transactions' => $company->hasTransactions(), | ||||
|         ]); | ||||
|     } | ||||
| } | ||||
|  | ||||
| @ -26,7 +26,7 @@ class UpdateCompanySettingsController extends Controller | ||||
|         if ($companyCurrency !== $data['currency'] && $company->hasTransactions()) { | ||||
|             return response()->json([ | ||||
|                 'success' => false, | ||||
|                 'message' => 'You cannot change currency once transaction is created.' | ||||
|                 'message' => 'Cannot update company currency after transactions are created.' | ||||
|             ]); | ||||
|         } | ||||
|  | ||||
|  | ||||
		Reference in New Issue
	
	Block a user