Compare commits
5 Commits
785be70629
...
renovate/l
| Author | SHA1 | Date | |
|---|---|---|---|
| c7620c11b4 | |||
| 9ee4fe5c7e | |||
|
|
a7dee59f75 | ||
| 6f06319752 | |||
|
|
c10c256ec9 |
@@ -68,13 +68,21 @@ class SendInvoiceTransitReport extends Command
|
||||
'im.transport_name',
|
||||
DB::raw('CAST(im.transit_days AS INTEGER) as transit_days'),
|
||||
// DB::raw('(CURRENT_DATE - CAST(it.lr_bl_aw_date AS DATE)) as delayed_days')
|
||||
// DB::raw('
|
||||
// GREATEST(
|
||||
// 0,
|
||||
// (CURRENT_DATE - CAST(it.lr_bl_aw_date AS DATE) - 1)
|
||||
// - CAST(im.transit_days AS INTEGER)
|
||||
// ) AS delayed_days
|
||||
// ')
|
||||
DB::raw('
|
||||
GREATEST(
|
||||
0,
|
||||
(CURRENT_DATE - CAST(it.lr_bl_aw_date AS DATE) - 1)
|
||||
1,
|
||||
(CURRENT_DATE - CAST(it.lr_bl_aw_date AS DATE))
|
||||
- CAST(im.transit_days AS INTEGER)
|
||||
) AS delayed_days
|
||||
')
|
||||
|
||||
)
|
||||
->when($plantId != 0, fn($q) => $q->where('it.plant_id', $plantId))
|
||||
->whereNotNull('it.lr_bl_aw_date')
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
"laravel/sanctum": "^4.0",
|
||||
"laravel/tinker": "^2.9",
|
||||
"league/flysystem-sftp-v3": "^3.30",
|
||||
"livewire/livewire": "^3.6",
|
||||
"livewire/livewire": "^4.0",
|
||||
"maatwebsite/excel": "^3.1",
|
||||
"mike42/escpos-php": "^4.0",
|
||||
"mpdf/mpdf": "^8.2",
|
||||
|
||||
@@ -86,7 +86,7 @@
|
||||
<th>LR Number</th>
|
||||
<th>LR Date</th>
|
||||
<th>Transit Days</th>
|
||||
<th>Pending Days</th>
|
||||
<th>Overdue Days</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
Reference in New Issue
Block a user