Subversion Repositories SmartDukaan

Rev

Show changed files | Directory listing | RSS feed

Filtering Options

Rev Age Author Path Log message Diff
35725 3 h 13 m ranu /trunk/ now recording also fetching  
35724 5 h 11 m ranu /trunk/ now recording also fetching  
35723 6 h 22 m ranu /trunk/profitmandi-fofo/src/main/webapp/WEB-INF/views/ftl/ code commit for calling target / retailer contact  
35722 6 h 32 m amit /trunk/PyProj/src/shop2020/logistics/service/impl/ perf: use raw SQL for logistics startup caches to avoid ORM memory overhead  
35721 6 h 33 m ranu /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/ code commit for calling target / retailer contact  
35720 6 h 43 m ranu /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/ code commit for calling target / retailer contact  
35719 17 h 26 m amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/warehouse/ Fix performance issues and email bug in PurchaseOrderServiceImpl

- createPurchaseOrder: batch item loading (selectByIds) and vendor pricing (getVendorPricesOnDate) instead of per-item DB calls; remove duplicate itemIds computation
- grnPoModels: batch load all items upfront instead of selectById per GRN model in nested loop
- generatePdf: fix bug where supplier email recipients were never assigned (Arrays.asList result was discarded)
 
35718 18 h 18 m amit /trunk/PyProj/src/shop2020/ fix: use session.remove() instead of session.close() to prevent memory leaks in all services  
35717 18 h 35 m amit /trunk/ Fix performance issues in PurchaseOrderController

- Replace supplierRepository.selectAll() with targeted selectBySupplierIds() in 2 endpoints
- Replace sellerRepository.selectAll() with new selectByIds() in 2 endpoints
- Add SellerRepository.selectByIds(List<Integer>) batch method
- Remove dead code: unused totalUnitPrice and totalPriceOfLineItem computations
 
35716 18 h 38 m amit /trunk/ Refactor GrnController and PurchaseOrderController: extract business logic into focused services and fix N+1 query performance issues

- Create InvoiceService: invoice item CRUD, validation, vendor price matching
- Create GrnRequestService: GRN request lifecycle, mismatch resolution state machine
- Create DebitNoteService: debit note generation, PDF model building
- Move PO amendment logic from PurchaseOrderController to PurchaseOrderService
- Delegate generateDebitNote from PurchaseOrderServiceImpl to DebitNoteService
- Thin GrnController from ~1215 to ~717 lines, remove 15 unused autowired dependencies
- Thin PurchaseOrderController editPurchaseOrder from 40+ lines to 3 lines

Performance fixes:
- InvoiceServiceImpl.validateInvoiceDetail: batch item/vendor pricing/GST loading (4N+3 queries -> ~5)
- DebitNoteServiceImpl: batch item loading in buildDebitNotePdfModel and generateDebitNote
- GrnController.generateDebitNote: eliminate 2 redundant DB fetches
- Replace 3x supplierRepository.selectAll() with targeted selectBySupplierIds()
 
35715 22 h 40 m ranu /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/integrations/smartping/model/ code commit for calling target / retailer contact  
35714 23 h 0 m ranu /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/ code commit for calling target / retailer contact  
35713 23 h 16 m ranu /trunk/profitmandi-fofo/src/main/webapp/WEB-INF/views/ftl/ code commit for calling target / retailer contact  
35712 23 h 22 m ranu /trunk/profitmandi-fofo/src/main/webapp/WEB-INF/views/ftl/ code commit for calling target / retailer contact  
35711 23 h 30 m ranu /trunk/profitmandi-fofo/src/main/webapp/WEB-INF/views/ftl/ code commit for calling target / retailer contact  
35710 23 h 40 m ranu /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/repository/cs/ code commit for calling target / retailer contact  
35709 23 h 49 m ranu /trunk/profitmandi-fofo/src/main/webapp/WEB-INF/views/ftl/ code commit for calling target / retailer contact  
35708 23 h 53 m ranu /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/controller/ now recording also fetching  
35707 23 h 57 m amit /trunk/Crm/src/main/webapp/WEB-INF/content/ fix: make refund amount field editable in return order view  
35706 1 d 0 h ranu /trunk/profitmandi-fofo/src/main/webapp/WEB-INF/views/ftl/ code commit for calling target / retailer contact  

Show All