Auto-fill entity from FRN in order intake_data, not just URL param
When intake loads from ?order=CO-xxx, the FRN is in the order's intake_data, not the URL. Now checks state.intake_data.frn and state.entity.frn as fallback sources for auto-fill. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
03c72a2525
commit
4125b0f09f
1 changed files with 6 additions and 3 deletions
|
|
@ -366,9 +366,12 @@
|
|||
intoInputs(state.entity || {});
|
||||
if (state.email) loadExisting();
|
||||
|
||||
// Auto-fill from ?frn= URL param (first load only)
|
||||
const urlFrn = new URLSearchParams(window.location.search).get("frn");
|
||||
if (urlFrn && !state.entity?.frn) {
|
||||
// Auto-fill from FRN (URL param, or from order's intake_data)
|
||||
const urlFrn = new URLSearchParams(window.location.search).get("frn")
|
||||
|| state.intake_data?.frn
|
||||
|| state.entity?.frn
|
||||
|| "";
|
||||
if (urlFrn && !state.entity?.legal_name) {
|
||||
autoFillFromFRN(urlFrn);
|
||||
}
|
||||
// Restore filing mode
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue