---
title: "User Manual for Trade-In Feature in Sales Invoice Module"
space: "Csf_tz_enhancements"
url: "https://support.aakvatech.com/Documentation/user-manual-for-trade-in-feature-in-sales-invoice-module"
updated: "2026-07-22"
---

<p>This user manual provides detailed instructions on how to use the Trade-In feature in the Sales Invoice module, covering trigger points, data flow, and controls.</p>
<hr>
<h2 id="-feature-overview-"><strong>Feature Overview</strong></h2>
<p>The Trade-In feature allows users to manage trade-in items efficiently in the Sales Invoice module. It automates the addition of trade-in items, validates user inputs, and integrates with the stock module to create appropriate stock entries.</p>
<hr>
<h2 id="-trigger-points-"><strong>Trigger Points</strong></h2>
<ol>
<li><p><strong>Activating the Trade-In Feature</strong>:  </p>
<ul>
<li>Use the checkbox field <code>Is Trade In</code> (<code>custom_is_trade_in</code>) in the Sales Invoice to activate the feature.</li>
<li>Once activated, the system automatically adds a &quot;Trade In&quot; item to the Sales Invoice.</li>
</ul>
</li>
<li><p><strong>Adding Trade-In Items</strong>:  </p>
<ul>
<li>Add trade-in details such as item, quantity, UOM, batch number, serial numbers, and incoming rate in the child table for trade-in items.</li>
</ul>
</li>
<li><p><strong>Validating Trade-In Data</strong>:  </p>
<ul>
<li>On saving or submitting the Sales Invoice, validations are triggered to ensure data accuracy for batch numbers, serial numbers, and trade-in limits.</li>
</ul>
</li>
<li><p><strong>Stock Entry Creation</strong>:  </p>
<ul>
<li>Upon submitting the Sales Invoice, the system creates a <code>Material Receipt</code> stock entry for the trade-in items.</li>
</ul>
</li>
</ol>
<hr>
<h2 id="-flow-of-data-"><strong>Flow of Data</strong></h2>
<ol>
<li><p><strong>Step 1: Activating Trade-In</strong>  </p>
<ul>
<li>Check the <code>Is Trade In</code> checkbox in the Sales Invoice.  </li>
<li>A &quot;Trade In&quot; item is automatically added to the <code>items</code> child table.</li>
</ul>
</li>
<li><p><strong>Step 2: Input Trade-In Details</strong>  </p>
<ul>
<li>Enter trade-in item details:<ul>
<li><strong>Item Code</strong>: Select the trade-in item.</li>
<li><strong>Qty</strong>: Enter the quantity of the trade-in item.</li>
<li><strong>UOM</strong>: Select the unit of measure.</li>
<li><strong>Incoming Rate</strong>: Enter the valuation rate of the item.</li>
<li><strong>Batch No</strong>: If required by the item, enter the batch number.</li>
<li><strong>Serial Numbers</strong>: If required, provide serial numbers (one per line).</li>
</ul>
</li>
</ul>
</li>
<li><p><strong>Step 3: Validation</strong>  </p>
<ul>
<li>The system validates:<ul>
<li><strong>Batch Numbers</strong>: Ensures they are provided if required by the item.</li>
<li><strong>Serial Numbers</strong>: Ensures they match the quantity and are provided if required.</li>
<li><strong>Trade-In Value</strong>: Ensures the total trade-in value does not exceed the allowed percentage of the total non-trade-in value.</li>
</ul>
</li>
</ul>
</li>
<li><p><strong>Step 4: Stock Entry Creation</strong>  </p>
<ul>
<li>After submitting the Sales Invoice, a <code>Material Receipt</code> stock entry is created with the trade-in items.</li>
</ul>
</li>
</ol>
<hr>
<h2 id="-controls-in-place-"><strong>Controls in Place</strong></h2>
<ol>
<li><p><strong>Data Validation</strong>:  </p>
<ul>
<li>Ensures trade-in data is complete and accurate:<ul>
<li>Validates batch and serial numbers based on item settings.</li>
<li>Confirms trade-in value does not exceed company-defined limits.</li>
</ul>
</li>
</ul>
</li>
<li><p><strong>Automated Stock Entry</strong>:  </p>
<ul>
<li>Automates the creation of <code>Material Receipt</code> for trade-in items, linking the Sales Invoice for traceability.</li>
</ul>
</li>
<li><p><strong>Confirmation Prompts</strong>:  </p>
<ul>
<li>Prompts users before removing the &quot;Trade In&quot; item to avoid accidental deletions.</li>
</ul>
</li>
<li><p><strong>Field Dependencies</strong>:  </p>
<ul>
<li>Fields like <code>custom_trade_in_item</code>, <code>custom_trade_in_qty</code>, and <code>custom_trade_in_incoming_rate</code> are conditionally enabled only when the item code is &quot;Trade In.&quot;</li>
</ul>
</li>
</ol>
<hr>
<h2 id="-how-to-use-"><strong>How to Use</strong></h2>
<h3 id="step-by-step-instructions">Step-by-Step Instructions</h3>
<ol>
<li><p><strong>Activate Trade-In</strong>:</p>
<ul>
<li>Open a new or existing Sales Invoice.</li>
<li>Check the <code>Is Trade In</code> checkbox.</li>
</ul>
</li>
<li><p><strong>Add Trade-In Details</strong>:</p>
<ul>
<li>Scroll to the <code>items</code> child table.</li>
<li>For the &quot;Trade In&quot; row, fill in the required fields:<ul>
<li><strong>Item</strong>: Select the trade-in item.</li>
<li><strong>Qty</strong>: Enter the quantity.</li>
<li><strong>UOM</strong>: Set the unit of measure.</li>
<li><strong>Incoming Rate</strong>: Provide the incoming rate of the trade-in item.</li>
<li><strong>Batch No/Serial Numbers</strong>: If required, provide these details.</li>
</ul>
</li>
</ul>
</li>
<li><p><strong>Submit the Sales Invoice</strong>:</p>
<ul>
<li>Click <strong>Submit</strong> to finalize the Sales Invoice.</li>
<li>The system performs validation checks and creates a stock entry for the trade-in items.</li>
</ul>
</li>
<li><p><strong>Review Stock Entry</strong>:</p>
<ul>
<li>Navigate to the Stock Entry list to review the created entry.</li>
</ul>
</li>
</ol>
<hr>
<h2 id="-error-messages-and-resolutions-"><strong>Error Messages and Resolutions</strong></h2>
<ol>
<li><p><strong>Batch Number Missing</strong>:</p>
<ul>
<li><em>Error</em>: &quot;Batch No. is mandatory for Item [item code] in row [row number].&quot;</li>
<li><em>Resolution</em>: Add the batch number for the specified trade-in item.</li>
</ul>
</li>
<li><p><strong>Serial Numbers Missing/Incorrect</strong>:</p>
<ul>
<li><em>Error</em>: &quot;Serial Numbers are mandatory for Item [item code] in row [row number].&quot;</li>
<li><em>Resolution</em>: Provide serial numbers for the item as per the quantity.</li>
</ul>
</li>
<li><p><strong>Trade-In Value Exceeded</strong>:</p>
<ul>
<li><em>Error</em>: &quot;Total Trade-In Value exceeds the allowed limit.&quot;</li>
<li><em>Resolution</em>: Adjust the trade-in value or non-trade-in items to comply with the company&#39;s limits.</li>
</ul>
</li>
</ol>
<hr>
<h2 id="-key-notes-"><strong>Key Notes</strong></h2>
<ul>
<li>Ensure <code>custom_trade_in_sales_percentage</code> is configured in the Company settings to define trade-in limits.</li>
<li>Use proper UOM and rates for accurate valuation of trade-in items.</li>
<li>Review stock entries after submission to confirm all trade-in items are accounted for.</li>
</ul>
<p>This manual covers all essential aspects of the Trade-In feature in the Sales Invoice module. For further assistance, refer to the system administrator or support team.</p>
