[fix] [minor] [delivery note]

This commit is contained in:
Nabin Hait 2013-10-05 17:20:23 +05:30
parent 0352f9b827
commit 704a915feb

View File

@ -74,7 +74,7 @@ def get_item_details(args):
out.update(apply_pos_settings(pos_settings, out))
if args.doctype in ("Sales Invoice", "Delivery Note"):
if item_bean.doc.has_serial_no and not args.serial_no:
if item_bean.doc.has_serial_no == "Yes" and not args.serial_no:
out.serial_no = _get_serial_nos_by_fifo(args, item_bean)
return out