Item Manufacturer/Supplier Details in item doctype
diff --git a/erpnext/patches/jan_mar_2012/jan_production_patches.py b/erpnext/patches/jan_mar_2012/jan_production_patches.py
index f868cea..9f730c9 100644
--- a/erpnext/patches/jan_mar_2012/jan_production_patches.py
+++ b/erpnext/patches/jan_mar_2012/jan_production_patches.py
@@ -6,4 +6,6 @@
"""
from webnotes.modules.module_manager import reload_doc
- reload_doc('stock', 'doctype', 'stock_entry_detail')
+ reload_doc('stock', 'doctype', 'stock_entry_detail')
+ reload_doc('stock', 'doctype', 'item_supplier')
+ reload_doc('stock', 'doctype', 'item')
diff --git a/erpnext/stock/doctype/item/item.txt b/erpnext/stock/doctype/item/item.txt
index c670700..d6ac71b 100644
--- a/erpnext/stock/doctype/item/item.txt
+++ b/erpnext/stock/doctype/item/item.txt
@@ -5,14 +5,14 @@
{
'creation': '2010-08-08 17:09:05',
'docstatus': 0,
- 'modified': '2011-12-20 11:15:42',
+ 'modified': '2012-01-17 18:39:39',
'modified_by': 'Administrator',
'owner': 'Administrator'
},
# These values are common for all DocType
{
- '_last_update': '1323333040',
+ '_last_update': '1325570647',
'allow_attach': 1,
'allow_trash': 1,
'autoname': 'field:item_code',
@@ -29,7 +29,7 @@
'show_in_menu': 0,
'subject': '%(item_name)s',
'tag_fields': 'item_group',
- 'version': 162
+ 'version': 164
},
# These values are common for all DocField
@@ -624,6 +624,34 @@
# DocField
{
'doctype': 'DocField',
+ 'fieldname': 'manufacturer',
+ 'fieldtype': 'Data',
+ 'label': 'Manufacturer',
+ 'permlevel': 0
+ },
+
+ # DocField
+ {
+ 'doctype': 'DocField',
+ 'fieldname': 'manufacturer_part_no',
+ 'fieldtype': 'Data',
+ 'label': 'Manufacturer Part Number',
+ 'permlevel': 0
+ },
+
+ # DocField
+ {
+ 'doctype': 'DocField',
+ 'fieldname': 'item_supplier_details',
+ 'fieldtype': 'Table',
+ 'label': 'Item Supplier Details',
+ 'options': 'Item Supplier',
+ 'permlevel': 0
+ },
+
+ # DocField
+ {
+ 'doctype': 'DocField',
'fieldtype': 'Section Break',
'label': 'Sales Details',
'oldfieldtype': 'Section Break',
diff --git a/erpnext/stock/doctype/item_supplier/__init__.py b/erpnext/stock/doctype/item_supplier/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/erpnext/stock/doctype/item_supplier/__init__.py
diff --git a/erpnext/stock/doctype/item_supplier/item_supplier.txt b/erpnext/stock/doctype/item_supplier/item_supplier.txt
new file mode 100644
index 0000000..609c1e9
--- /dev/null
+++ b/erpnext/stock/doctype/item_supplier/item_supplier.txt
@@ -0,0 +1,58 @@
+# DocType, Item Supplier
+[
+
+ # These values are common in all dictionaries
+ {
+ 'creation': '2012-01-17 18:36:35',
+ 'docstatus': 0,
+ 'modified': '2012-01-17 18:40:37',
+ 'modified_by': 'Administrator',
+ 'owner': 'Administrator'
+ },
+
+ # These values are common for all DocType
+ {
+ 'colour': 'White:FFF',
+ 'doctype': 'DocType',
+ 'istable': 1,
+ 'module': 'Stock',
+ 'name': '__common__',
+ 'section_style': 'Simple',
+ 'show_in_menu': 0,
+ 'version': 3
+ },
+
+ # These values are common for all DocField
+ {
+ 'doctype': 'DocField',
+ 'name': '__common__',
+ 'parent': 'Item Supplier',
+ 'parentfield': 'fields',
+ 'parenttype': 'DocType',
+ 'permlevel': 0
+ },
+
+ # DocType, Item Supplier
+ {
+ 'doctype': 'DocType',
+ 'name': 'Item Supplier'
+ },
+
+ # DocField
+ {
+ 'doctype': 'DocField',
+ 'fieldname': 'supplier',
+ 'fieldtype': 'Link',
+ 'label': 'Supplier',
+ 'options': 'Supplier'
+ },
+
+ # DocField
+ {
+ 'doctype': 'DocField',
+ 'fieldname': 'supplier_part_no',
+ 'fieldtype': 'Data',
+ 'label': 'Supplier Part Number',
+ 'width': '200px'
+ }
+]
\ No newline at end of file