Subversion Repositories SmartDukaan

Rev

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

Filtering Options

Rev Age Author Path Log message Diff
37819 8 d 19 h amit /trunk/profitmandi-fofo/src/main/ feat(loi): allow all Accounts users (L1-L4) to download Pending LOI Forms report  
37815 8 d 21 h amit /trunk/profitmandi-fofo/src/main/ feat(loi): allow Finance L1 (Accounts) to download Pending LOI Forms report  
37632 23 d 23 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
 
37556 29 d 22 h ranu /trunk/profitmandi-fofo/src/main/webapp/WEB-INF/views/ftl/ loi process added, revival and code changes process  
37458 41 d 0 h aman /trunk/profitmandi-fofo/src/main/ LOI payment screenshot: report upload failures instead of reporting the field as missing

Submit validated the hidden #payment-sc-docId, but a file input keeps displaying the
chosen filename regardless of what happens next - so a failed /document-upload left the
field looking attached to the operator and missing to the validator ("The following
fields are required: Payment screenshot" on a form that was in fact filled in).

The failure was silent three ways: doAjaxUploadRequestHandler had no error handler; the
global ajaxError reporter calls bootbox, which loads from cdnjs and throws if that is
blocked; and the confirm('Confirm file upload ?') gate returned false with no trace once
Chrome's "prevent this page from creating additional dialogs" box was ticked.

- common.js: optional error callback on doAjaxUploadRequestHandler (additive, opts out of
the generic global dialog via suppressGlobalError); uploadErrorMessage() extracts the
server's real reason from the JSON body or the plain-text duplicate-request body;
uploadDocument() pre-checks size/type, verifies a document_id actually came back, and
reports a message naming the file - .HEIC and .webp get specific guidance;
showAlert() falls back to native alert when bootbox is absent.
- loi-form.js: drop the confirm() gate, 'input' -> 'change', and clear the file input
whenever the id does not land so the widget can never claim an unuploaded file. Status
line under the field (Uploading... / Attached: name / Not attached). Submit now
distinguishes not-picked, still-uploading and upload-failed. Same treatment for the
OnboardingDocumentTable and mk_brand-fee-collection-details uploads, and the brand-fee
dialog names the Attachment field instead of echoing the raw form key.
- loi-form.vm, pendingForm.vm: accept="..." on both file inputs plus the status span.
- FileUploadController: reject empty files, report actual size against the actual limit,
and resolveExtension() falls back to the filename when the browser sends a generic MIME
type (Android file managers send application/octet-stream for ordinary JPG/PNG/PDF).
- AppConfig: static resource version 395 -> 396 for the JS change.
 
35977 212 d 19 h aman /trunk/ Fix:Full stock payment approval for kamini ma'am add threshold , Mail shootting if no loi done and some improvement  
35971 213 d 18 h aman /trunk/ Feat : Loi 2.0 Enhancement and redesigning  
34085 650 d 18 h tejus.lohani /trunk/ Store Potential must be greater than or equal to Wallet Value, Loi cancel button for HOD , change store type feature in pending loi form ,data table in wod-fin-mapping,expose code in wod status in wod-fin-mapping,remove xiaomi brand in dms code panel and wod-fin mapping report  
34018 678 d 1 h tejus.lohani /trunk/ purchase sele ratio further detail like model aging , on the click of catalog chart click  
33885 716 d 19 h tejus.lohani /trunk/ all Active brand show in upload noc for do active/inactive and now loi -form filler can attach payment screenshot in 1st and further payment so that approver can see payment attachment  
33869 724 d 21 h tejus.lohani /trunk/profitmandi-fofo/src/main/webapp/WEB-INF/views/ftl/ give hard_limit field in sd credit panal for tarun sir  
33848 733 d 14 h tejus.lohani /trunk/ fix bm approval flow - loi generate after approval  
33845 734 d 0 h tejus.lohani /trunk/ new flow of Onboarding process and wod-fin report ,  
33712 772 d 2 h tejus.lohani /trunk/profitmandi-fofo/src/main/webapp/WEB-INF/views/ftl/ give cancellation option before loi signed  
33711 772 d 17 h tejus.lohani /trunk/ give cancellation option in loi form and status field in Excel report  
33710 772 d 21 h tejus.lohani /trunk/ Skip manual create Onboarding form function and give feature of alter agreed brand fee for special scenario  
33658 792 d 3 h tejus.lohani /trunk/ implement loi update feature and payment update feature , improve code , fix some bugs ,  
33617 805 d 17 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 ,  
33582 813 d 22 h tejus.lohani /trunk/ Add acquired date field in Loi form and add doc verified and complete payment flag  
33578 814 d 19 h tejus.lohani /trunk/ add BrandFee collecting date in brandFeeCollection,Loi form ,loiFromData class , and fix some bugs(modal size , content size adjustment,etc),  

Show All