Added ware house number to all plant related files
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled
Gemini PR Review / Gemini PR Review (pull_request) Has been cancelled
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Has been cancelled
Laravel Larastan / larastan (pull_request) Has been cancelled
Laravel Pint / pint (pull_request) Has been cancelled

This commit is contained in:
dhanabalan
2026-05-08 15:06:33 +05:30
parent e27871d0c0
commit a230208718
5 changed files with 83 additions and 16 deletions

View File

@@ -30,6 +30,8 @@ class PlantExporter extends Exporter
->label('CODE'),
ExportColumn::make('name')
->label('NAME'),
ExportColumn::make('warehouse_number')
->label('WAREHOUSE_NUMBER'),
ExportColumn::make('address')
->label('ADDRESS'),
ExportColumn::make('created_at')
@@ -44,10 +46,10 @@ class PlantExporter extends Exporter
public static function getCompletedNotificationBody(Export $export): string
{
$body = 'Your plant export has completed and ' . number_format($export->successful_rows) . ' ' . str('row')->plural($export->successful_rows) . ' exported.';
$body = 'Your plant export has completed and '.number_format($export->successful_rows).' '.str('row')->plural($export->successful_rows).' exported.';
if ($failedRowsCount = $export->getFailedRowsCount()) {
$body .= ' ' . number_format($failedRowsCount) . ' ' . str('row')->plural($failedRowsCount) . ' failed to export.';
$body .= ' '.number_format($failedRowsCount).' '.str('row')->plural($failedRowsCount).' failed to export.';
}
return $body;