Merge pull request 'changed logic in edit rfq transporter page' (#151) from ranjith-dev into master
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled
Reviewed-on: #151
This commit was merged in pull request #151.
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
namespace App\Filament\Resources\RfqTransporterBidResource\Pages;
|
namespace App\Filament\Resources\RfqTransporterBidResource\Pages;
|
||||||
|
|
||||||
use App\Filament\Resources\RfqTransporterBidResource;
|
use App\Filament\Resources\RfqTransporterBidResource;
|
||||||
|
use App\Models\RequestQuotation;
|
||||||
use App\Models\RfqTransporterBid;
|
use App\Models\RfqTransporterBid;
|
||||||
use App\Models\SpotRateTransportMaster;
|
use App\Models\SpotRateTransportMaster;
|
||||||
use App\Models\User;
|
use App\Models\User;
|
||||||
@@ -25,15 +26,19 @@ class EditRfqTransporterBid extends EditRecord
|
|||||||
// dd($this->record);
|
// dd($this->record);
|
||||||
|
|
||||||
$rank = RfqTransporterBid::where('request_quotation_id', $this->record->request_quotation_id)
|
$rank = RfqTransporterBid::where('request_quotation_id', $this->record->request_quotation_id)
|
||||||
->where('spot_rate_transport_master_id', $this->record->spot_rate_transport_master_id)
|
|
||||||
->orderBy('total_freight_charge')
|
->orderBy('total_freight_charge')
|
||||||
->pluck('id')
|
->pluck('id')
|
||||||
->search($this->record->id) + 1;
|
->search($this->record->id) + 1;
|
||||||
|
|
||||||
$spotRate = SpotRateTransportMaster::findOrFail(
|
|
||||||
$this->record->spot_rate_transport_master_id
|
$requestQuotation = RequestQuotation::findOrFail(
|
||||||
|
$this->record->request_quotation_id
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$spotRateId = $requestQuotation->spot_rate_transport_master_id;
|
||||||
|
|
||||||
|
$spotRate = SpotRateTransportMaster::findOrFail($spotRateId);
|
||||||
|
|
||||||
$userNames = json_decode($spotRate->user_name, true);
|
$userNames = json_decode($spotRate->user_name, true);
|
||||||
|
|
||||||
if (!is_array($userNames)) {
|
if (!is_array($userNames)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user