8848digital / erpnext

Free and Open Source Enterprise Resource Planning (ERP)
https://erpnext.com
GNU General Public License v3.0
0 stars 0 forks source link

Serial numbers not removed after sales return in the item table #756

Open bharatha24272 opened 3 days ago

bharatha24272 commented 3 days ago

Information about bug

When a sales invoice is created for 2 items, and 1 item is returned via a sales return, the quantity is updated correctly, leaving 1 item remaining. However, when I create a sales return for the second item, the quantity is updated correctly, but both serial numbers remain in the item table. I am then forced to manually delete the serial number that was already returned (SN001) and proceed with the return for the second item (SN002).

Example:

A sales invoice is created for 2 units of Item A, with serial numbers SN001 and SN002. After returning 1 unit (SN001), the quantity is updated correctly, leaving 1 unit (SN002). However, when creating another sales return for the second unit (SN002), the quantity is updated correctly, but both serial numbers (SN001 and SN002) are still listed in the item table. This forces me to manually delete the serial number SN001, which has already been returned, before proceeding with the return for the second item.

Expected Behavior:

After returning an item (e.g., SN001), I should only be able to select from the remaining quantity (SN002), and the serial numbers of the returned items (SN001) should be automatically removed from the item table.

Module

selling

Version

Assets: v0.0.1 (pre-prod)

CRM: v0.0.1 (master)

ERPNext: v15.36.2 (pre-prod)

Frappe Framework: v15.41.0 (pre-prod)

Payments: v0.0.1 (version-15)

Projects: v0.0.1 (master)

sales_commission: v0.0.1 (master)

Installation method

FrappeCloud

Relevant log output / Stack trace / Full Error Message.

No response

bharatha24272 commented 2 days ago

https://drive.google.com/drive/folders/1f10K9H4MgvChqOTBtBOZfNYIZ3sMvbW0?usp=sharing