Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Show changed files | Directory listing | RSS feed

Filtering Options

Rev Age Author Path Log message Diff
36560 65 d 10 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/ Flagship credit: sale-time conversion with FOR UPDATE locking and performance optimizations

- convertFlagshipOnSale: partial conversion at billed price when retailer sells flagship stock
- hasActiveFlagshipLimits: cheap COUNT check to skip catalog lookup for non-flagship partners
- selectActiveFlagshipLimitBlocksForUpdate: pessimistic lock prevents double-conversion from concurrent sales/cron
- selectFlagshipLoansForConversion: added FOR UPDATE lock for cron expiry path
- Batch order fetch instead of per-limit queries
- Wired into OrderServiceImpl.createOrder after stock update
 
36559 65 d 10 h amit /trunk/profitmandi-dao/src/main/ feat: auto-generate debit notes on RTV with proper DN/{prefix}/{sequence} numbering  
36558 65 d 11 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/inventory/ RTV: always set lastScanType to PURCHASE_RETURN in markItemReturned (informational, not conditional on full drain)  
36557 65 d 16 h amit /trunk/ feat: Flagship Credit - 30 interest-free days for flagship models with billing split, expiry conversion, API-driven T&C  
36556 65 d 16 h amit /trunk/profitmandi-cron/src/main/java/com/smartdukaan/cron/scheduled/ Fixed scroll in offers modal  
36555 65 d 16 h amit /trunk/profitmandi-common/src/main/java/com/spice/profitmandi/common/services/mandii/ Fixed scroll in offers modal  
36554 65 d 16 h amit /trunk/profitmandi-cron/src/main/java/com/smartdukaan/cron/ feat: one-off credit note posting for duplicate invoice NSNOI8965 against NSNOI8966  
36553 65 d 16 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/repository/transaction/ fix: prevent concurrent billing race condition - add billingTimestamp check in validateOrdersForBilling  
36552 66 d 3 h ranu /trunk/profitmandi-cron/src/main/java/com/smartdukaan/cron/scheduled/ changeList  
36551 66 d 3 h amit /trunk/profitmandi-fofo/src/main/webapp/WEB-INF/views/ftl/ Fixed scroll in offers modal  
36550 66 d 3 h ranu /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/service/ changeList  
36549 66 d 3 h ranu /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/service/ changeList  
36548 66 d 3 h amit /trunk/profitmandi-fofo/src/ Monitor type upload: allow duplicate catalog_id (keep first), make dialog scrollable  
36547 66 d 3 h ranu /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/service/ changeList  
36546 66 d 4 h ranu /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/service/ changeList  
36545 66 d 4 h ranu /trunk/profitmandi-cron/src/main/java/com/smartdukaan/cron/ mail out box queue added in default loans  
36544 66 d 6 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/ Refactor RTV (Return to Vendor) flow: replace native SQL with repository/service methods, extract reusable helpers (resolvePurchase, resolveLineItem, markItemReturned, createPurchaseReturnEntity), fix availability bug by adding saholicInventoryService.reduceAvailability, validate returnability by currentQuantity>0 instead of lastScanType  
36543 67 d 1 h amit /trunk/profitmandi-fofo/src/main/ Add Others row to PartnerPerformance Secondary/Tertiary/Earning tabs so brandwise sum matches total  
36542 67 d 2 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/warehouse/ Validate oldItemId exists on invoice at GRN correction request creation time  
36541 67 d 4 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/ Fix duplicate invoice number: use scalar query to avoid Hibernate cache poisoning before FOR UPDATE lock  

Show All