<?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/test/java/com/spice/profitmandi/service/inventory/</title><description>WebSVN RSS feed &#x2013; SmartDukaan</description><lastBuildDate>Fri, 09 Oct 2026 00:53:20 +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%2Ftest%2Fjava%2Fcom%2Fspice%2Fprofitmandi%2Fservice%2Finventory%2F&amp;isdir=1&amp;max=40&amp;</link><atom:link href="https://svn.smartdukaan.com/rss.php?isdir=1&amp;path=%2Ftrunk%2Fprofitmandi-fofo%2Fsrc%2Ftest%2Fjava%2Fcom%2Fspice%2Fprofitmandi%2Fservice%2Finventory%2F&amp;repname=SmartDukaan" rel="self" type="application/rss+xml" />
<item><pubDate>Tue, 29 Sep 2026 13:36:10 +0530</pubDate><dc:creator>amit</dc:creator><title>Rev 37807 – test(returns): B2C settlement after a GSTIN refusal, end to end ...</title><description>&lt;div&gt;&lt;strong&gt;amit – 1 file(s) modified&lt;/strong&gt;&lt;br/&gt;test(returns): B2C settlement after a GSTIN refusal, end to end&lt;br /&gt;
&lt;br /&gt;
ReturnB2cRefundTest (Spring context, local dev DB, invoice NSNOI5746) covers&lt;br /&gt;
the r37790 flow: the quote is the value net of GST (33,439 -&gt; 28,338); a&lt;br /&gt;
refused approval refunds nothing and records the attempt in its own&lt;br /&gt;
transaction; a wrongly typed amount and a missing remark or consent are&lt;br /&gt;
refused; settling as B2C refunds net of GST and issues a local credit note.&lt;br /&gt;
Seeded data rolls back; the refusal row it must commit is cleaned up by the&lt;br /&gt;
test. 5/5 pass.&lt;/div&gt;+ /trunk/profitmandi-fofo/src/test/java/com/spice/profitmandi/service/inventory/ReturnB2cRefundTest.java&lt;br /&gt;</description><link>https://svn.smartdukaan.com/revision.php?repname=SmartDukaan&amp;path=%2Ftrunk%2Fprofitmandi-fofo%2Fsrc%2Ftest%2Fjava%2Fcom%2Fspice%2Fprofitmandi%2Fservice%2Finventory%2F&amp;isdir=1&amp;rev=37807</link><guid>https://svn.smartdukaan.com/revision.php?repname=SmartDukaan&amp;path=%2Ftrunk%2Fprofitmandi-fofo%2Fsrc%2Ftest%2Fjava%2Fcom%2Fspice%2Fprofitmandi%2Fservice%2Finventory%2F&amp;isdir=1&amp;rev=37807</guid></item>
<item><pubDate>Thu, 24 Sep 2026 20:16:56 +0530</pubDate><dc:creator>amit</dc:creator><title>Rev 37777 – returns: finance endpoint to reverse a return whose goods never ...</title><description>&lt;div&gt;&lt;strong&gt;amit – 3 file(s) modified&lt;/strong&gt;&lt;br/&gt;returns: finance endpoint to reverse a return whose goods never reached the warehouse&lt;br /&gt;
&lt;br /&gt;
PUT /return/reverse?imei=&amp;reason=&amp;dryRun= calls ReturnReversalService (r37776) for one&lt;br /&gt;
IMEI. Finance only, same canRefund gate as the refund it undoes, and dryRun defaults to&lt;br /&gt;
true so a call without it reports the plan and writes nothing.&lt;br /&gt;
&lt;br /&gt;
ReturnReversalTest covers the four cases against the local database with NIC on the&lt;br /&gt;
sandbox: the dry run writes nothing, a note past its 24h window issues a DBN and undoes&lt;br /&gt;
every effect of the refund (warehouse scan and stock, partner stock and offers, order&lt;br /&gt;
status, wallet, return item, debit note, audit row), a note inside the window has its IRN&lt;br /&gt;
cancelled and drops out of the statement, and bad input or a second reversal is refused.&lt;br /&gt;
Run it as `gradle :test --tests ...` - without the colon the filter also reaches&lt;br /&gt;
profitmandi-common and fails with &quot;No tests found&quot;.&lt;/div&gt;~ /trunk/profitmandi-fofo/src/main/java/com/spice/profitmandi/web/controller/PurchaseReturnController.java&lt;br /&gt;+ /trunk/profitmandi-fofo/src/test/java/com/spice/profitmandi/service/inventory&lt;br /&gt;+ /trunk/profitmandi-fofo/src/test/java/com/spice/profitmandi/service/inventory/ReturnReversalTest.java&lt;br /&gt;</description><link>https://svn.smartdukaan.com/revision.php?repname=SmartDukaan&amp;path=%2Ftrunk%2Fprofitmandi-fofo%2Fsrc%2Ftest%2Fjava%2Fcom%2Fspice%2Fprofitmandi%2Fservice%2Finventory%2F&amp;isdir=1&amp;rev=37777</link><guid>https://svn.smartdukaan.com/revision.php?repname=SmartDukaan&amp;path=%2Ftrunk%2Fprofitmandi-fofo%2Fsrc%2Ftest%2Fjava%2Fcom%2Fspice%2Fprofitmandi%2Fservice%2Finventory%2F&amp;isdir=1&amp;rev=37777</guid></item>
</channel></rss>