Subversion Repositories SmartDukaan

Rev

Show changed files | Directory listing | RSS feed

Filtering Options

Rev Age Author Path Log message Diff
36376 88 d 13 h aman /trunk/ Feat:Cart Api Implementation  
36278 96 d 19 h ranu /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/cart/ ADD OPENING STOCK  
35947 137 d 17 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/ Revert r35945: undo cart pessimistic locking (will re-apply after testing)  
35945 137 d 18 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/ Add pessimistic locking to cart operations to prevent deadlocks; add updateCartItem, removeCartItem, getCartItems methods  
35690 162 d 22 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/ Optimize order creation performance: add overloaded focusedModelShortageValidation with pre-fetched data, add overloaded payThroughWallet and processTransaction to avoid duplicate fetches, fix N+1 queries in BulkOrderService by batch-fetching items and tagListings  
35651 168 d 12 h aman /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/ Fix:Item Wise monthly sale and fofo opening stock minus condition  
35574 184 d 3 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/cart/ Fix price mismatch false positives in cart validation

- Handle cart price = 0/unset: silently update to current price (client bug)
- Use tolerance comparison (0.01) instead of exact Float.compare
- Prevents false PRICE_CHANGED errors from float precision issues
 
35573 184 d 5 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/cart/ Feature: Add price mismatch detection in cart

- Detect when cart item price differs from current TagListing price
- Notify user with PRICE_CHANGED message showing old vs new price
- Auto-update cart line with current price
- Add logging for price mismatch events
 
35493 209 d 7 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/ N+1 query optimization for B2B order creation flow

- OrderServiceImpl: Batch fetch PendingOrderItems before validation loop (line 402)
- OrderServiceImpl: Batch update opening stock using minusOpeningStockBatch
- OrderServiceImpl: Pre-fetch tagListings and GST rates before createAndGetFofoOrderItem loop
- OrderServiceImpl: Batch fetch PendingOrderItems for status update (line 719)
- CartServiceImpl: Pre-fetch items before getCartValidation loop
- SchemeServiceImpl: Batch fetch SchemeInOut records in processSchemeOut
- SmartCartService: Added minusOpeningStockBatch method for batch updates
- TagListingRepository: Added selectByItemIds batch method
- FofoOpeningStockRepository: Added findByFofoIdAndCatalogIds batch method
- PendingOrderItemRepository: Added selectByIds batch method

Performance improvement: ~70-100 DB queries reduced per order (10 items avg)
 
35214 278 d 11 h vikas /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/cart/ App build Version & Notification Template  
35211 279 d 10 h vikas /trunk/ App build Version & Notification Template  
35170 284 d 11 h vikas /trunk/ Carry bag 1 rupee to NEW, GOLD, PLATINUM, DIAMOND  
35140 287 d 15 h ranu /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/cart/ in transit add in instock  
34972 316 d 13 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/cart/ donotcommit  
34938 322 d 10 h ranu /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/cart/ smart cart service method updated  
34461 454 d 12 h ranu /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/cart/ recomeneded qty logic updated  
34459 454 d 13 h ranu /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/cart/ recomeneded qty logic updated  
34449 455 d 15 h ranu /trunk/ code commit for suggested po  
34384 470 d 13 h ranu /trunk/ additional point in annalysis model  
33873 644 d 5 h ranu /trunk/ smart cart first phase updated  

Show All