update listing mapping transaction

This commit is contained in:
edmondlang
2023-07-18 11:54:27 +08:00
parent 8bb6f0317a
commit 09ab95faf8
2 changed files with 6 additions and 2 deletions
@@ -8,7 +8,6 @@ use App\Classes\Modules\Transactions\Services\ListsTransactions;
use App\Http\Resources\MappableTransactionWithDetailsResource;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Storage;
use Carbon\Carbon;
class ListMappableTransactionWithDetailsLogic extends AbstractControllerLogic
@@ -37,10 +37,15 @@ class MappableTransactionWithDetailsResource extends JsonResource
$bill_no = $this->bill_no;
}
else {
throw new Exception("Transaction Type not allowed");
// throw new Exception("Transaction Type not allowed");
return [
'status' => 'error',
'amount' => "Transaction Type not allowed",
];
}
return [
'status' => "success",
'id' => $this->id,
// 'owner_type' => $this->owner_type,
// 'owner_id' => $this->owner_type,