| Line 689... |
Line 689... |
| 689 |
// 1. Reactivate the FofoStore behind the old code so orders / wallet / inventory
|
689 |
// 1. Reactivate the FofoStore behind the old code so orders / wallet / inventory
|
| 690 |
// start honoring the store again.
|
690 |
// start honoring the store again.
|
| 691 |
// 2. Wipe the previous partner-life's AGREEMENT_ESIGN + PO_CREATION + PO_APPROVAL
|
691 |
// 2. Wipe the previous partner-life's AGREEMENT_ESIGN + PO_CREATION + PO_APPROVAL
|
| 692 |
// timeline rows on the reused onboarding so the partner appears back on the
|
692 |
// timeline rows on the reused onboarding so the partner appears back on the
|
| 693 |
// agreement-esign panel and gaurav.sharma can re-verify a freshly signed doc.
|
693 |
// agreement-esign panel and gaurav.sharma can re-verify a freshly signed doc.
|
| 694 |
// 3. Wipe the AgreementEsign record so the upload widget starts blank.
|
- |
|
| 695 |
// No-op for NEW and ANY_OTHER LOIs.
|
694 |
// No-op for NEW and ANY_OTHER LOIs.
|
| 696 |
private void applyRevivalPaymentHooks(LoiForm loi) {
|
695 |
private void applyRevivalPaymentHooks(LoiForm loi) throws ProfitMandiBusinessException {
|
| 697 |
if (loi == null || loi.getOnboardingType() != OnboardingType.REVIVAL) return;
|
696 |
if (loi == null || loi.getOnboardingType() != OnboardingType.REVIVAL) return;
|
| 698 |
String oldCode = loi.getOldStoreCode();
|
697 |
String oldCode = loi.getOldStoreCode();
|
| 699 |
if (oldCode != null && !oldCode.trim().isEmpty()) {
|
698 |
if (oldCode != null && !oldCode.trim().isEmpty()) {
|
| 700 |
FofoStore store = fofoStoreRepository.selectByStoreCode(oldCode.trim());
|
699 |
FofoStore store = fofoStoreRepository.selectByStoreCode(oldCode.trim());
|
| 701 |
if (store != null && !store.isActive()) {
|
700 |
if (store != null && !store.isActive()) {
|