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
35736 82 d 4 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/order/ Fix remaining coding issues in FOFO order creation

- Remove unused changedTotalBillAmount dead code
- Fix NPE when serializedInventoryItemMap returns null for an item
- Replace break-in-loop with iterator().next() in createAndGetFofoOrderItem
- Replace e.printStackTrace() with proper LOGGER.error()
- Log actual exception in state rate lookup instead of swallowing it
- Skip processScratchOffer when no smartphone in order
 
35733 82 d 5 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/order/ Fix noGST bug, remove dead price validation code, optimize live demo query in order creation

- noGST: compute once before loop with anyMatch instead of last-item-wins
- Remove pricingService.getPurchasePriceMopPriceNotFound call and empty validateDpPrice/validateMopPrice (disabled since 11 sep 2025)
- Replace selectAllSerialNumber full table load with targeted selectBySerialNumbers for order serials only
 
35695 84 d 7 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/ Perf: N+1 fix in FOFO OrderServiceImpl.createOrder - batch fetch live demo serials and collect FofoOrderItems during loop  
35493 130 d 21 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)
 
35236 189 d 2 h amit /trunk/ Fixed notification related issues with scheme also stopped using mongo for brands Schema  
35232 192 d 4 h ranu /trunk/ insurance can we add both same time  
35209 201 d 2 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/order/ Samsung Upgrade Logic Added  
35156 207 d 7 h aman /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/order/ Fix:Customer gender null check  
35097 216 d 8 h ranu /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/order/ get quote from backend  
35055 224 d 6 h ranu /trunk/ remove cash discount from billing page  
35034 229 d 2 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/order/ Added new method  
35000 231 d 6 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/order/ donotcommit  
34999 231 d 6 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/order/ Update  
34994 234 d 23 h ranu /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/order/ mop and dp price validation hide  
34805 291 d 0 h ranu /trunk/ icici insurance policy phase one uploaded  
34798 293 d 3 h ranu /trunk/ icici insurance policy phase one uploaded  
34718 312 d 1 h aman.kumar /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/order/ Invoice Update error fix  
34709 312 d 7 h amit.gupta /trunk/ Added Loan Related Changes  
34504 369 d 8 h amit.gupta /trunk/ Fixed rollback of excess schemes in Oppo  
34486 374 d 1 h amit.gupta /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/ Fixed scheme logic out reversal logic  

Show All