Rev 36951 |
Last modification |
Compare with Previous |
View Log
| RSS feed
Last modification
- Rev 36953 2026-06-29 13:37:53
- Author: aman
- Log message:
- Auto-link existing store code to onboarding panel when verification approved after fofo_store creation
When a partner's verification flips to YES after their fofo_store was already
created, the linkage in RetailerServiceImpl.createFofoStoreCodeByRetailerId
(which only fires on NEW store creation) never copies fofo_store.code to
partner_onboarding_panel.code, so the store code never appears on the panel and
the app cannot self-heal it (e.g. onboarding 1892 / PBTTN1583).
Add a robust fallback in the approval handler: when status becomes YES and the
panel code is still empty, resolve the retailer via the saholic UserAccount
(same path as createFofoStoreCodeByUserId), copy the existing fofo_store.code,
and write the STORE_CODE_CREATED timeline. Does not require KYC (copying an
already-generated code, not creating one) and is wrapped so it can never break
the approval flow.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>