erpnext icon indicating copy to clipboard operation
erpnext copied to clipboard

fix: negative stock qty error for stock reconciliation

Open rohitwaghchaure opened this issue 9 months ago • 0 comments

Steps To Replicate Issue

  1. Create Purchase Receipt for 10 Qty with Batch Item (First Batch)
  2. Create Deliver Note for 1 Qty balance qty 9 (First Batch)
  3. Create Deliver Note for 1 Qty balance qty 8 (First Batch)
  4. Create Deliver Note for 1 Qty balance qty 7 (First Batch)
  5. Create Deliver Note for 1 Qty balance qty 6 (First Batch)
  6. Create Deliver Note for 1 Qty balance qty 5 (First Batch)
  7. Create Deliver Note for 1 Qty balance qty 4 (First Batch)
  8. Create Purchase Receipt for 3 Qty with Batch Item (Second Batch)
  9. Create Stock Reco against the First batch and keep qty as 9
  10. Create Deliver Note for 3 Qty balance qty against the second batch
  11. Create Deliver Note for 3 Qty balance qty 6 (Second Batch)
  12. Create Deliver Note for 3 Qty balance qty 3 (Second Batch)
  13. Create Deliver Note for 3 Qty balance qty 0 (Second Batch)
  14. Now Cancel the delivery note which was created at step 7
  15. Delivery Note get cancel but when you try to complete reposting, system will throw the negative stock error.

rohitwaghchaure avatar May 01 '24 10:05 rohitwaghchaure