Merge pull request 'changed message in edit transporter page' (#154) from ranjith-dev into master
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 12s
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 12s
Reviewed-on: #154
This commit was merged in pull request #154.
This commit is contained in:
@@ -23,14 +23,11 @@ class EditRfqTransporterBid extends EditRecord
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 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)
|
||||||
->orderBy('total_freight_charge')
|
->orderBy('total_freight_charge')
|
||||||
->pluck('id')
|
->pluck('id')
|
||||||
->search($this->record->id) + 1;
|
->search($this->record->id) + 1;
|
||||||
|
|
||||||
|
|
||||||
$requestQuotation = RequestQuotation::findOrFail(
|
$requestQuotation = RequestQuotation::findOrFail(
|
||||||
$this->record->request_quotation_id
|
$this->record->request_quotation_id
|
||||||
);
|
);
|
||||||
@@ -65,7 +62,8 @@ class EditRfqTransporterBid extends EditRecord
|
|||||||
// $user1 = Filament::auth()->user();
|
// $user1 = Filament::auth()->user();
|
||||||
|
|
||||||
|
|
||||||
$body = "{$currentUser->name} current rank is #{$rank}";
|
$rfqNumber = $this->record->requestQuotation->rfq_number;
|
||||||
|
$body = "{$currentUser->name} has updated the bid for RFQ No '{$rfqNumber}'. The current rank is #{$rank}.";
|
||||||
|
|
||||||
// Notification::make()
|
// Notification::make()
|
||||||
// ->title('Rank Updated')
|
// ->title('Rank Updated')
|
||||||
@@ -80,7 +78,7 @@ class EditRfqTransporterBid extends EditRecord
|
|||||||
|
|
||||||
Notification::make()
|
Notification::make()
|
||||||
->title('Rank Updated')
|
->title('Rank Updated')
|
||||||
->body("{$currentUser->name} current rank is #{$rank}")
|
->body("{$currentUser->name} has updated the bid for RFQ No '{$rfqNumber}'. The current rank is #{$rank}.")
|
||||||
->success()
|
->success()
|
||||||
->sendToDatabase($users);
|
->sendToDatabase($users);
|
||||||
|
|
||||||
@@ -103,8 +101,6 @@ class EditRfqTransporterBid extends EditRecord
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function getHeaderActions(): array
|
protected function getHeaderActions(): array
|
||||||
|
|||||||
Reference in New Issue
Block a user