Subversion Repositories SmartDukaan

Rev

Show changed files | Directory listing | RSS feed

Filtering Options

Rev Age Author Path Log message Diff
36453 11 d 21 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/ Fix NPE in credit note IRN: modularize InvoiceService.getInvoicePdfModel into core (ForIrn) and enrichment (EWB/eInvoice), switch purchase return CN to model-based IRN builder  
36399 17 d 1 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/ Replace mailSender (SendGrid) with gmailRelaySender - SendGrid API key expired/revoked  
36179 41 d 16 h ranu /trunk/ weekly rating system live on calling module  
36173 41 d 20 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/transaction/invoicing/ Fix second QR NPE for DCs in getInvoicePdfModel — same DC skip needed in both QR code paths  
36172 41 d 20 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/transaction/invoicing/ Skip IRN/QR code generation for DC challans in PDF - DCs have no IRN, null QR was causing NPE  
36170 41 d 21 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/transaction/invoicing/ Prevent infinite API retry loop: set irn_generated=false on any saveInvoice failure, remove hardcoded RF filter  
36160 41 d 23 h ranu /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/transaction/invoicing/ changeList  
36155 42 d 2 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/ Fix e-invoice/EWB retry loop: set irnGenerated on all failure paths, send email on errors, prevent infinite cron retries  
36130 43 d 0 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/ Generate standalone EWB for Delivery Challans > 20K

GstProService.generateEwbForDeliveryChallan():
- Builds GENEWAYBILL payload from order data (seller, buyer, items, transport)
- docType=CHL, subSupplyType=8, transactionType=4 (intra-state same GSTIN)
- Zero GST, items aggregated by HSN
- Stores EWB number in einvoice_details table
- Skips if EWB already exists for the invoice

InvoiceService.saveInvoice():
- DC invoices with total > 20K trigger standalone EWB generation
- EWB failure is non-fatal (logged, doesn't block PDF generation)
 
36121 43 d 20 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/transaction/invoicing/ Set orderId on CustomOrderItem for invoice PDF generation  
36117 43 d 21 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/transaction/invoicing/ Route all invoice PDF generation to generateInvoiceV2  
36110 44 d 3 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/transaction/invoicing/ Route margin scheme invoices to new generateMarginSchemeInvoice() PDF method  
36100 46 d 12 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/ Fix margin invoice: resolve GRN purchaseId to PO id for purchase price lookup, rename selectByPurchaseIdItemId to selectByPurchaseOrderIdItemId  
36096 47 d 0 h ranu /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/transaction/invoicing/ persistance logout and other status ...agent live status (deduplication)  
36095 47 d 0 h ranu /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/transaction/invoicing/ persistance logout and other status ...agent live status (deduplication)  
36094 47 d 17 h ranu /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/transaction/invoicing/ persistance logout and other status ...agent live status (deduplication)  
36070 49 d 2 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/ Premium CD days: add partner-type helpers, update credit terms, fix CD rejection for 20-day loans, update invoice PDF terms  
36038 51 d 23 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/transaction/invoicing/ Move DC title assignment after invoice number is set in InvoiceService  
36030 54 d 20 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/transaction/ Delivery Challan: DC prefix when seller GST == buyer GST, no IRN, zero tax on PDF, title Delivery Challan  
35991 62 d 20 h ranu /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/transaction/invoicing/ on invoice if customer is internal then shivam number will hit on pdf modal  

Show All