From 7d665818b5bc56d3d719d7971fdd7f723ddcdb0c Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Fri, 23 Nov 2012 17:56:30 +0530 Subject: [PATCH] moved delivered_items_to_be_billed from stock to accounts --- .../report}/__init__.py | 0 accounts/report/delivered_items_to_be_billed/__init__.py | 0 .../delivered_items_to_be_billed.txt | 4 ++-- patches/november_2012/remove_old_unbilled_items_report.py | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) rename {stock/report/delivered_items_to_be_billed => accounts/report}/__init__.py (100%) create mode 100644 accounts/report/delivered_items_to_be_billed/__init__.py rename {stock => accounts}/report/delivered_items_to_be_billed/delivered_items_to_be_billed.txt (93%) diff --git a/stock/report/delivered_items_to_be_billed/__init__.py b/accounts/report/__init__.py similarity index 100% rename from stock/report/delivered_items_to_be_billed/__init__.py rename to accounts/report/__init__.py diff --git a/accounts/report/delivered_items_to_be_billed/__init__.py b/accounts/report/delivered_items_to_be_billed/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/stock/report/delivered_items_to_be_billed/delivered_items_to_be_billed.txt b/accounts/report/delivered_items_to_be_billed/delivered_items_to_be_billed.txt similarity index 93% rename from stock/report/delivered_items_to_be_billed/delivered_items_to_be_billed.txt rename to accounts/report/delivered_items_to_be_billed/delivered_items_to_be_billed.txt index 16c5b099ee..45c9bb4df2 100644 --- a/stock/report/delivered_items_to_be_billed/delivered_items_to_be_billed.txt +++ b/accounts/report/delivered_items_to_be_billed/delivered_items_to_be_billed.txt @@ -4,11 +4,11 @@ "docstatus": 0, "creation": "2012-11-23 16:46:22", "modified_by": "Administrator", - "modified": "2012-11-23 17:41:03" + "modified": "2012-11-23 17:55:12" }, { "name": "__common__", - "ref_doctype": "Delivery Note", + "ref_doctype": "Sales Invoice", "doctype": "Report", "is_standard": "Yes", "query": "select \n `tabDelivery Note`.`name` as \"Delivery Note:Link/Delivery Note:120\",\n `tabDelivery Note`.`status` as \"Status\",\n `tabDelivery Note`.`posting_date` as \"Date:Date\",\n `tabDelivery Note Item`.item_code as \"Item:Link/Item:120\",\n `tabDelivery Note Item`.description as \"Description\",\n `tabDelivery Note Item`.qty as \"Qty:Float\",\n `tabDelivery Note Item`.billed_qty as \"Billed Qty:Float\"\nfrom\n `tabDelivery Note`, `tabDelivery Note Item`\nwhere\n `tabDelivery Note Item`.`parent` = `tabDelivery Note`.`name`\n and `tabDelivery Note`.docstatus = 1\n and `tabDelivery Note Item`.billed_qty < `tabDelivery Note Item`.qty\norder by `tabDelivery Note`.posting_date asc" diff --git a/patches/november_2012/remove_old_unbilled_items_report.py b/patches/november_2012/remove_old_unbilled_items_report.py index bc7db184a1..2b3fbef234 100644 --- a/patches/november_2012/remove_old_unbilled_items_report.py +++ b/patches/november_2012/remove_old_unbilled_items_report.py @@ -3,4 +3,4 @@ import webnotes def execute(): webnotes.conn.sql("""delete from `tabSearch Criteria` where name='Delivery Note Itemwise Pending To Bill'""") from webnotes.modules import reload_doc - reload_doc("stock", "report", "delivered_items_to_be_billed") \ No newline at end of file + reload_doc("accounts", "report", "delivered_items_to_be_billed") \ No newline at end of file