Fix: Batch autocomplete was not working so Issue / Return was not working
This commit is contained in:
@ -21,7 +21,7 @@ def batch_term(
|
|||||||
date = None if not d else datetime.datetime.strptime(d, "%d-%b-%Y")
|
date = None if not d else datetime.datetime.strptime(d, "%d-%b-%Y")
|
||||||
list_ = []
|
list_ = []
|
||||||
with SessionFuture() as db:
|
with SessionFuture() as db:
|
||||||
for index, item in enumerate(Batch.list(q, include_nil=False, date=date, db=db)):
|
for index, item in enumerate(Batch.list(q, include_nil=False, date_=date, db=db)):
|
||||||
text = (
|
text = (
|
||||||
f"{item.product.name} ({item.product.units}) {item.quantity_remaining:.2f}@"
|
f"{item.product.name} ({item.product.units}) {item.quantity_remaining:.2f}@"
|
||||||
f"{item.rate:.2f} from {item.name.strftime('%d-%b-%Y')}"
|
f"{item.rate:.2f} from {item.name.strftime('%d-%b-%Y')}"
|
||||||
|
|||||||
Reference in New Issue
Block a user