sin yee's request: add email for debtor's export

This commit is contained in:
Edmond Lang
2025-08-06 21:34:15 +08:00
parent 523254f1a4
commit 66b631d8e5
@@ -71,6 +71,8 @@ class ExportsNullDebtors implements FromQuery, WithHeadings, WithHeadingRow, Wit
*/
public function map($company): array
{
$employee = $company->employees()->orderBy('id', 'DESC')->first();
return [
'<<New>>', // Code
'300-0000', // DebtorControlAcc
@@ -89,7 +91,7 @@ class ExportsNullDebtors implements FromQuery, WithHeadings, WithHeadingRow, Wit
'', // DeliverAddr2
'', // DeliverAddr3
'', // DeliverPostCode
'', // EmailAddress
$employee->email, // EmailAddress
'', // Attention
'', // Phone1
'', // Phone2