Subversion Repositories SmartDukaan

Rev

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

Filtering Options

Rev Age Author Path Log message Diff
37058 7 d 4 h amit /trunk/profitmandi-cron/src/main/java/com/smartdukaan/cron/ Add regenerateBilledInvoices CLI task (--fromTime/--toTime) to re-generate invoice PDFs over a billing window; qualify InvoicePdfModel reference after the PdfUtils/DocumentRenderer refactor  
37040 8 d 4 h ranu /trunk/profitmandi-cron/src/main/java/com/smartdukaan/cron/ on billing delay partner map to focus and revival  
36993 15 d 4 h amit /trunk/profitmandi-cron/src/main/java/com/smartdukaan/cron/ Thread dryRun through sendCreditNote; --sendCreditNote defaults to dry-run (--live for real); add 06:00-on-1st monthlyMarginsCnDryRun scheduled job  
36979 16 d 3 h ranu /trunk/profitmandi-cron/src/main/java/com/smartdukaan/cron/ changeList  
36745 46 d 17 h ranu /trunk/profitmandi-cron/src/main/java/com/smartdukaan/cron/ code commited miss beat  
36564 62 d 4 h amit /trunk/profitmandi-cron/src/main/java/com/smartdukaan/cron/ Flagship credit: add @Scheduled cron for expired flagship limit conversion (daily 1 AM)  
36554 62 d 11 h amit /trunk/profitmandi-cron/src/main/java/com/smartdukaan/cron/ feat: one-off credit note posting for duplicate invoice NSNOI8965 against NSNOI8966  
36545 62 d 23 h ranu /trunk/profitmandi-cron/src/main/java/com/smartdukaan/cron/ mail out box queue added in default loans  
36511 68 d 1 h amit /trunk/profitmandi-cron/src/main/java/com/smartdukaan/cron/ Add daily inventory snapshot reconciliation cron - syncs currentinventorysnapshot with scan truth for active tag_listing items - emails drift report via googleMailSender to sdtech - runs daily at 5:30 AM, CLI trigger: --reconcileInventorySnapshot  
36503 69 d 19 h amit /trunk/profitmandi-cron/src/main/java/com/smartdukaan/cron/ Add --genDNsForCNs CLI arg for explicit cancelled CN debit note generation

- Wire genDNsForCNs(List<String>) in ScheduledTasks and Application
- Accepts comma-separated CN numbers: --genDNsForCNs=CN-NSPRJ5033,CN-NSLCK4326
 
36476 72 d 22 h amit /trunk/profitmandi-cron/src/main/java/com/smartdukaan/cron/ Remove CLI entry points and ScheduledTasks methods for reissue/recover/resendCN (removed from CreditNoteService in r36475)  
36433 78 d 18 h amit /trunk/profitmandi-cron/src/main/java/com/smartdukaan/cron/ Fix: move testReissueOneCN and reissueMarginsCN CLI triggers out of morning block so they can run standalone  
36432 78 d 19 h amit /trunk/profitmandi-cron/src/main/java/com/smartdukaan/cron/ Add testReissueOneCN and reissueMarginsCN CLI triggers for credit note reissue  
36306 89 d 10 h amit /trunk/profitmandi-cron/src/main/java/com/smartdukaan/cron/ Batch processing: BatchScheduledTasks, helpers for offer/sellin/partnerLimit, CronBatchService, OpenCV fix for Apple Silicon, CLI triggers  
36254 96 d 7 h amit /trunk/profitmandi-cron/src/main/java/com/smartdukaan/cron/ Add stdout error handling for --genDNs CLI arg — logs go to log4j which has no appender in CLI mode, so exceptions were silently swallowed. Now prints to stderr for debugging.  
36248 96 d 10 h amit /trunk/profitmandi-cron/src/main/java/com/smartdukaan/cron/ Add gmailRelaySender bean for Google Workspace SMTP Relay  
36220 100 d 5 h amit /trunk/profitmandi-cron/src/main/java/com/smartdukaan/cron/ Cron: add --genDNs CLI arg for monthly debit note generation. Use SDCreditServiceImpl.computeInterestStartDate for daily interest accrual (single source of truth, fixes off-by-one that delayed accrual by 1 day).  
36197 101 d 22 h amit /trunk/profitmandi-cron/src/main/java/com/smartdukaan/cron/ Add --recoverCreditNote and --resendCNReport CLI args for credit note recovery and report resend  
36188 104 d 2 h amit /trunk/profitmandi-cron/src/main/java/com/smartdukaan/cron/ Revert rerenderCNs CLI option - downloadCN already re-renders on the fly  
36187 104 d 3 h amit /trunk/profitmandi-cron/src/main/java/com/smartdukaan/cron/ Add --rerenderCNs CLI option to re-generate old CN PDFs with new format  
36115 107 d 23 h ranu /trunk/ rbm rating consolidate mail  
36063 113 d 23 h ranu /trunk/profitmandi-cron/src/main/java/com/smartdukaan/cron/ process pending mail method autowired in application java for mannually run  
36060 113 d 23 h amit /trunk/profitmandi-cron/src/main/java/com/smartdukaan/cron/ Add mail outbox scheduler and SMTP timeouts to prevent thread hangs  
36058 114 d 0 h ranu /trunk/ web socket done for agent status  
36053 114 d 23 h amit /trunk/profitmandi-cron/src/main/java/com/smartdukaan/cron/ Fix cancelDn: bug fixes, wallet reversal, RETURNED guard, recreatePri option

