Changes in patch of feature setup and added description against each feature
diff --git a/patches/patch.py b/patches/patch.py
index c8b0472..a7c2511 100644
--- a/patches/patch.py
+++ b/patches/patch.py
@@ -281,3 +281,9 @@
reload_doc('setup', 'doctype','feature_setup')
reload_doc('stock','doctype','item')
sql("update tabDocField set label='Produced Qty',description='Updated after finished goods are transferred to FG Warehouse through Stock Entry' where parent='Production Order' and fieldname='produced_qty'")
+ rs = sql("select fieldname from tabDocField where parent='Features Setup' and fieldname is not null")
+ from webnotes.model.doc import Document
+ m = Document('Features Setup')
+ for d in rs:
+ m.fields[d[0]] = 1
+ m.save()
\ No newline at end of file
diff --git a/setup/doctype/features_setup/features_setup.txt b/setup/doctype/features_setup/features_setup.txt
index ca0d2d4..224d175 100644
--- a/setup/doctype/features_setup/features_setup.txt
+++ b/setup/doctype/features_setup/features_setup.txt
@@ -5,14 +5,14 @@
{
'creation': '2011-08-25 16:53:56',
'docstatus': 0,
- 'modified': '2011-08-31 09:31:39',
+ 'modified': '2011-08-31 15:05:53',
'modified_by': 'Administrator',
'owner': 'Administrator'
},
# These values are common for all DocType
{
- '_last_update': '1314763100',
+ '_last_update': '1314783102',
'colour': 'White:FFF',
'doctype': 'DocType',
'issingle': 1,
@@ -21,7 +21,7 @@
'name_case': 'Title Case',
'section_style': 'Simple',
'show_in_menu': 1,
- 'version': 11
+ 'version': 16
},
# These values are common for all DocField
@@ -67,6 +67,132 @@
# DocField
{
+ 'doctype': 'DocField',
+ 'fieldtype': 'Section Break',
+ 'label': 'Materials'
+ },
+
+ # DocField
+ {
+ 'colour': 'White:FFF',
+ 'description': 'To track item in sales and purchase documents based on their serial nos. This is can also used to track warranty details of the product.',
+ 'doctype': 'DocField',
+ 'fieldname': 'item_searial_nos',
+ 'fieldtype': 'Check',
+ 'label': 'Item Serial Nos'
+ },
+
+ # DocField
+ {
+ 'colour': 'White:FFF',
+ 'description': 'To track items in sales and purchase documents with batch nos<br><b>Preferred Industry: Chemicals etc</b>',
+ 'doctype': 'DocField',
+ 'fieldname': 'item_batch_nos',
+ 'fieldtype': 'Check',
+ 'label': 'Item Batch Nos'
+ },
+
+ # DocField
+ {
+ 'colour': 'White:FFF',
+ 'description': 'To track brand name in the following documents<br>\nDelivery Note, Enuiry, Indent, Item, Purchase Order, Purchase Voucher, Purchaser Receipt, Quotation, Receivable Voucher, Sales BOM, Sales Order, Serial No',
+ 'doctype': 'DocField',
+ 'fieldname': 'brands',
+ 'fieldtype': 'Check',
+ 'label': 'Brands'
+ },
+
+ # DocField
+ {
+ 'doctype': 'DocField',
+ 'fieldtype': 'Column Break'
+ },
+
+ # DocField
+ {
+ 'colour': 'White:FFF',
+ 'description': '1. To maintain the customer wise item code and to make them searchable based on their code use this option',
+ 'doctype': 'DocField',
+ 'fieldname': 'item_advanced',
+ 'fieldtype': 'Check',
+ 'label': 'Item Advanced'
+ },
+
+ # DocField
+ {
+ 'colour': 'White:FFF',
+ 'description': 'If Sale BOM is defined, the actual BOM of the Pack is displayed as table.\nAvailable in Delivery Note and Sales Order',
+ 'doctype': 'DocField',
+ 'fieldname': 'packing_details',
+ 'fieldtype': 'Check',
+ 'label': 'Packing Detials'
+ },
+
+ # DocField
+ {
+ 'colour': 'White:FFF',
+ 'description': 'To get Item Group in details table',
+ 'doctype': 'DocField',
+ 'fieldname': 'item_group_in_details',
+ 'fieldtype': 'Check',
+ 'label': 'Item Groups in Details'
+ },
+
+ # DocField
+ {
+ 'doctype': 'DocField',
+ 'fieldtype': 'Section Break',
+ 'label': 'Sales and Purchase'
+ },
+
+ # DocField
+ {
+ 'colour': 'White:FFF',
+ 'description': 'All export related fields like currency, conversion rate, export total, export grand total etc are available in <br>\nDelivery Note, POS, Quotation, Sales Invoice, Sales Order etc.',
+ 'doctype': 'DocField',
+ 'fieldname': 'exports',
+ 'fieldtype': 'Check',
+ 'label': 'Exports'
+ },
+
+ # DocField
+ {
+ 'colour': 'White:FFF',
+ 'description': 'All import related fields like currency, conversion rate, import total, import grand total etc are available in <br>\nPurchase Receipt, Supplier Quotation, Purchase Invoice, Purchase Order etc.',
+ 'doctype': 'DocField',
+ 'fieldname': 'imports',
+ 'fieldtype': 'Check',
+ 'label': 'Imports'
+ },
+
+ # DocField
+ {
+ 'doctype': 'DocField',
+ 'fieldtype': 'Column Break'
+ },
+
+ # DocField
+ {
+ 'colour': 'White:FFF',
+ 'description': 'Field available in Delivery Note, Quotation, Receivable Voucher, Sales Order',
+ 'doctype': 'DocField',
+ 'fieldname': 'discounts',
+ 'fieldtype': 'Check',
+ 'label': 'Discounts'
+ },
+
+ # DocField
+ {
+ 'colour': 'White:FFF',
+ 'description': 'To track any installation or commissioning related work after sales',
+ 'doctype': 'DocField',
+ 'fieldname': 'after_sales_installations',
+ 'fieldtype': 'Check',
+ 'label': 'After Sale Installations'
+ },
+
+ # DocField
+ {
'description': 'Available in \nBill Of Materials, Delivery Note, Payable Voucher, Production Order, Purchase Order, Purchase Receipt, Receivable Voucher, Sales Order, Stock Entry, Timesheet',
'doctype': 'DocField',
'fieldname': 'projects',
@@ -77,60 +203,67 @@
# DocField
{
'colour': 'White:FFF',
- 'description': 'Available in Delivery Note and Sales Order',
+ 'description': 'If you have Sales Team and Sale Partners (Channel Partners) they can be tagged and maintain their contribution in the sales activity',
'doctype': 'DocField',
- 'fieldname': 'packing_details',
+ 'fieldname': 'sales_extras',
'fieldtype': 'Check',
- 'label': 'Packing Detials'
+ 'label': 'Sales Extras'
+ },
+
+ # DocField
+ {
+ 'doctype': 'DocField',
+ 'fieldtype': 'Section Break',
+ 'label': 'Production'
},
# DocField
{
'colour': 'White:FFF',
- 'description': 'Available in Delivery Note, Quotation, Receivable Voucher, Sales Order',
+ 'description': 'If you involve in manufacturing activity<br>\nEnables item <b>Is Manufactured</b>',
'doctype': 'DocField',
- 'fieldname': 'discounts',
+ 'fieldname': 'manufacturing',
'fieldtype': 'Check',
- 'label': 'Discounts'
+ 'label': 'Manufacturing'
+ },
+
+ # DocField
+ {
+ 'doctype': 'DocField',
+ 'fieldtype': 'Column Break'
},
# DocField
{
'colour': 'White:FFF',
- 'description': 'Availble in Delivery Note, Enuiry, Indent, Item, Purchase Order, Purchase Voucher, Purchaser Receipt, Quotation, Receivable Voucher, Sales BOM, Sales Order, Serial No',
+ 'description': 'If you follow Quality Inspection<br>\nEnables item QA Required and QA No in Purchase Receipt',
'doctype': 'DocField',
- 'fieldname': 'brands',
+ 'fieldname': 'quality',
'fieldtype': 'Check',
- 'label': 'Brands'
- },
-
- # DocField
- {
- 'doctype': 'DocField',
- 'fieldname': 'after_sales_installations',
- 'fieldtype': 'Check',
- 'label': 'After Sale Installations'
- },
-
- # DocField
- {
- 'doctype': 'DocField',
- 'fieldname': 'item_batch_nos',
- 'fieldtype': 'Check',
- 'label': 'Item Batch Nos'
- },
-
- # DocField
- {
- 'doctype': 'DocField',
- 'fieldname': 'item_searial_nos',
- 'fieldtype': 'Check',
- 'label': 'Item Serial Nos'
+ 'label': 'Quality'
},
# DocField
{
'colour': 'White:FFF',
+ 'description': 'To enable <b>Point of Sale</b> features',
+ 'doctype': 'DocField',
+ 'fieldname': 'pos',
+ 'fieldtype': 'Check',
+ 'label': 'Point of Sale'
+ },
+
+ # DocField
+ {
+ 'doctype': 'DocField',
+ 'fieldtype': 'Section Break',
+ 'label': 'Miscelleneous'
+ },
+
+ # DocField
+ {
+ 'colour': 'White:FFF',
+ 'description': 'If you have long print formats, this feature can be used to split the page to be printed on multiple pages with all headers and footers on each page',
'doctype': 'DocField',
'fieldname': 'page_break',
'fieldtype': 'Check',
@@ -145,73 +278,11 @@
# DocField
{
- 'doctype': 'DocField',
- 'fieldname': 'item_group_in_details',
- 'fieldtype': 'Check',
- 'label': 'Item Groups in Details'
- },
-
- # DocField
- {
+ 'colour': 'White:FFF',
+ 'description': 'Enables <b>More Info.</b> in all documents',
'doctype': 'DocField',
'fieldname': 'more_info',
'fieldtype': 'Check',
'label': 'More Info'
- },
-
- # DocField
- {
- 'doctype': 'DocField',
- 'fieldname': 'exports',
- 'fieldtype': 'Check',
- 'label': 'Exports'
- },
-
- # DocField
- {
- 'doctype': 'DocField',
- 'fieldname': 'imports',
- 'fieldtype': 'Check',
- 'label': 'Imports'
- },
-
- # DocField
- {
- 'doctype': 'DocField',
- 'fieldname': 'item_advanced',
- 'fieldtype': 'Check',
- 'label': 'Item Advanced'
- },
-
- # DocField
- {
- 'doctype': 'DocField',
- 'fieldname': 'sales_extras',
- 'fieldtype': 'Check',
- 'label': 'Sales Extras'
- },
-
- # DocField
- {
- 'doctype': 'DocField',
- 'fieldname': 'quality',
- 'fieldtype': 'Check',
- 'label': 'Quality'
- },
-
- # DocField
- {
- 'doctype': 'DocField',
- 'fieldname': 'manufacturing',
- 'fieldtype': 'Check',
- 'label': 'Manufacturing'
- },
-
- # DocField
- {
- 'doctype': 'DocField',
- 'fieldname': 'pos',
- 'fieldtype': 'Check',
- 'label': 'Point of Sale'
}
]
\ No newline at end of file
diff --git a/startup/startup.js b/startup/startup.js
index 1ec66d5..942f4ef 100644
--- a/startup/startup.js
+++ b/startup/startup.js
@@ -648,13 +648,13 @@
'Receivable Voucher': {'fields':['conversion_rate','currency','grand_total_export','in_words_export','rounded_total_export'],'entries':['base_ref_rate','export_amount','export_rate']},
'Item': {'ref_rate_details':['ref_currency']},
'Sales BOM': {'fields':['currency']},
- 'Sales Order': {'fields':['Note1','OT Notes','conversion_rate','currency','grand_total_export','in_words_export','rounded_total_export'],'sales_order_details':['base_ref_rate','export_amount','export_rate']},
- 'Supplier Quotation': {'fields':['conversion_rate','currency']}
+ 'Sales Order': {'fields':['Note1','OT Notes','conversion_rate','currency','grand_total_export','in_words_export','rounded_total_export'],'sales_order_details':['base_ref_rate','export_amount','export_rate']}
},
'imports': {
'Payable Voucher': {'fields':['conversion_rate','currency','grand_total_import','in_words_import','net_total_import','other_charges_added_import','other_charges_deducted_import'],'entries':['import_amount','import_rate']},
'Purchase Order': {'fields':['Note HTML','conversion_rate','currency','grand_total_import','in_words_import','net_total_import','other_charges_added_import','other_charges_deducted_import'],'po_details':['import_amount','import_rate']},
- 'Purchase Receipt': {'fields':['conversion_rate','currency','grand_total_import','in_words_import','net_total_import','other_charges_added_import','other_charges_deducted_import'],'purchase_receipt_details':['import_amount','import_rate']}
+ 'Purchase Receipt': {'fields':['conversion_rate','currency','grand_total_import','in_words_import','net_total_import','other_charges_added_import','other_charges_deducted_import'],'purchase_receipt_details':['import_amount','import_rate']},
+ 'Supplier Quotation': {'fields':['conversion_rate','currency']}
},
'item_advanced': {
'Item': {'fields':['item_customer_details']}