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
37975 2 d 8 h aman /trunk/profitmandi-fofo/src/main/ Mobile sidebar: bump jsVersion 450->451 / cssVersion 54->55 so phones fetch the r37974 swipe fix (scripts.js is served without Cache-Control, so the old file stayed cached); set lastWidth at DOM ready, not only on window load; overscroll-behavior-y: contain on phones so a pull-down at the top no longer reloads the page and closes the menu.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0112V6gZq3hA6Xeg7SkAdJzs
 
37974 2 d 11 h aman /trunk/profitmandi-fofo/src/main/webapp/resources/js/ Fix mobile sidebar closing on swipe: ignore height-only resize from address bar show/hide

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0112V6gZfS13DXVLexWjZte6
 
37973 3 d 5 h ranu /trunk/profitmandi-cron/src/main/resources/META-INF/ knowlarity password update  
37972 3 d 5 h amit /trunk/profitmandi-fofo/src/main/webapp/resources/js/ Fixed mail sender everywhere  
37971 3 d 6 h vikas /trunk/ Beat Export button  
37970 3 d 6 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/ fix(catalog): match item brand to brand master case-insensitively on item upload

Item upload now resolves the brand against catalog.brand ignoring case, stores the
brand master's spelling in item.brand/catalog.brand, and throws 'Brand not found'
when no master matches. A casing mismatch (e.g. LAPCARE vs Lapcare) made the
exact-match Solr brand_ss filter hide the brand on /fofo.
 
37969 4 d 7 h ranu /trunk/profitmandi-fofo/src/main/ emi plans should be come via emi offer json from server  
37968 4 d 9 h ranu /trunk/profitmandi-web/src/main/resources/META-INF/ pinelab emi offer publish  
37967 4 d 9 h ranu /trunk/profitmandi-web/src/main/ pinelab emi offer publish  
37966 4 d 9 h ranu /trunk/profitmandi-fofo/src/main/ emi plans should be come via emi offer json from server  
37965 4 d 10 h amit /trunk/profitmandi-dao/src/test/java/com/spice/profitmandi/service/ Add tests for bad-return partial cancel and partial scheme reversal (r37964)  
37964 5 d 3 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/order/ Bad return: cancel invoice and reverse schemes only for returned units; reject address not belonging to customer

- badReturn reverses OUT schemes only for the returned inventory items and cancels the order only when every unit is returned (was: whole invoice cancelled + all margin reversed on a 1-of-N return)
- guard each returned unit is billed on the line and not already returned
- createOrder throws a business error instead of NoSuchElementException when the selected address is not the customer's
 
37963 5 d 3 h amit /trunk/profitmandi-fofo/src/main/java/com/spice/profitmandi/web/controller/ perf(returns): batch partner, debit note and invoice lookups on Sale Returns screen

/return/invoice looked up partner name, debit note and invoice number per row
(~400 queries for the default 30-day view). Collect ids across the pending and
settled rows and fetch each once: getFofoRetailers for partner names,
selectAllByDebitNoteIds for debit notes, and return items -> inventory items ->
purchases for invoice numbers. Same invoice resolution (highest inventory item
of the debit note) and same fallbacks as before.
 
37962 5 d 4 h amit /trunk/profitmandi-fofo/src/main/java/com/spice/profitmandi/web/controller/ Sale returns screen: show IRN failure / B2C option only for credit-note-stage GSTIN refusals; a no-IRN invoice return shows plain Approve.  
37961 5 d 4 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/inventory/ B2C refund option, Finance-only gate and 'IRN failed' status now driven only by credit-note-stage GSTIN refusals. A return on an invoice that never got an IRN shows a plain Approve (full local credit note, r37960); its old INVOICE_IRN refusal rows stay for history.  
37960 5 d 5 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/inventory/ Return on an invoice that never got an IRN (incl. NIC refusing a dead buyer GSTIN at billing) now issues a local credit note at full value instead of failing into the B2C flow. B2C net-of-GST stays only for a credit note NIC refuses against a filed invoice. Invoice return and DN return.  
37959 5 d 5 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/service/ Invoice with no IRN (NIC rejected, irn_generated=0), not shipped and billed under 24h ago is cancelled without finance approval, same as an IRN inside its 24h window. Past 24h it still goes to finance as a return. Queued IRNs (irn_generated NULL) excluded.  
37958 5 d 6 h amit /trunk/profitmandi-web/src/main/java/com/spice/profitmandi/web/ Scratch card awarded after the sale commits. Store login with an unknown or inactive store code returns 'Store not found' instead of a null pointer.  
37957 5 d 6 h amit /trunk/profitmandi-fofo/src/main/ Scratch card awarded after the sale commits. Clear messages for: billing with nothing scanned, debit note generation with no approved returns, bad delivered date in mark-delivered CSV. Reset selected customer address when the mobile number changes. jsVersion 450.  
37956 5 d 6 h amit /trunk/profitmandi-dao/src/main/java/com/spice/profitmandi/dao/ Award scratch card after the sale commits, in its own transaction, so a gift-stock lock timeout can no longer roll back the sale. EMI product and partner pincode lookups return the first row when a model or partner has several.  

Show All