Auto fetch batches based on quantity on POS (#11004) (#11767)

* prevent premature escape when item has serial no and batch no

* fetch actual_batch_qty for item

* add available_qty to dialog

* remove expired batches from drop-down

* Update queries.py
This commit is contained in:
tundebabzy
2017-11-29 06:23:09 +01:00
committed by Nabin Hait
parent d7216b559f
commit 2a4fefc6ff
3 changed files with 21 additions and 3 deletions

View File

@@ -84,6 +84,7 @@ def get_item_details(args):
if out.has_batch_no and not args.get("batch_no"):
out.batch_no = get_batch_no(out.item_code, out.warehouse, out.qty)
out.update(get_batch_qty(out.batch_no, out.warehouse, out.item_code))
if args.transaction_date and item.lead_time_days:
out.schedule_date = out.lead_time_date = add_days(args.transaction_date,