Subversion Repositories SmartDukaan

Rev

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

Filtering Options

Rev Age Author Path Log message Diff
37493 37 d 9 h amit /trunk/profitmandi-fofo/src/main/ Fix: scheme item inline date edit fired N duplicate PUTs per click

scheme-details.vm is injected with .html(), which re-executes its inline
<script>, and a successful save re-injects it - so each load stacked another
$(document) handler for .edit/.cancel/.save-item-dates. One Save click then
fired N identical PUT /scheme/item/window, and PostInterceptor rejected all
but the first with 'Duplicate request.' (27 per click in prod today).
The stacked copies also carried a stale $scheme closure, so a save could
repaint the container with a previously viewed scheme.

Move the handlers to scheme.js (loaded once via include-scripts.vm) and read
the scheme id/window from data- attributes on the fragment root, keeping them
stateless. Fragment is now markup only.

Reuse cleanup while in here:
- configureMultiselect() replaces 3 near-identical multiselect configs
- loadBrandsByCategory/loadCatalogDescriptionByBrands take an optional
afterRender so the add-item modal reuses them instead of duplicating both
- toggleItemDateEdit()/initSingleDatePicker() collapse mirrored blocks
- SCHEME_DETAILS_CONTAINER single-sources the container id
- drop the template's duplicate toIsoDateTime (scheme.js already had it)
- updateSchemeItemWindow() now prefixes context like every other call

Bump jsVersion 409 -> 410.
 
36421 163 d 3 h amit /trunk/profitmandi-fofo/src/main/webapp/ Feat:Scheme item date window — per-item start/end dates with inline editing, category→brand→model cascade in add-item modal, duplicate detection, full-width layout  
35252 338 d 10 h aman /trunk/ Feat:Expire Schemes by ids and lead assign to bgc too  
34587 506 d 3 h vikas.jangra /trunk/profitmandi-fofo/src/main/ Scheme notification  
34575 509 d 5 h vikas.jangra /trunk/ Liquidation/Bidding auto approval  
32331 1151 d 10 h amit.gupta /trunk/ Added changes related to schemes  
32299 1162 d 5 h jai.hind /trunk/profitmandi-fofo/src/main/ In Finance Automate Process SellIn SellOut  
31762 1288 d 6 h tejbeer /trunk/ ticket and imei wise scheme related changes  
30599 1583 d 2 h amit.gupta /trunk/profitmandi-fofo/src/main/ Fixed ahead issue  
30501 1596 d 9 h amit.gupta /trunk/profitmandi-fofo/src/main/webapp/resources/js/ Fixed ahead issue  
30492 1597 d 1 h amit.gupta /trunk/ Added Category option  
30253 1653 d 2 h amit.gupta /trunk/ Fixed issue with Scheme  
30148 1676 d 8 h amit.gupta /trunk/ Fixed scheme creation  
30122 1678 d 5 h amit.gupta /trunk/ Fixed issue  
30054 1692 d 6 h manish /trunk/profitmandi-fofo/src/main/webapp/resources/js/  
29762 1739 d 10 h amit.gupta /trunk/profitmandi-fofo/src/main/webapp/resources/js/  
29761 1739 d 11 h amit.gupta /trunk/profitmandi-fofo/src/main/webapp/resources/js/  
29760 1739 d 11 h amit.gupta /trunk/profitmandi-fofo/src/main/webapp/resources/js/  
29759 1739 d 11 h amit.gupta /trunk/profitmandi-fofo/src/main/webapp/resources/js/  
29586 1788 d 9 h manish /trunk/profitmandi-fofo/src/main/webapp/resources/js/ commit  
28795 1896 d 7 h tejbeer /trunk/ change  
28134 2017 d 7 h tejbeer /trunk/profitmandi-fofo/src/main/ change  
27875 2046 d 6 h amit.gupta /trunk/profitmandi-fofo/src/main/webapp/ Aded  
27801 2064 d 3 h amit.gupta /trunk/profitmandi-fofo/src/main/webapp/resources/js/  
27800 2064 d 3 h amit.gupta /trunk/profitmandi-fofo/src/main/webapp/  
27798 2064 d 4 h amit.gupta /trunk/profitmandi-fofo/src/main/webapp/resources/js/  
27755 2068 d 2 h amit.gupta /trunk/profitmandi-fofo/src/main/webapp/resources/js/ Fixed live with on  
27754 2068 d 3 h amit.gupta /trunk/profitmandi-fofo/src/main/webapp/resources/js/ Fixed live with on  
27654 2092 d 8 h tejbeer /trunk/profitmandi-fofo/src/main/webapp/resources/js/ change  
27648 2092 d 9 h tejbeer /trunk/profitmandi-fofo/src/main/ change  
27094 2200 d 4 h tejbeer /trunk/profitmandi-fofo/src/main/webapp/ change  
26912 2251 d 1 h tejbeer /trunk/ change  
26802 2289 d 7 h tejbeer /trunk/ change  
26763 2299 d 20 h tejbeer /trunk/ change  
26497 2382 d 7 h amit.gupta /trunk/profitmandi-fofo/src/main/webapp/resources/js/  
25069 2670 d 9 h amit.gupta /trunk/ Fixed scheme expiry logic  
23928 3003 d 11 h govind /trunk/profitmandi-fofo/src/main/ add multiple scheme to single item or vice versa  
23914 3005 d 4 h govind /trunk/ Extend EndDate Scheme by All and by schemeId.
Delete ItemId by SchemeId.
Add ItemId to SchemeId.
change dateRangePicker.
Create Scheme With Multiple Brand and Multiple Items.
 
23886 3006 d 13 h amit.gupta /trunk/ Fixed date format issues  
23819 3025 d 5 h govind /trunk/ For PriceDrop Application