diff --git a/app/Http/Controllers/Account/AccountController.php b/app/Http/Controllers/Account/AccountController.php index bade0e6..a1488bc 100644 --- a/app/Http/Controllers/Account/AccountController.php +++ b/app/Http/Controllers/Account/AccountController.php @@ -79,12 +79,9 @@ public function update(string $locale, Request $request): RedirectResponse 'first_name' => $data['first_name'] ?? null, 'last_name' => $data['last_name'] ?? null, 'company_name' => $invoice ? $data['company_name'] : null, + 'tax_identifier' => $invoice ? $data['tax_identifier'] : null, ]); - // Written directly: core's updateProfile() allowlists `vat_no`, but - // Lunar's column is `tax_identifier`, so it can't go through there yet. - $customer->update(['tax_identifier' => $invoice ? $data['tax_identifier'] : null]); - if (filled($data['line_one'] ?? null)) { $addressData = [ ...collect($data)->only(self::ADDRESS_FIELDS)->all(),