changed content in invoice transit and table column structure
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 10s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 10s
Gemini PR Review / review (pull_request) Failing after 41s
Laravel Pint / pint (pull_request) Successful in 2m55s
Laravel Larastan / larastan (pull_request) Failing after 3m58s

This commit is contained in:
dhanabalan
2026-01-03 14:31:17 +05:30
parent ad91c848e5
commit 0852712dd9
3 changed files with 15 additions and 9 deletions

View File

@@ -44,7 +44,7 @@ class SendInvoiceTransitReport extends Command
? Plant::all()
: Plant::where('id', $plantId)->get();
$plantCodes = $plants->pluck('code', 'id');
$plantCodes = $plants->pluck('name', 'id');
if ($plants->isEmpty()) {
$this->error('No valid plant(s) found.');
@@ -63,6 +63,7 @@ class SendInvoiceTransitReport extends Command
'it.plant_id',
'it.receiving_plant_name',
'it.lr_bl_aw_date',
'it.lr_bl_aw_number',
'im.id as invoice_master_id',
'im.transport_name',
DB::raw('CAST(im.transit_days AS INTEGER) as transit_days'),
@@ -106,6 +107,7 @@ class SendInvoiceTransitReport extends Command
'invoice_number' => $item->invoice_number,
'transport_name' => $item->transport_name,
'lr_bl_aw_date' => $item->lr_bl_aw_date,
'lr_bl_aw_number' => $item->lr_bl_aw_number,
'transit_days' => $item->transit_days,
'status' => $item->delayed_days . ' Days',
];

View File

@@ -52,7 +52,9 @@ class InvoiceTransitMail extends Mailable
public function content(): Content
{
$greeting = 'Dear Sir/Madam,<br><br>We are sending here with list of pending sale invoices currently in transit.';
$greeting = '<b>Dear Service Provider</b>,<br><br>The following consignments to our branch warehouse are overdue beyond the agreed timeline.Immediate delivery is required today; Failure to complain will result to not able to fulfill customer requirements and leads to potential sales loss.Please treat this as the critical and confirm despatch without delay. <br><br><b> Dear C.R.I Branch Team,</b> <br><br> Please follow and ensure the same.';
//$greeting1 = 'Dear C.R.I Branch Team, <br><br> Please follow and ensure the same';
if (strtolower($this->scheduleType) == 'daily') {
@@ -73,8 +75,8 @@ class InvoiceTransitMail extends Mailable
$reportPeriod = "<br><br>"
. "Report Period: <b>{$startDate->format('d-m-Y')}</b> "
. "to <b>{$endDate->format('d-m-Y')}.</b>"
. "<br>Please arrange to receipt the same immediately.";
. "to <b>{$endDate->format('d-m-Y')}.</b>";
// . "<br>Please arrange to receipt the same immediately.";
$greeting .= $reportPeriod;
}

View File

@@ -78,26 +78,27 @@
<thead>
<tr>
<th>No</th>
<th>Plant Code</th>
<th>Receiving Plant Code</th>
<th>Plant Name</th>
<th>Receiving Plant Name</th>
<th>Invoice Number</th>
<th>Transport Name</th>
<th>LR_BL_AW Date</th>
<th>LR Number</th>
<th>LR Date</th>
<th>Transit Days</th>
<th>Status</th>
<th>Pending Days</th>
</tr>
</thead>
<tbody>
@foreach ($tableData as $row)
<tr>
<td>{{ $row['no'] }}</td>
<td>{{ $row['plant'] }}</td>
<td>{{ $row['receiving_plant'] }}</td>
<td>{{ $row['plant'] }}</td>
<td>{{ $row['receiving_plant_name'] }}</td>
<td>{{ $row['invoice_number'] }}</td>
<td class="td-left">{{ $row['transport_name'] }}</td>
<td>{{ $row['lr_bl_aw_number'] }}</td>
<td>
@if(!empty($row['lr_bl_aw_date']) && $row['lr_bl_aw_date'] != '-')
{{ \Carbon\Carbon::parse($row['lr_bl_aw_date'])->format('d-M-Y') }}
@@ -105,6 +106,7 @@
-
@endif
</td>
{{-- <td>{{ $row['lr_bl_aw_date'] }}</td> --}}
<td>{{ $row['transit_days'] }}</td>
<td>{{ $row['status'] }}</td>