Subversion Repositories SmartDukaan

Rev

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

Filtering Options

Rev Age Author Path Log message Diff
37846 4 d 10 h amit /trunk/profitmandi-fofo/src/main/ feat(warehouse): dashboards list ACTIVE warehouses only, warehouse-team screens ACTIVE+SUSPENDED (from BillingWarehouseService, WAREHOUSE_MAP gone); global $warehouseNames for labels of data rows in any state; Sellers & Warehouses screen: all-warehouse overview with status tabs, 3-state status, rename, stock/unshipped orders/stores/mapping usage, send stock alert; partner zone offers active warehouses only; brand stock 'All' = active warehouses (replaces r37838 loop); jsVersion 442  
37494 38 d 13 h amit /trunk/profitmandi-fofo/src/main/webapp/WEB-INF/views/ftl/ Fix: namespace document-level handlers in re-injected vm fragments

Same defect class as r37493. These fragments are injected with .html(),
which re-executes their inline <script>, so every load stacked another
$(document) delegated handler. One click then fired N identical requests;
PostInterceptor claimed the first and rejected the rest as duplicates.

Confirmed in prod today: beat-plan-day-view #avSubmit produced bursts of
3-4 rejections on POST /beatPlan/assignVisit/submit. The other four are the
same shape - chart-filter-lms, franchisee-account-creation and beat-plan-bulk
re-inject themselves directly, placement-plan-details does so indirectly by
clicking .search-partner-stock after createPo.

Adopt the create-purchase-return.vm convention: one $(document).off('.ns')
before the first binding, every event namespaced. Only the newest binding
survives, which also fixes handlers holding a stale Velocity closure from a
previously rendered record.

Behaviour-preserving: the only changes are the namespace suffix on 22 event
strings plus the five off() calls. Selectors, handlers and ordering untouched.

Read-only self-injecting fragments (activation-tabular, catalog,
partner-onboarding-*, etc) still stack handlers but only fire GETs, which are
never deduped - left for a separate pass.
 
36442 161 d 15 h amit /trunk/profitmandi-fofo/src/ Rename monitor type 'normal' to 'base' in controller, validator, UI, and tests  
36404 165 d 14 h amit /trunk/profitmandi-fofo/src/ Add catalog monitor type upload, sample sheet, Placement Plan UI tagging (orange/yellow), Today PO csv column, placement-plan-statement.xlsx header coloring  
36080 197 d 9 h aman /trunk/profitmandi-fofo/src/main/ Fix:Replace "FOFO/FOCO/COCO" with "Partner" — Visual Only  
30085 1687 d 11 h amit.gupta /trunk/ Fixed ahead issue  
30082 1687 d 16 h amit.gupta /trunk/profitmandi-fofo/src/main/webapp/WEB-INF/views/ftl/ Fixed ahead issue  
30080 1687 d 17 h amit.gupta /trunk/ Fixed ahead issue  
29103 1864 d 10 h tejbeer /trunk/ change  
28870 1887 d 19 h tejbeer /trunk/profitmandi-fofo/src/main/webapp/  
28807 1895 d 5 h tejbeer /trunk/ change  
28589 1915 d 17 h tejbeer /trunk/profitmandi-fofo/src/main/webapp/WEB-INF/views/ftl/ chnage  
28523 1928 d 13 h tejbeer /trunk/profitmandi-fofo/src/main/webapp/WEB-INF/views/ftl/  
28486 1945 d 9 h tejbeer /trunk/  
28477 1945 d 14 h tejbeer /trunk/ chnage  
28476 1946 d 7 h tejbeer /trunk/profitmandi-fofo/src/main/webapp/WEB-INF/views/ftl/  
28475 1946 d 7 h tejbeer /trunk/profitmandi-fofo/src/main/webapp/WEB-INF/views/ftl/  
28474 1946 d 7 h tejbeer /trunk/ chnage  
28085 2032 d 10 h tejbeer /trunk/ change  
28057 2033 d 17 h tejbeer /trunk/profitmandi-fofo/src/main/webapp/WEB-INF/views/ftl/  
28053 2034 d 17 h tejbeer /trunk/ change  
28036 2037 d 16 h tejbeer /trunk/ chnage  
28032 2038 d 10 h tejbeer /trunk/ change  
28020 2038 d 18 h tejbeer /trunk/ change  
28005 2040 d 10 h tejbeer /trunk/profitmandi-fofo/src/main/webapp/