[fix] test
This commit is contained in:
parent
e4e00d2215
commit
52d703a232
@ -115,9 +115,8 @@ def set_batch_nos(doc, warehouse_field, throw = False):
|
||||
if flt(batch_qty) < flt(d.qty):
|
||||
frappe.throw(_("Row #{0}: The batch {1} has only {2} qty. Please select another batch which has {3} qty available or split the row into multiple rows, to deliver/issue from multiple batches").format(d.idx, d.batch_no, batch_qty, d.qty))
|
||||
|
||||
def get_batch_no(item_code, warehouse, qty):
|
||||
'''get the batch number with for the given item_code, warehouse and qty if there
|
||||
is only one batch'''
|
||||
def get_batch_no(item_code, warehouse, qty, throw=False):
|
||||
'''get the smallest batch with for the given item_code, warehouse and qty'''
|
||||
|
||||
batch_no = None
|
||||
batches = get_batch_qty(item_code = item_code, warehouse = warehouse)
|
||||
|
Loading…
x
Reference in New Issue
Block a user