Compare commits
2 Commits
d1f170440c
...
3d404d93ef
| Author | SHA1 | Date | |
|---|---|---|---|
| 3d404d93ef | |||
|
|
aaaa021597 |
@@ -92,9 +92,14 @@ class SendImportTransit extends Command
|
|||||||
// ->where('status', '!=', 'Delivered')
|
// ->where('status', '!=', 'Delivered')
|
||||||
// ->get();
|
// ->get();
|
||||||
|
|
||||||
$tableData = ImportTransit::where('status', '!=', 'Delivered')->get();
|
$tableData = ImportTransit::where('status', '!=', 'Delivered')->orderByRaw("
|
||||||
|
CAST(
|
||||||
|
regexp_replace(cri_rfq_number, '.*-([0-9]+).*', '\\1')
|
||||||
|
AS INTEGER
|
||||||
|
)
|
||||||
|
")->get();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if ($tableData->isEmpty()) {
|
if ($tableData->isEmpty()) {
|
||||||
$this->info('No pending Import Transit records found. Mail skipped.');
|
$this->info('No pending Import Transit records found. Mail skipped.');
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user