[fix] Get serial nos using FIFO in Return Delivery Note
diff --git a/erpnext/stock/get_item_details.py b/erpnext/stock/get_item_details.py
index 82446ed..faf3d98 100644
--- a/erpnext/stock/get_item_details.py
+++ b/erpnext/stock/get_item_details.py
@@ -300,7 +300,7 @@
order by timestamp(purchase_date, purchase_time) asc limit %(qty)s""", {
"item_code": args.item_code,
"warehouse": args.warehouse,
- "qty": cint(args.qty)
+ "qty": abs(cint(args.qty))
}))
def get_actual_batch_qty(batch_no,warehouse,item_code):