Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Show changed files | Details | Compare with Previous | Blame | RSS feed

Filtering Options

Rev Age Author Path Log message Diff
37458 42 d 10 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 214 d 5 h aman /trunk/ Fix:Full stock payment approval for kamini ma'am add threshold , Mail shootting if no loi done and some improvement  
35971 215 d 4 h aman /trunk/ Feat : Loi 2.0 Enhancement and redesigning  
34085 652 d 4 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 679 d 11 h tejus.lohani /trunk/ purchase sele ratio further detail like model aging , on the click of catalog chart click  
33885 718 d 5 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 726 d 7 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 735 d 0 h tejus.lohani /trunk/ fix bm approval flow - loi generate after approval  
33845 735 d 10 h tejus.lohani /trunk/ new flow of Onboarding process and wod-fin report ,  
33712 773 d 13 h tejus.lohani /trunk/profitmandi-fofo/src/main/webapp/WEB-INF/views/ftl/ give cancellation option before loi signed  
33711 774 d 4 h tejus.lohani /trunk/ give cancellation option in loi form and status field in Excel report  
33710 774 d 7 h tejus.lohani /trunk/ Skip manual create Onboarding form function and give feature of alter agreed brand fee for special scenario  
33658 793 d 13 h tejus.lohani /trunk/ implement loi update feature and payment update feature , improve code , fix some bugs ,  
33617 807 d 4 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 815 d 9 h tejus.lohani /trunk/ Add acquired date field in Loi form and add doc verified and complete payment flag  
33578 816 d 6 h tejus.lohani /trunk/ add BrandFee collecting date in brandFeeCollection,Loi form ,loiFromData class , and fix some bugs(modal size , content size adjustment,etc),  
33577 816 d 11 h tejus.lohani /trunk/ fix Some bugs,Improve some Vm,Show pending LoiForm how fill the form and correct some spelling mistakes  
33559 821 d 10 h tejus.lohani /trunk/profitmandi-fofo/src/main/webapp/WEB-INF/views/ftl/ some Improvement in vm looks  
33525 830 d 8 h tejus.lohani /trunk/ Loi form related button visibility and some extra improvement  
33507 833 d 5 h tejus.lohani /trunk/ These files are related to Loi form and LOI form data flow to the required tables