mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal.git
synced 2026-08-19 04:24:12 +00:00
update listing mapping transaction
This commit is contained in:
-1
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user