fix(minor): update routes

This commit is contained in:
Rushabh Mehta
2020-11-18 15:00:34 +05:30
parent dc1e240642
commit 542bc01718
38 changed files with 68 additions and 69 deletions

View File

@@ -26,12 +26,12 @@ class FindItemBot(BotParser):
for warehouse in warehouses:
qty = frappe.db.get_value("Bin", {'item_code': item[0], 'warehouse': warehouse.name}, 'actual_qty')
if qty:
out.append(_('{0} units of [{1}](#Form/Item/{1}) found in [{2}](#Form/Warehouse/{2})').format(qty,
out.append(_('{0} units of [{1}](/app/Form/Item/{1}) found in [{2}](/app/Form/Warehouse/{2})').format(qty,
item[0], warehouse.name))
found = True
if not found:
out.append(_('[{0}](#Form/Item/{0}) is out of stock').format(item[0]))
out.append(_('[{0}](/app/Form/Item/{0}) is out of stock').format(item[0]))
return "\n\n".join(out)