<?xml version="1.0" encoding="utf-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>SmartDukaan &#x2013; /trunk/profitmandi-fofo/src/main/webapp/WEB-INF/views/ftl/receive-debit-note.vm</title><description>WebSVN RSS feed &#x2013; SmartDukaan</description><lastBuildDate>Thu, 08 Oct 2026 19:44:21 +0530</lastBuildDate><generator>WebSVN 2.8.6-DEV</generator><language>en</language><link>https://svn.smartdukaan.com/log.php?repname=SmartDukaan&amp;path=%2Ftrunk%2Fprofitmandi-fofo%2Fsrc%2Fmain%2Fwebapp%2FWEB-INF%2Fviews%2Fftl%2Freceive-debit-note.vm&amp;max=40&amp;</link><atom:link href="https://svn.smartdukaan.com/rss.php?path=%2Ftrunk%2Fprofitmandi-fofo%2Fsrc%2Fmain%2Fwebapp%2FWEB-INF%2Fviews%2Fftl%2Freceive-debit-note.vm&amp;repname=SmartDukaan" rel="self" type="application/rss+xml" />
<item><pubDate>Mon, 28 Sep 2026 16:51:13 +0530</pubDate><dc:creator>amit</dc:creator><title>Rev 37798 – Show a settled debit note as settled instead of offering ...</title><description>&lt;div&gt;&lt;strong&gt;amit – 5 file(s) modified&lt;/strong&gt;&lt;br/&gt;Show a settled debit note as settled instead of offering Receive&lt;br /&gt;
&lt;br /&gt;
The DN screens decided everything from &quot;does a purchase_return_order exist&quot;,&lt;br /&gt;
which no return settled before the receive workflow ever had. A note settled&lt;br /&gt;
years ago therefore read &quot;Pending Receive&quot; with a Receive button, and receiving&lt;br /&gt;
one handed a partner back a phone already returned, refunded and resold&lt;br /&gt;
(DN UPBLY975/4, IMEI 864973083197734).&lt;br /&gt;
&lt;br /&gt;
The debit note&apos;s own status now carries the fact - CREATED means there is&lt;br /&gt;
genuinely something to receive, anything else means it is settled - so the&lt;br /&gt;
screens read it directly instead of re-deriving it from warehouse scans on&lt;br /&gt;
every page load. r37797 backfilled the 4,154 notes the old flow left behind.&lt;br /&gt;
&lt;br /&gt;
- invoice-return-results, debit-notes-table, debit-note-details,&lt;br /&gt;
  receive-debit-note: Receive only while the note is CREATED with no return&lt;br /&gt;
  order; otherwise &quot;Processed - settled earlier&quot;.&lt;br /&gt;
- debit-notes-table: Refund only on a note received and not yet settled,&lt;br /&gt;
  rather than on every row.&lt;br /&gt;
- PurchaseReturnController: the admin debit-note list now loads the return&lt;br /&gt;
  orders its Refund button needs.&lt;br /&gt;
&lt;br /&gt;
Deploy with profitmandi-dao r37797.&lt;/div&gt;~ /trunk/profitmandi-fofo/src/main/java/com/spice/profitmandi/web/controller/PurchaseReturnController.java&lt;br /&gt;~ /trunk/profitmandi-fofo/src/main/webapp/WEB-INF/views/ftl/debit-note-details.vm&lt;br /&gt;~ /trunk/profitmandi-fofo/src/main/webapp/WEB-INF/views/ftl/debit-notes-table.vm&lt;br /&gt;~ /trunk/profitmandi-fofo/src/main/webapp/WEB-INF/views/ftl/invoice-return-results.vm&lt;br /&gt;~ /trunk/profitmandi-fofo/src/main/webapp/WEB-INF/views/ftl/receive-debit-note.vm&lt;br /&gt;</description><link>https://svn.smartdukaan.com/revision.php?repname=SmartDukaan&amp;path=%2Ftrunk%2Fprofitmandi-fofo%2Fsrc%2Fmain%2Fwebapp%2FWEB-INF%2Fviews%2Fftl%2Freceive-debit-note.vm&amp;rev=37798</link><guid>https://svn.smartdukaan.com/revision.php?repname=SmartDukaan&amp;path=%2Ftrunk%2Fprofitmandi-fofo%2Fsrc%2Fmain%2Fwebapp%2FWEB-INF%2Fviews%2Fftl%2Freceive-debit-note.vm&amp;rev=37798</guid></item>
<item><pubDate>Wed, 19 Aug 2026 20:33:08 +0530</pubDate><dc:creator>amit</dc:creator><title>Rev 37365 – Debit note receive: surface the partner-declared condition and warn before ...</title><description>&lt;div&gt;&lt;strong&gt;amit – 3 file(s) modified&lt;/strong&gt;&lt;br/&gt;Debit note receive: surface the partner-declared condition and warn before rejecting&lt;br /&gt;
&lt;br /&gt;
The receive screen defaulted every row&apos;s condition to GOOD regardless of what the&lt;br /&gt;
partner declared, so a warehouse user could not see what they were disagreeing with -&lt;br /&gt;
and the backend treats any disagreement as a rejection of the whole debit note.&lt;br /&gt;
&lt;br /&gt;
- Show &apos;Declared By Partner&apos; per row and preselect the condition to match it, so&lt;br /&gt;
  submitting unchanged is a genuine agreement rather than an accident of the default.&lt;br /&gt;
