Subversion Repositories SmartDukaan

Rev

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

Filtering Options

Rev Age Author Path Log message Diff
37319 53 d 9 h amit /trunk/ Fix partner-performance tertiary: aggregate order items (qty*mop), not the POS-typed order header

The tertiary panel summed fofo_order.total_amount - a price typed at the partner POS
and never validated against the catalogue - and attributed each whole order to its
first line item's brand via .get(0). One mistyped digit inflated reported sell-out
10x, and mixed-brand orders booked 100% to the first brand, leaving the rest at zero.
Defect dates from r32000/r32034 (May 2023); the panel was the only tertiary consumer
diverging from the qty*mop basis.

- New FofoOrder.selectMonthlyBrandTertiary: sum(quantity*mop) grouped by
(year*100+month) and item brand - the same basis selectPartnerTertiarySales
already uses for the DSR and the partner tier calculation
- PerformanceController: replaces two entity-loading queries (every FofoOrder and
FofoOrderItem for 6 months) with one aggregate; all items now count, each under
its own brand
- Month labels unchanged - toMonthLabel rebuilds the MMM''uu key, template untouched
- Remove V2FofoPerformanceController, the /v2/fofo JSON copy carrying the same defect

Verified against dev DB for fofo_id 175139501: Jul 2026 now 16,94,939 (panel
previously showed 50,92,440); all six months match the qty*mop basis.
 
36586 141 d 15 h aman /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/ Fix:Restructure mail send  
36571 143 d 13 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/entity/fofo/ fix: add transient orderItems list field to FofoOrder for order creation response  
36513 149 d 9 h amit /trunk/ Add running_balance to userwallethistory: persist wallet balance after each transaction for instant ledger display. Populate at all write paths (WalletService, adjustTransaction). Read directly in wallet statement template and CSV download. Includes backfill migration SQL. Renamed walletSummart to walletSummary.  
35537 271 d 3 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/ Optimize getAllPartnerStats: combine 5 tertiary queries into 1 using CASE WHEN pattern

- Added PartnerTertiarySalesModel to hold combined tertiary data
- Added FofoOrder.selectPartnerTertiarySales named query using CASE WHEN
- Added selectPartnerTertiarySales() batch method in FofoOrderItemRepository
- Updated PartnerStatsServiceImpl to use single combined query
- Reduces 5 DB queries to 1 for tertiary sales data (lmtd, mtd, lms, today, last3days)
 
35184 358 d 9 h vikas /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/entity/fofo/ Oppo Activation Number On Graph  
34490 526 d 8 h ranu /trunk/ get code for dashboard  
34412 543 d 8 h ranu /trunk/ sales and stock and summry updated  
34390 546 d 7 h tejus.lohani /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/entity/fofo/ fix  
34384 547 d 10 h ranu /trunk/ additional point in annalysis model  
34287 575 d 8 h vikas.jangra /trunk/ Download Invoice Issue  
34121 634 d 7 h ranu /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/entity/fofo/ foco sales report added customer name  
34066 657 d 8 h aman.kumar /trunk/ Partner Report access to rbm team  
34011 677 d 11 h tejus.lohani /trunk/ bug fix in wallet statement report  
33873 721 d 2 h ranu /trunk/ smart cart first phase updated  
33177 916 d 9 h tejus.lohani /trunk/ Fix quantity and serial number related issue in salas report  
32907 977 d 18 h amit.gupta /trunk/ Added PO Autocolose in scheduler  
32906 978 d 8 h amit.gupta /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/ Fixed changes added new fields  
32044 1232 d 16 h tejbeer /trunk/ change  
31860 1256 d 13 h tejbeer /trunk/ change  
31428 1363 d 16 h amit.gupta /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/entity/fofo/ F  
31427 1363 d 16 h amit.gupta /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/entity/fofo/ F  
31426 1364 d 5 h amit.gupta /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/entity/fofo/ F  
31425 1364 d 6 h amit.gupta /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/entity/fofo/ F  
31423 1364 d 8 h amit.gupta /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/entity/fofo/ F  
31008 1461 d 6 h amit.gupta /trunk/ Added CreditNote changes  
30641 1573 d 6 h amit.gupta /trunk/ Added processing logic for specific scheme  
30195 1671 d 8 h manish /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/entity/fofo/ commit  
30178 1673 d 12 h manish /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/entity/fofo/ commit  
30168 1673 d 15 h manish /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/entity/fofo/ commit  
30160 1673 d 15 h manish /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/entity/fofo/ commit  
28477 1942 d 12 h tejbeer /trunk/ chnage  
28474 1943 d 6 h tejbeer /trunk/ chnage  
28032 2035 d 9 h tejbeer /trunk/ change  
28020 2035 d 16 h tejbeer /trunk/ change  
28008 2037 d 8 h tejbeer /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/entity/fofo/  
28004 2037 d 9 h tejbeer /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/ changes  
27889 2043 d 6 h amit.gupta /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/entity/fofo/ Changed selling price to mop  
27884 2043 d 8 h tejbeer /trunk/ Changes regarding investment and activated imei  
27748 2068 d 14 h tejbeer /trunk/ change