Subversion Repositories SmartDukaan

Rev

Show changed files | Details | Compare with Previous | Blame | RSS feed

Filtering Options

Rev Age Author Path Log message Diff
37632 21 d 6 h aman /trunk/ fix(loi): don't leave an LOI half signed when the signed PDF fails to save

Confirm Sign stores the partner OTP (/validateLoiOtp) before the browser builds and uploads the
signed PDF (/saveLoiDoc). When that second step failed - html2pdf not loaded from cdnjs, upload
rejected, tab closed, server error - nothing was shown, no LOI mail went out, no onboarding was
created, and because loiOtpPresent hid Generate LOI the filler could never re-sign (LOI 734).

- pendingFormList: loiOtpPresent only when OTP AND loiDoc are both saved; new loiSignIncomplete
flag shows a red "signed LOI not saved" note on the Pending LOI list (web + V2 app).
- loi-form.js Confirm Sign: every failure after the OTP says the LOI was NOT saved and how to
retry; checks html2pdf is loaded; success alert only after /saveLoiDoc confirms; no double submit.
- /saveLoiDoc (fofo + V2): refuses a document without a verified OTP; a repeat call for an
already saved LOI is a no-op (no second mail / completion).
- /validateLoiOtp (fofo + V2): clear message when no OTP was sent in 24h; reports the real
rejection reason (e.g. OTP already used) instead of always "wrong".
- sendSignedLoiPdfToPartner: filler without a manager no longer throws and rolls back the save.
- OtpProcessor.generateOtp: never hands back an already verified OTP under the 2-minute throttle.
- AppConfig version 423 for loi-form.js.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RhJD2sc6pf3Zd7f4hyGxhH
 
33848 730 d 21 h tejus.lohani /trunk/ fix bm approval flow - loi generate after approval  
33845 731 d 7 h tejus.lohani /trunk/ new flow of Onboarding process and wod-fin report ,  
33711 770 d 1 h tejus.lohani /trunk/ give cancellation option in loi form and status field in Excel report  
33658 789 d 10 h tejus.lohani /trunk/ implement loi update feature and payment update feature , improve code , fix some bugs ,  
33624 802 d 1 h tejus.lohani /trunk/ add SD GUIDE on partner dashboard and add some validation in loiForm like age(age>18 years) and collected brand fee (add payment below or same as Agreed brand fee) , and provide filled By name on completed-loi-form panel  
33617 803 d 1 h tejus.lohani /trunk/ develop document rejection mail , Add automailer when LoiForm complete and go to further process , create LoiForm report , for mail and download ,Payment status mail when payment accesp or reject ,  
33525 826 d 6 h tejus.lohani /trunk/ Loi form related button visibility and some extra improvement  
33507 829 d 2 h tejus.lohani /trunk/ These files are related to Loi form and LOI form data flow to the required tables