- A changed row now switches the submit button to &apos;Reject Return&apos;, shows what rejection&lt;br /&gt;
  means (no refund; partner, Logistics, RBM and Sales notified), makes the remark&lt;br /&gt;
  mandatory and confirms before posting.&lt;br /&gt;
- SMTP timeouts raised to 30s connect / 120s read-write; the 10s read timeout was&lt;br /&gt;
  cutting off larger attachment sends.&lt;br /&gt;
- jsVersion 405 -&gt; 406 for the return.js change.&lt;/div&gt;~ /trunk/profitmandi-fofo/src/main/java/com/spice/profitmandi/web/config/AppConfig.java&lt;br /&gt;~ /trunk/profitmandi-fofo/src/main/webapp/resources/js/business/return.js&lt;br /&gt;~ /trunk/profitmandi-fofo/src/main/webapp/WEB-INF/views/ftl/receive-debit-note.vm&lt;br /&gt;</description><link>https://svn.smartdukaan.com/revision.php?repname=SmartDukaan&amp;path=%2Ftrunk%2Fprofitmandi-fofo%2Fsrc%2Fmain%2Fwebapp%2FWEB-INF%2Fviews%2Fftl%2Freceive-debit-note.vm&amp;rev=37365</link><guid>https://svn.smartdukaan.com/revision.php?repname=SmartDukaan&amp;path=%2Ftrunk%2Fprofitmandi-fofo%2Fsrc%2Fmain%2Fwebapp%2FWEB-INF%2Fviews%2Fftl%2Freceive-debit-note.vm&amp;rev=37365</guid></item>
<item><pubDate>Mon, 27 Apr 2026 19:57:02 +0530</pubDate><dc:creator>amit</dc:creator><title>Rev 36408 – Sale-return reversal: controller wiring + UI for cancellability gate + ...</title><description>&lt;div&gt;&lt;strong&gt;amit – 7 file(s) modified&lt;/strong&gt;&lt;br/&gt;Sale-return reversal: controller wiring + UI for cancellability gate + INV reject + date filter&lt;br /&gt;
&lt;br /&gt;
PurchaseReturnController:&lt;br /&gt;
  /return/invoice/process — autoApprove now isIrnCancellable &amp;&amp; !isShipped.&lt;br /&gt;
    !isShipped guard restored: shipped goods route through manual approval&lt;br /&gt;
    even within 24h, so the physical return goes through CN flow.&lt;br /&gt;
  /return/invoice/reject/{proId} — new endpoint for finance to reject a&lt;br /&gt;
    pending INV PRO (sale stands, no inventory/wallet/GST action).&lt;br /&gt;
  /return/invoice — date filter (fromDate/toDate query params, default&lt;br /&gt;
    last 30 days) backed by selectByWarehouseIdsAndDateRange. Limit&lt;br /&gt;
    bumped to 200 to accommodate longer ranges.&lt;br /&gt;
  receive-debit-note view — passes $requiresFinanceApproval so the&lt;br /&gt;
    template can render the finance-approval banner when DN&apos;s IRN is&lt;br /&gt;
    past the 24h window.&lt;br /&gt;
&lt;br /&gt;
invoice-return.vm:&lt;br /&gt;
  Added From/To date inputs + Apply button.&lt;br /&gt;
  Added Reject button next to Approve &amp; Refund for pending INV PROs.&lt;br /&gt;
