From 34465a4adf9b9f1d6b32d6c73332e6c3bf33a893 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Fri, 23 Jan 2026 10:38:44 +0530 Subject: [PATCH] Added invoice pending reason export --- app/Exports/InvoicePendingReasonExport.php | 48 ++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 app/Exports/InvoicePendingReasonExport.php diff --git a/app/Exports/InvoicePendingReasonExport.php b/app/Exports/InvoicePendingReasonExport.php new file mode 100644 index 0000000..237e04c --- /dev/null +++ b/app/Exports/InvoicePendingReasonExport.php @@ -0,0 +1,48 @@ +data = $data; + } + + public function array(): array + { + return $this->data; + } + + public function headings(): array + { + return [ + 'Plant Code', + 'Document Number', + 'Remark', + 'Customer Trade Name', + 'Location', + ]; + } + + public function map($row): array + { + return [ + $row['plant_id'] ?? '', + $row['document_number'] ?? '', + $row['remark'] ?? '', + $row['customer_trade_name'] ?? '', + $row['location'] ?? '', + ]; + } +}