mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-07 21:44:51 +00: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