- Fix itemId bug in CurrentInventorySnapshot (was using inventoryItem PK instead of catalog itemId)
- Fix NoSuchElementException on missing PURCHASE_RET scan record (findFirst().get() -> ifPresent)
- Reverse wallet refund via consumeAmountFromWallet if DN was already refunded
- Block cancellation if any PRI has RETURNED status (already refunded to wallet)
- Add recreatePri flag: true resets PRIs to CREATED for re-initiation, false deletes them
 
36035 116 d 3 h amit /trunk/ Fix app config  
36003 122 d 5 h aman /trunk/profitmandi-cron/src/main/java/com/smartdukaan/cron/ Fix:Delay report  
35929 136 d 16 h vikas /trunk/profitmandi-cron/src/main/java/com/smartdukaan/cron/ Update Existing Shopify Product  
35832 144 d 1 h amit /trunk/ Unify property loading: all modules use runtime profile with shared properties from dao, remove duplicated DB/Hibernate/HikariCP/integration keys from module files  
35830 144 d 2 h amit /trunk/ Remove 6 dead property files (dao + cron), remove hardcoded shared-dev from cron config  
35803 147 d 22 h amit /trunk/profitmandi-cron/src/main/java/com/smartdukaan/cron/ Support WebApplicationType.NONE for non-web cron runs, add sendCreditNote log line  
35788 149 d 0 h vikas /trunk/ Schedule Shopify Product Sync  
35568 181 d 5 h amit /trunk/profitmandi-cron/src/main/java/com/smartdukaan/cron/ Refactor ticket scheduled tasks: fix bugs, add test mode, improve performance

Bug fixes:
- Remove break statement in alertforTicket that stopped after first user
- Remove duplicate ticketClosed() method (used 7 calendar days vs 8 working days)
- Update Application.java CLI handler to use refactored escalateTicket()

New features:
- Add email test mode: redirect all emails to tester via config
- ticket.email.testMode.enabled=true/false
- ticket.email.testMode.recipient=tester@email.com
- Add configurable auto-escalation: ticket.autoEscalation.enabled
- Working days calculation using WorkingDaysService (excludes Sun + holidays)

Performance improvements:
- Batch fetch ticketSubCategoryMap once per job, not per email
- All repository calls moved outside loops (N+1 query fix)

Escalation thresholds updated:
- L1 -> L2: 3 working days
- L2 -> L3: 3 working days
- L3 -> Final: 2 working days

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
 
35532 191 d 7 h amit /trunk/profitmandi-cron/src/main/java/com/smartdukaan/cron/ Added migration for 2 parties for gold  
35524 192 d 0 h amit /trunk/profitmandi-cron/src/main/java/com/smartdukaan/cron/ Added migration for 2 parties for gold  
35521 192 d 1 h amit /trunk/profitmandi-cron/src/main/java/com/smartdukaan/cron/ Added migration for 2 parties for gold  
35520 192 d 1 h amit /trunk/profitmandi-cron/src/main/java/com/smartdukaan/cron/ Fixed method Number to comma for Cr. Values  
35393 212 d 16 h amit /trunk/profitmandi-cron/src/main/java/com/smartdukaan/cron/ Fixed MongoDB close method  
35277 247 d 0 h amit /trunk/profitmandi-cron/src/main/java/com/smartdukaan/cron/ Migrations  
35276 247 d 0 h amit /trunk/profitmandi-cron/src/main/java/com/smartdukaan/cron/ Migrations