<h3> </h3><h3><strong>Acceptance Criteria</strong> </h3><h4><strong>1. Create PO with single or multiple line items</strong> </h4><ul><li><p>Given that a PO is created, </p> </li><li><p>When I add one or more line items, </p> </li><li><p>Then the application should allow saving the PO successfully with those line items. </p> </li> </ul><h4><strong>2. Navigate to ASN screen and enter shipment details</strong> </h4><ul><li><p>Given that I am on the ASN creation screen, </p> </li><li><p>When I select <strong>Supplier name</strong> from a dropdown, choose <strong>ASN date (default: current date)</strong>, select <strong>Mode of shipment</strong> (ship/land/air), enter <strong>Delivery note, Invoice number, Invoice date, Shipment reference number, and Shipped through</strong>, </p> </li><li><p>Then the <span style="display:inline !important;">application<span>&nbsp;</span></span>should capture these shipment details and validate mandatory fields. </p> </li> </ul><h4><strong>3. Select PO and add line items</strong> </h4><ul><li><p>Given that I have entered shipment details, </p> </li><li><p>When I select a <strong>PO number</strong> from the available list and click the <strong>Add button</strong>, </p> </li><li><p>Then the ASN should display all line items related to the selected PO. </p> </li> </ul><h4><strong>4. Display single or multiple line items</strong> </h4><ul><li><p>Given a PO has single or multiple line items, </p> </li><li><p>When the PO is added to ASN, </p> </li><li><p>Then the <span style="display:inline !important;">application<span>&nbsp;</span></span>should display all relevant line items in the ASN details section. </p> </li> </ul><h4><strong>5. Edit quantity &amp; traceability details</strong> </h4><ul><li><p>Given PO line items are displayed, </p> </li><li><p>When I edit <strong>quantity</strong>, </p><ul><li><p>Then the <span style="display:inline !important;">application<span>&nbsp;</span></span>should validate against <strong>PO quantity and balance quantity</strong> (should not exceed the remaining balance). </p> </li> </ul> </li><li><p>If the item is <strong>traceable</strong>, </p><ul><li><p>Then I should be able to enter <strong>Serial Numbers (comma-separated), Lot Number, and Expiry Date</strong>. </p> </li><li><p>The system should not allow <strong>current date or future date</strong> as Expiry Date. </p> </li> </ul> </li> </ul><h4><strong>6. Save options (Draft, Submit, Back)</strong> </h4><ul><li><p>Given ASN details are filled, </p> </li><li><p>When I click <strong>Save as Draft</strong>, </p><ul><li><p>Then the record should be saved without final submission. </p> </li> </ul> </li><li><p>When I click <strong>Save &amp; Submit</strong>, </p><ul><li><p>Then the record should be validated and submitted for processing. </p> </li> </ul> </li><li><p>When I click <strong>Back</strong>, </p><ul><li><p>Then the <span style="display:inline !important;">application<span>&nbsp;</span></span>should navigate to the previous screen without saving. </p> </li> </ul> </li> </ul><h4><strong>7. Approval flow (if enabled)</strong> </h4><ul><li><p>Given the approval workflow is enabled, </p> </li><li><p>When I create and submit an ASN, </p> </li><li><p>Then the <span style="display:inline !important;">application<span>&nbsp;</span></span>should allow routing for approval either <strong>Employee-wise</strong> or <strong>Designation-wise</strong> as per configuration. </p> </li> </ul><br>