&lt;br /&gt;
receive-debit-note.vm:&lt;br /&gt;
  Added one informational banner (#if $requiresFinanceApproval) above&lt;br /&gt;
  the receipt form. No layout / JS / submit-URL change.&lt;br /&gt;
&lt;br /&gt;
return.js:&lt;br /&gt;
  #invoice-return-date-apply handler — POSTs the selected range to&lt;br /&gt;
  /return/invoice and refreshes the table.&lt;br /&gt;
  .reject-invoice-return handler — prompts for reason, calls the new&lt;br /&gt;
  reject endpoint.&lt;br /&gt;
&lt;br /&gt;
dev/staging/prod.properties: feature flag finance.receipt.approval.email.enabled&lt;br /&gt;
(default false, flip per env when mail infra is ready).&lt;/div&gt;~ /trunk/profitmandi-fofo/src/main/java/com/spice/profitmandi/web/controller/PurchaseReturnController.java&lt;br /&gt;~ /trunk/profitmandi-fofo/src/main/resources/META-INF/dev.properties&lt;br /&gt;~ /trunk/profitmandi-fofo/src/main/resources/META-INF/prod.properties&lt;br /&gt;~ /trunk/profitmandi-fofo/src/main/resources/META-INF/staging.properties&lt;br /&gt;~ /trunk/profitmandi-fofo/src/main/webapp/resources/js/business/return.js&lt;br /&gt;~ /trunk/profitmandi-fofo/src/main/webapp/WEB-INF/views/ftl/invoice-return.vm&lt;br /&gt;~ /trunk/profitmandi-fofo/src/main/webapp/WEB-INF/views/ftl/receive-debit-note.vm&lt;br /&gt;</description><link>https://svn.smartdukaan.com/revision.php?repname=SmartDukaan&amp;path=%2Ftrunk%2Fprofitmandi-fofo%2Fsrc%2Fmain%2Fwebapp%2FWEB-INF%2Fviews%2Fftl%2Freceive-debit-note.vm&amp;rev=36408</link><guid>https://svn.smartdukaan.com/revision.php?repname=SmartDukaan&amp;path=%2Ftrunk%2Fprofitmandi-fofo%2Fsrc%2Fmain%2Fwebapp%2FWEB-INF%2Fviews%2Fftl%2Freceive-debit-note.vm&amp;rev=36408</guid></item>
<item><pubDate>Sat, 14 Mar 2026 19:31:27 +0530</pubDate><dc:creator>amit</dc:creator><title>Rev 35998 – Invoice Return: controller endpoints, UI views (receive/refund/reject/details/search), JS handlers, role-based ...</title><description>&lt;div&gt;&lt;strong&gt;amit – 9 file(s) modified&lt;/strong&gt;&lt;br/&gt;Invoice Return: controller endpoints, UI views (receive/refund/reject/details/search), JS handlers, role-based access, dashboard menu&lt;/div&gt;~ /trunk/profitmandi-fofo/src/main/java/com/spice/profitmandi/web/controller/PurchaseReturnController.java&lt;br /&gt;~ /trunk/profitmandi-fofo/src/main/webapp/resources/js/business/return.js&lt;br /&gt;~ /trunk/profitmandi-fofo/src/main/webapp/WEB-INF/views/ftl/dashboard-readonly.vm&lt;br /&gt;+ /trunk/profitmandi-fofo/src/main/webapp/WEB-INF/views/ftl/debit-note-details.vm&lt;br /&gt;~ /trunk/profitmandi-fofo/src/main/webapp/WEB-INF/views/ftl/debit-notes-table.vm&lt;br /&gt;+ /trunk/profitmandi-fofo/src/main/webapp/WEB-INF/views/ftl/invoice-return-results.vm&lt;br /&gt;+ /trunk/profitmandi-fofo/src/main/webapp/WEB-INF/views/ftl/invoice-return.vm&lt;br /&gt;+ /trunk/profitmandi-fofo/src/main/webapp/WEB-INF/views/ftl/receive-debit-note.vm&lt;br /&gt;+ /trunk/profitmandi-fofo/src/main/webapp/WEB-INF/views/ftl/refund-debit-note.vm&lt;br /&gt;</description><link>https://svn.smartdukaan.com/revision.php?repname=SmartDukaan&amp;path=%2Ftrunk%2Fprofitmandi-fofo%2Fsrc%2Fmain%2Fwebapp%2FWEB-INF%2Fviews%2Fftl%2Freceive-debit-note.vm&amp;rev=35998</link><guid>https://svn.smartdukaan.com/revision.php?repname=SmartDukaan&amp;path=%2Ftrunk%2Fprofitmandi-fofo%2Fsrc%2Fmain%2Fwebapp%2FWEB-INF%2Fviews%2Fftl%2Freceive-debit-note.vm&amp;rev=35998</guid></item>
</channel></rss>