Subversion Repositories SmartDukaan

Rev

Show changed files | Directory listing | RSS feed

Filtering Options

Rev Age Author Path Log message Diff
36136 51 m amit /trunk/profitmandi-fofo/src/main/webapp/WEB-INF/views/ftl/ Fix date formatting: use dateFormatter (dd/MM/yyyy) instead of toLocalDate() in all GRN correction views  
36135 1 h 17 m amit /trunk/profitmandi-fofo/src/main/java/com/spice/profitmandi/web/controller/warehouse/ Include correction To Item IDs in itemMap so item names resolve in approval view  
36134 1 h 21 m amit /trunk/profitmandi-fofo/src/main/webapp/WEB-INF/views/ftl/ Fix item description: use getItemDescription() (brand+model+number+color) instead of just modelName  
36133 1 h 24 m amit /trunk/profitmandi-fofo/src/main/webapp/WEB-INF/views/ftl/ GRN correction approval: add GRN By column  
36132 1 h 31 m amit /trunk/profitmandi-fofo/src/main/webapp/WEB-INF/views/ftl/ GRN correction views: add invoice date, show item names in qty corrections, wrap JS in Velocity literal blocks  
36131 1 h 58 m amit /trunk/profitmandi-fofo/src/main/webapp/WEB-INF/views/ftl/ Fix Velocity parse error: wrap JS in literal block to prevent jQuery $ conflicts  
36130 2 h 6 m 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)
 
36129 2 h 28 m amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/integrations/gstpro/ Refactor EWB API to use headers (consistent with e-invoice auth style)

Auth: params in headers (aspid, password, Gstin, Username, Ewbpwd)
Generate/Cancel: credentials in headers, action in query param
Extracted common ewbApiCall() with retry-on-GSP752 logic
getEwbApiHeaders() in GstProAuthService for reuse
 
36128 2 h 57 m amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/integrations/gstpro/ EWB auth with Redis cache (6h TTL) + auto-retry on token expiry

GstProAuthService: getEwbAuthToken() cached via redisCacheManager (6h TTL),
fetchEwbAuthToken() for direct API call on cache miss/eviction.

GstProService: getEwbToken() tries cache first, evicts and retries on failure.
generateStandaloneEwb/cancelEwb retry once on GSP752 (expired token) error.
 
36127 3 h 3 m amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/integrations/gstpro/ Add standalone E-Way Bill APIs for Delivery Challans

- getEwbAuthToken(): authenticate with EWB portal (separate from e-invoice auth)
- generateStandaloneEwb(): GENEWAYBILL action for DC documents
- cancelEwb(): CANEWB action with reason code 3 (order cancelled)
- Sandbox and production endpoints configured
- Uses existing RestClient, no external library needed
- Sandbox verified: auth, generate, cancel all working
 
36126 5 h 12 m amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/order/ Change FOFO invoice PDF title from Retailer Invoice to Tax Invoice  
36125 6 h 1 m ranu /trunk/profitmandi-fofo/src/main/java/com/spice/profitmandi/web/controller/monitors/ weekly rating system live on calling module  
36124 7 h 24 m ranu /trunk/profitmandi-fofo/src/main/webapp/WEB-INF/views/ftl/ weekly rating system live on calling module  
36123 7 h 26 m ranu /trunk/profitmandi-fofo/src/main/webapp/WEB-INF/views/ftl/ weekly rating system live on calling module  
36122 7 h 30 m ranu /trunk/profitmandi-fofo/src/main/webapp/ weekly rating system live on calling module  
36121 22 h 28 m amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/transaction/invoicing/ Set orderId on CustomOrderItem for invoice PDF generation  
36120 22 h 28 m amit /trunk/profitmandi-common/src/main/java/com/spice/profitmandi/common/util/ Widen Order Id column, compact E-Way Bill format matching invoice style  
36119 23 h 37 m amit /trunk/profitmandi-common/src/main/java/com/spice/profitmandi/common/util/ Invoice PDF fixes: unified Rate column, per-unit gross sale for margin qty>1, Tax+Total columns, Tax Rate header, remove whitespace in summary  
36118 23 h 49 m ranu /trunk/ code for socket snapshot  
36117 23 h 55 m amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/transaction/invoicing/ Route all invoice PDF generation to generateInvoiceV2  

Show All