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
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:
@@ -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',
|
||||
];
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user