From 0b39e95011835517c9e91afc9b972474d0e1d590 Mon Sep 17 00:00:00 2001 From: Akhilesh Darjee Date: Thu, 31 Oct 2013 12:35:52 +0530 Subject: [PATCH] [cleanup] moved for territory, price list and item price doctype from setup to stock --- patches/august_2013/p02_rename_price_list.py | 2 +- patches/june_2013/p03_buying_selling_for_price_list.py | 4 ++-- patches/june_2013/p07_taxes_price_list_for_territory.py | 4 ++-- .../p02_update_price_list_and_item_details_in_item_price.py | 2 +- .../p03_modify_item_price_include_in_price_list.py | 4 ++-- {setup => stock}/doctype/for_territory/__init__.py | 0 {setup => stock}/doctype/for_territory/for_territory.py | 0 {setup => stock}/doctype/for_territory/for_territory.txt | 0 {setup => stock}/doctype/item_price/README.md | 0 {setup => stock}/doctype/item_price/__init__.py | 0 {setup => stock}/doctype/item_price/item_price.js | 0 {setup => stock}/doctype/item_price/item_price.py | 0 {setup => stock}/doctype/item_price/item_price.txt | 0 {setup => stock}/doctype/item_price/test_item_price.py | 0 {setup => stock}/doctype/price_list/README.md | 0 {setup => stock}/doctype/price_list/__init__.py | 0 {setup => stock}/doctype/price_list/price_list.css | 0 {setup => stock}/doctype/price_list/price_list.js | 0 {setup => stock}/doctype/price_list/price_list.py | 0 {setup => stock}/doctype/price_list/price_list.txt | 0 {setup => stock}/doctype/price_list/test_price_list.py | 0 21 files changed, 8 insertions(+), 8 deletions(-) rename {setup => stock}/doctype/for_territory/__init__.py (100%) rename {setup => stock}/doctype/for_territory/for_territory.py (100%) rename {setup => stock}/doctype/for_territory/for_territory.txt (100%) rename {setup => stock}/doctype/item_price/README.md (100%) rename {setup => stock}/doctype/item_price/__init__.py (100%) rename {setup => stock}/doctype/item_price/item_price.js (100%) rename {setup => stock}/doctype/item_price/item_price.py (100%) rename {setup => stock}/doctype/item_price/item_price.txt (100%) rename {setup => stock}/doctype/item_price/test_item_price.py (100%) rename {setup => stock}/doctype/price_list/README.md (100%) rename {setup => stock}/doctype/price_list/__init__.py (100%) rename {setup => stock}/doctype/price_list/price_list.css (100%) rename {setup => stock}/doctype/price_list/price_list.js (100%) rename {setup => stock}/doctype/price_list/price_list.py (100%) rename {setup => stock}/doctype/price_list/price_list.txt (100%) rename {setup => stock}/doctype/price_list/test_price_list.py (100%) diff --git a/patches/august_2013/p02_rename_price_list.py b/patches/august_2013/p02_rename_price_list.py index 0a1929925b..dbe268f0ad 100644 --- a/patches/august_2013/p02_rename_price_list.py +++ b/patches/august_2013/p02_rename_price_list.py @@ -6,7 +6,7 @@ import webnotes def execute(): webnotes.reload_doc("selling", "doctype", "shopping_cart_price_list") - webnotes.reload_doc("setup", "doctype", "item_price") + webnotes.reload_doc("stock", "doctype", "item_price") for t in [ ("Supplier Quotation", "price_list_name", "buying_price_list"), diff --git a/patches/june_2013/p03_buying_selling_for_price_list.py b/patches/june_2013/p03_buying_selling_for_price_list.py index ead97ab2a8..61cddd0b28 100644 --- a/patches/june_2013/p03_buying_selling_for_price_list.py +++ b/patches/june_2013/p03_buying_selling_for_price_list.py @@ -7,8 +7,8 @@ from webnotes.utils import cint import MySQLdb def execute(): - webnotes.reload_doc("setup", "doctype", "price_list") - webnotes.reload_doc("setup", "doctype", "item_price") + webnotes.reload_doc("stock", "doctype", "price_list") + webnotes.reload_doc("stock", "doctype", "item_price") try: for price_list in webnotes.conn.sql_list("""select name from `tabPrice List`"""): diff --git a/patches/june_2013/p07_taxes_price_list_for_territory.py b/patches/june_2013/p07_taxes_price_list_for_territory.py index f57ecf8173..d523ea934b 100644 --- a/patches/june_2013/p07_taxes_price_list_for_territory.py +++ b/patches/june_2013/p07_taxes_price_list_for_territory.py @@ -4,8 +4,8 @@ import webnotes def execute(): - webnotes.reload_doc("setup", "doctype", "for_territory") - webnotes.reload_doc("setup", "doctype", "price_list") + webnotes.reload_doc("stock", "doctype", "for_territory") + webnotes.reload_doc("stock", "doctype", "price_list") webnotes.reload_doc("accounts", "doctype", "sales_taxes_and_charges_master") webnotes.reload_doc("accounts", "doctype", "shipping_rule") diff --git a/patches/october_2013/p02_update_price_list_and_item_details_in_item_price.py b/patches/october_2013/p02_update_price_list_and_item_details_in_item_price.py index 209ebf3574..4a90b8c634 100644 --- a/patches/october_2013/p02_update_price_list_and_item_details_in_item_price.py +++ b/patches/october_2013/p02_update_price_list_and_item_details_in_item_price.py @@ -5,7 +5,7 @@ from __future__ import unicode_literals import webnotes def execute(): - webnotes.reload_doc("setup", "doctype", "item_price") + webnotes.reload_doc("stock", "doctype", "item_price") webnotes.conn.sql("""update `tabItem Price` ip, `tabItem` i set ip.item_name=i.item_name, ip.item_description=i.description diff --git a/patches/september_2013/p03_modify_item_price_include_in_price_list.py b/patches/september_2013/p03_modify_item_price_include_in_price_list.py index 8ca6d76f9c..2400918473 100644 --- a/patches/september_2013/p03_modify_item_price_include_in_price_list.py +++ b/patches/september_2013/p03_modify_item_price_include_in_price_list.py @@ -5,8 +5,8 @@ from __future__ import unicode_literals import webnotes def execute(): - webnotes.reload_doc("setup", "doctype", "price_list") - webnotes.reload_doc("setup", "doctype", "item_price") + webnotes.reload_doc("stock", "doctype", "price_list") + webnotes.reload_doc("stock", "doctype", "item_price") webnotes.reload_doc("stock", "doctype", "item") webnotes.conn.sql("""update `tabItem Price` set parenttype='Price List', diff --git a/setup/doctype/for_territory/__init__.py b/stock/doctype/for_territory/__init__.py similarity index 100% rename from setup/doctype/for_territory/__init__.py rename to stock/doctype/for_territory/__init__.py diff --git a/setup/doctype/for_territory/for_territory.py b/stock/doctype/for_territory/for_territory.py similarity index 100% rename from setup/doctype/for_territory/for_territory.py rename to stock/doctype/for_territory/for_territory.py diff --git a/setup/doctype/for_territory/for_territory.txt b/stock/doctype/for_territory/for_territory.txt similarity index 100% rename from setup/doctype/for_territory/for_territory.txt rename to stock/doctype/for_territory/for_territory.txt diff --git a/setup/doctype/item_price/README.md b/stock/doctype/item_price/README.md similarity index 100% rename from setup/doctype/item_price/README.md rename to stock/doctype/item_price/README.md diff --git a/setup/doctype/item_price/__init__.py b/stock/doctype/item_price/__init__.py similarity index 100% rename from setup/doctype/item_price/__init__.py rename to stock/doctype/item_price/__init__.py diff --git a/setup/doctype/item_price/item_price.js b/stock/doctype/item_price/item_price.js similarity index 100% rename from setup/doctype/item_price/item_price.js rename to stock/doctype/item_price/item_price.js diff --git a/setup/doctype/item_price/item_price.py b/stock/doctype/item_price/item_price.py similarity index 100% rename from setup/doctype/item_price/item_price.py rename to stock/doctype/item_price/item_price.py diff --git a/setup/doctype/item_price/item_price.txt b/stock/doctype/item_price/item_price.txt similarity index 100% rename from setup/doctype/item_price/item_price.txt rename to stock/doctype/item_price/item_price.txt diff --git a/setup/doctype/item_price/test_item_price.py b/stock/doctype/item_price/test_item_price.py similarity index 100% rename from setup/doctype/item_price/test_item_price.py rename to stock/doctype/item_price/test_item_price.py diff --git a/setup/doctype/price_list/README.md b/stock/doctype/price_list/README.md similarity index 100% rename from setup/doctype/price_list/README.md rename to stock/doctype/price_list/README.md diff --git a/setup/doctype/price_list/__init__.py b/stock/doctype/price_list/__init__.py similarity index 100% rename from setup/doctype/price_list/__init__.py rename to stock/doctype/price_list/__init__.py diff --git a/setup/doctype/price_list/price_list.css b/stock/doctype/price_list/price_list.css similarity index 100% rename from setup/doctype/price_list/price_list.css rename to stock/doctype/price_list/price_list.css diff --git a/setup/doctype/price_list/price_list.js b/stock/doctype/price_list/price_list.js similarity index 100% rename from setup/doctype/price_list/price_list.js rename to stock/doctype/price_list/price_list.js diff --git a/setup/doctype/price_list/price_list.py b/stock/doctype/price_list/price_list.py similarity index 100% rename from setup/doctype/price_list/price_list.py rename to stock/doctype/price_list/price_list.py diff --git a/setup/doctype/price_list/price_list.txt b/stock/doctype/price_list/price_list.txt similarity index 100% rename from setup/doctype/price_list/price_list.txt rename to stock/doctype/price_list/price_list.txt diff --git a/setup/doctype/price_list/test_price_list.py b/stock/doctype/price_list/test_price_list.py similarity index 100% rename from setup/doctype/price_list/test_price_list.py rename to stock/doctype/price_list/test_price_list.py