mirror of
https://github.com/crater-invoice/crater.git
synced 2025-12-15 01:42:54 -05: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(),
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user