[buying] [manufacturing] Added new Reports and fixes for demo

This commit is contained in:
Rushabh Mehta
2013-08-20 15:18:42 +05:30
parent d8982d4af4
commit 20a109452a
12 changed files with 198 additions and 76 deletions

View File

@@ -20,8 +20,7 @@ class DocType(BuyingController):
def is_item_table_empty(self, obj):
if not len(obj.doclist.get({"parentfield": obj.fname})):
msgprint(_("Hey there! You need to put at least one item in \
the item table."), raise_exception=True)
msgprint(_("You need to put at least one item in the item table."), raise_exception=True)
def get_supplier_details(self, name = ''):
details = sql("select supplier_name,address from `tabSupplier` where name = '%s' and docstatus != 2" %(name), as_dict = 1)

View File

@@ -110,6 +110,11 @@ wn.module_page["Buying"] = [
right: true,
icon: "icon-list",
items: [
{
"label":wn._("Items To Be Requested"),
route: "query-report/Items To Be Requested",
doctype: "Item"
},
{
"label":wn._("Requested Items To Be Ordered"),
route: "query-report/Requested Items To Be Ordered",