function name corrected in stock entry 'get current stock' button
diff --git a/patches/patch.py b/patches/patch.py
index 87b2f78..91e8f73 100644
--- a/patches/patch.py
+++ b/patches/patch.py
@@ -1,7 +1,7 @@
 # REMEMBER to update this
 # ========================
 
-last_patch = 322
+last_patch = 323
 
 #-------------------------------------------
 
@@ -1285,3 +1285,7 @@
 		reload_doc('hr','doctype','leave_application')
 	elif patch_no == 322:
 		sql("delete from `tabDocField` where parent = 'Leave Application' and fieldname = 'latter_head'")
+	elif patch_no == 323:
+		reload_doc('stock', 'doctype', 'stock_entry')
+		sql("update `tabDocField` set options = 'get_stock_and_rate' where parent = 'Stock Entry' and label = 'Get Current Stock'")
+
diff --git a/stock/doctype/stock_entry/stock_entry.txt b/stock/doctype/stock_entry/stock_entry.txt
index 6959d4d..5232e32 100644
--- a/stock/doctype/stock_entry/stock_entry.txt
+++ b/stock/doctype/stock_entry/stock_entry.txt
@@ -3,28 +3,44 @@
 
 	# These values are common in all dictionaries
 	{
-		'creation': '2010-08-08 17:09:25',
+		'creation': '2009-05-12 16:46:45',
 		'docstatus': 0,
-		'modified': '2011-06-14 12:50:12',
+		'modified': '2011-07-10 13:47:21',
 		'modified_by': 'Administrator',
 		'owner': 'Administrator'
 	},
 
 	# These values are common for all DocType
 	{
-		'_last_update': '1308741898',
+		'_last_update': '1310210532',
+		'allow_attach': 0,
+		'allow_copy': 0,
+		'allow_email': 0,
+		'allow_print': 0,
+		'allow_rename': 0,
+		'allow_trash': 0,
 		'colour': 'White:FFF',
 		'doctype': 'DocType',
+		'hide_heading': 0,
+		'hide_toolbar': 0,
+		'in_create': 0,
+		'in_dialog': 0,
+		'is_transaction_doc': 0,
+		'issingle': 0,
+		'max_attachments': 0,
 		'module': 'Stock',
 		'name': '__common__',
 		'print_outline': 'No',
+		'read_only': 0,
+		'read_only_onload': 0,
 		'search_fields': 'transfer_date, from_warehouse, to_warehouse, purpose, remarks',
 		'section_style': 'Tabbed',
 		'server_code_error': ' ',
 		'show_in_menu': 0,
 		'subject': '%(remarks)s',
 		'tag_fields': 'purpose',
-		'version': 243
+		'use_template': 0,
+		'version': 1
 	},
 
 	# These values are common for all DocField
@@ -60,7 +76,7 @@
 		'doctype': 'DocPerm',
 		'idx': 1,
 		'permlevel': 0,
-		'role': 'Material Manager',
+		'role': 'Material User',
 		'submit': 1,
 		'write': 1
 	},
@@ -73,35 +89,28 @@
 		'doctype': 'DocPerm',
 		'idx': 2,
 		'permlevel': 1,
-		'role': 'Material Manager',
+		'role': 'Material User',
 		'submit': 0,
 		'write': 0
 	},
 
 	# DocPerm
 	{
-		'amend': 1,
-		'cancel': 1,
-		'create': 1,
+		'create': 0,
 		'doctype': 'DocPerm',
 		'idx': 3,
-		'permlevel': 0,
-		'role': 'Material User',
-		'submit': 1,
+		'permlevel': 2,
+		'role': 'Production User',
 		'write': 1
 	},
 
 	# DocPerm
 	{
-		'amend': 0,
-		'cancel': 0,
-		'create': 0,
 		'doctype': 'DocPerm',
 		'idx': 4,
-		'permlevel': 1,
-		'role': 'Material User',
-		'submit': 0,
-		'write': 0
+		'permlevel': 2,
+		'role': 'Production Manager',
+		'write': 1
 	},
 
 	# DocPerm
@@ -127,21 +136,11 @@
 
 	# DocPerm
 	{
-		'create': 0,
-		'doctype': 'DocPerm',
-		'idx': 7,
-		'permlevel': 2,
-		'role': 'Production User',
-		'write': 1
-	},
-
-	# DocPerm
-	{
 		'amend': 1,
 		'cancel': 1,
 		'create': 1,
 		'doctype': 'DocPerm',
-		'idx': 8,
+		'idx': 7,
 		'permlevel': 0,
 		'role': 'Production Manager',
 		'submit': 1,
@@ -151,17 +150,34 @@
 	# DocPerm
 	{
 		'doctype': 'DocPerm',
-		'idx': 9,
+		'idx': 8,
 		'permlevel': 1,
 		'role': 'Production Manager'
 	},
 
 	# DocPerm
 	{
+		'amend': 0,
+		'cancel': 0,
+		'create': 0,
+		'doctype': 'DocPerm',
+		'idx': 9,
+		'permlevel': 1,
+		'role': 'Material Manager',
+		'submit': 0,
+		'write': 0
+	},
+
+	# DocPerm
+	{
+		'amend': 1,
+		'cancel': 1,
+		'create': 1,
 		'doctype': 'DocPerm',
 		'idx': 10,
-		'permlevel': 2,
-		'role': 'Production Manager',
+		'permlevel': 0,
+		'role': 'Material Manager',
+		'submit': 1,
 		'write': 1
 	},
 
@@ -187,85 +203,114 @@
 
 	# DocField
 	{
+		'allow_on_submit': 0,
 		'colour': 'White:FFF',
 		'description': 'To manage multiple series please go to Setup > Manage Series',
 		'doctype': 'DocField',
 		'fieldname': 'naming_series',
 		'fieldtype': 'Select',
+		'hidden': 0,
 		'idx': 3,
+		'in_filter': 0,
 		'label': 'Series',
 		'no_copy': 1,
 		'oldfieldname': 'naming_series',
 		'oldfieldtype': 'Select',
-		'options': 'STE',
+		'options': '\nSTE',
 		'permlevel': 0,
 		'print_hide': 1,
-		'reqd': 1
+		'report_hide': 0,
+		'reqd': 1,
+		'search_index': 0
 	},
 
 	# DocField
 	{
+		'allow_on_submit': 0,
 		'description': 'The date at which current entry is corrected in the system.',
 		'doctype': 'DocField',
 		'fieldname': 'amendment_date',
 		'fieldtype': 'Date',
+		'hidden': 0,
 		'idx': 4,
+		'in_filter': 0,
 		'label': 'Amendment Date',
 		'no_copy': 1,
 		'oldfieldname': 'amendment_date',
 		'oldfieldtype': 'Date',
 		'permlevel': 0,
-		'print_hide': 1
+		'print_hide': 1,
+		'report_hide': 0,
+		'reqd': 0,
+		'search_index': 0
 	},
 
 	# DocField
 	{
+		'allow_on_submit': 0,
 		'colour': 'White:FFF',
 		'doctype': 'DocField',
 		'fieldname': 'purpose',
 		'fieldtype': 'Select',
+		'hidden': 0,
 		'idx': 5,
 		'in_filter': 1,
 		'label': 'Purpose',
+		'no_copy': 0,
 		'oldfieldname': 'purpose',
 		'oldfieldtype': 'Select',
 		'options': 'Material Issue\nMaterial Receipt\nMaterial Transfer\nSales Return\nPurchase Return\nSubcontracting\nProduction Order',
 		'permlevel': 0,
+		'print_hide': 0,
+		'report_hide': 0,
 		'reqd': 1,
+		'search_index': 0,
 		'trigger': 'Client'
 	},
 
 	# DocField
 	{
+		'allow_on_submit': 0,
 		'colour': 'White:FFF',
 		'doctype': 'DocField',
 		'fieldname': 'delivery_note_no',
 		'fieldtype': 'Link',
 		'hidden': 1,
 		'idx': 6,
+		'in_filter': 0,
 		'label': 'Delivery Note No',
+		'no_copy': 0,
 		'oldfieldname': 'delivery_note_no',
 		'oldfieldtype': 'Link',
 		'options': 'Delivery Note',
 		'permlevel': 0,
 		'print_hide': 1,
+		'report_hide': 0,
+		'reqd': 0,
+		'search_index': 0,
 		'trigger': 'Client'
 	},
 
 	# DocField
 	{
+		'allow_on_submit': 0,
 		'colour': 'White:FFF',
 		'doctype': 'DocField',
 		'fieldname': 'purchase_receipt_no',
 		'fieldtype': 'Link',
 		'hidden': 1,
 		'idx': 7,
+		'in_filter': 0,
 		'label': 'Purchase Receipt No',
+		'no_copy': 0,
 		'oldfieldname': 'purchase_receipt_no',
 		'oldfieldtype': 'Link',
 		'options': 'Purchase Receipt',
 		'permlevel': 0,
 		'print_hide': 1,
+		'report_hide': 0,
+		'reqd': 0,
+		'search_index': 0,
 		'trigger': 'Client'
 	},
 
@@ -284,93 +329,135 @@
 
 	# DocField
 	{
+		'allow_on_submit': 0,
 		'colour': 'White:FFF',
 		'doctype': 'DocField',
 		'fieldname': 'supplier',
 		'fieldtype': 'Link',
 		'hidden': 1,
 		'idx': 9,
+		'in_filter': 0,
 		'label': 'Supplier',
+		'no_copy': 0,
 		'oldfieldname': 'supplier',
 		'oldfieldtype': 'Link',
 		'options': 'Supplier',
 		'permlevel': 0,
 		'print_hide': 1,
+		'report_hide': 0,
+		'reqd': 0,
+		'search_index': 0,
 		'trigger': 'Client'
 	},
 
 	# DocField
 	{
+		'allow_on_submit': 0,
 		'doctype': 'DocField',
 		'fieldname': 'supplier_name',
 		'fieldtype': 'Data',
+		'hidden': 0,
 		'idx': 10,
+		'in_filter': 0,
 		'label': 'Supplier Name',
+		'no_copy': 0,
 		'oldfieldname': 'supplier_name',
 		'oldfieldtype': 'Data',
-		'permlevel': 1
+		'permlevel': 1,
+		'print_hide': 0,
+		'report_hide': 0,
+		'reqd': 0,
+		'search_index': 0
 	},
 
 	# DocField
 	{
+		'allow_on_submit': 0,
 		'colour': 'White:FFF',
 		'doctype': 'DocField',
 		'fieldname': 'supplier_address',
 		'fieldtype': 'Small Text',
 		'hidden': 1,
 		'idx': 11,
+		'in_filter': 0,
 		'label': 'Supplier Address',
+		'no_copy': 0,
 		'oldfieldname': 'supplier_address',
 		'oldfieldtype': 'Small Text',
 		'permlevel': 0,
+		'print_hide': 0,
+		'report_hide': 0,
+		'reqd': 0,
+		'search_index': 0,
 		'trigger': 'Client'
 	},
 
 	# DocField
 	{
+		'allow_on_submit': 0,
 		'colour': 'White:FFF',
 		'doctype': 'DocField',
 		'fieldname': 'customer',
 		'fieldtype': 'Link',
 		'hidden': 1,
 		'idx': 12,
+		'in_filter': 0,
 		'label': 'Customer',
+		'no_copy': 0,
 		'oldfieldname': 'customer',
 		'oldfieldtype': 'Link',
 		'options': 'Customer',
 		'permlevel': 0,
 		'print_hide': 1,
+		'report_hide': 0,
+		'reqd': 0,
+		'search_index': 0,
 		'trigger': 'Client'
 	},
 
 	# DocField
 	{
+		'allow_on_submit': 0,
 		'doctype': 'DocField',
 		'fieldname': 'customer_name',
 		'fieldtype': 'Data',
 		'hidden': 1,
 		'idx': 13,
+		'in_filter': 0,
 		'label': 'Customer Name',
+		'no_copy': 0,
 		'oldfieldname': 'customer_name',
 		'oldfieldtype': 'Data',
-		'permlevel': 1
+		'permlevel': 1,
+		'print_hide': 0,
+		'report_hide': 0,
+		'reqd': 0,
+		'search_index': 0
 	},
 
 	# DocField
 	{
+		'allow_on_submit': 0,
 		'doctype': 'DocField',
 		'fieldname': 'customer_address',
 		'fieldtype': 'Small Text',
 		'hidden': 1,
 		'idx': 14,
+		'in_filter': 0,
 		'label': 'Customer Address',
+		'no_copy': 0,
 		'oldfieldname': 'customer_address',
 		'oldfieldtype': 'Small Text',
-		'permlevel': 0
+		'permlevel': 0,
+		'print_hide': 0,
+		'report_hide': 0,
+		'reqd': 0,
+		'search_index': 0
 	},
 
 	# DocField
 	{
+		'allow_on_submit': 0,
 		'colour': 'White:FFF',
 		'doctype': 'DocField',
 		'fieldname': 'process',
@@ -379,16 +466,21 @@
 		'idx': 15,
 		'in_filter': 1,
 		'label': 'Process',
+		'no_copy': 0,
 		'oldfieldname': 'process',
 		'oldfieldtype': 'Select',
 		'options': '\nMaterial Transfer\nBackflush',
 		'permlevel': 2,
 		'print_hide': 1,
+		'report_hide': 0,
+		'reqd': 0,
+		'search_index': 0,
 		'trigger': 'Client'
 	},
 
 	# DocField
 	{
+		'allow_on_submit': 0,
 		'colour': 'White:FFF',
 		'doctype': 'DocField',
 		'fieldname': 'production_order',
@@ -397,74 +489,99 @@
 		'idx': 16,
 		'in_filter': 1,
 		'label': 'Production Order',
+		'no_copy': 0,
 		'oldfieldname': 'production_order',
 		'oldfieldtype': 'Link',
 		'options': 'Production Order',
 		'permlevel': 2,
 		'print_hide': 1,
+		'report_hide': 0,
+		'reqd': 0,
+		'search_index': 0,
 		'trigger': 'Client'
 	},
 
 	# DocField
 	{
+		'allow_on_submit': 0,
 		'doctype': 'DocField',
 		'fieldname': 'fg_completed_qty',
 		'fieldtype': 'Currency',
+		'hidden': 0,
 		'idx': 17,
+		'in_filter': 0,
 		'label': 'FG Completed Qty',
+		'no_copy': 0,
 		'oldfieldname': 'fg_completed_qty',
 		'oldfieldtype': 'Currency',
 		'permlevel': 2,
 		'print_hide': 1,
+		'report_hide': 0,
+		'reqd': 0,
+		'search_index': 0,
 		'trigger': 'Client'
 	},
 
 	# DocField
 	{
-		'colour': 'White:FFF',
+		'allow_on_submit': 0,
 		'doctype': 'DocField',
 		'fieldtype': 'HTML',
+		'hidden': 0,
 		'idx': 18,
+		'in_filter': 0,
 		'label': 'Warehouse HTML',
 		'no_copy': 0,
 		'oldfieldtype': 'HTML',
 		'options': "<div class='columnHeading'>Warehouse</div>",
 		'permlevel': 0,
-		'print_hide': 1
+		'print_hide': 1,
+		'report_hide': 0,
+		'reqd': 0,
+		'search_index': 0
 	},
 
 	# DocField
 	{
-		'colour': 'White:FFF',
+		'allow_on_submit': 0,
 		'doctype': 'DocField',
 		'fieldname': 'from_warehouse',
 		'fieldtype': 'Link',
+		'hidden': 0,
 		'idx': 19,
+		'in_filter': 0,
 		'label': 'Source Warehouse',
+		'no_copy': 0,
 		'oldfieldname': 'from_warehouse',
 		'oldfieldtype': 'Link',
 		'options': 'Warehouse',
 		'permlevel': 0,
 		'print_hide': 1,
+		'report_hide': 0,
 		'reqd': 0,
+		'search_index': 0,
 		'trigger': 'Client'
 	},
 
 	# DocField
 	{
+		'allow_on_submit': 0,
 		'colour': 'White:FFF',
 		'description': '<b>Notes:</b> Either Source or Target is Mandatory',
 		'doctype': 'DocField',
 		'fieldname': 'to_warehouse',
 		'fieldtype': 'Link',
+		'hidden': 0,
 		'idx': 20,
 		'in_filter': 0,
 		'label': 'Target Warehouse',
+		'no_copy': 0,
 		'oldfieldname': 'to_warehouse',
 		'oldfieldtype': 'Link',
 		'options': 'Warehouse',
 		'permlevel': 0,
 		'print_hide': 1,
+		'report_hide': 0,
 		'reqd': 0,
 		'search_index': 1,
 		'trigger': 'Client'
@@ -473,8 +590,22 @@
 	# DocField
 	{
 		'doctype': 'DocField',
-		'fieldtype': 'Column Break',
+		'fieldname': 'project_name',
+		'fieldtype': 'Link',
 		'idx': 21,
+		'in_filter': 1,
+		'label': 'Project Name',
+		'oldfieldname': 'project_name',
+		'oldfieldtype': 'Link',
+		'options': 'Project',
+		'permlevel': 0
+	},
+
+	# DocField
+	{
+		'doctype': 'DocField',
+		'fieldtype': 'Column Break',
+		'idx': 22,
 		'oldfieldtype': 'Column Break',
 		'permlevel': 0,
 		'width': '50%'
@@ -482,11 +613,13 @@
 
 	# DocField
 	{
+		'allow_on_submit': 0,
 		'default': 'Today',
 		'doctype': 'DocField',
 		'fieldname': 'transfer_date',
 		'fieldtype': 'Date',
-		'idx': 22,
+		'hidden': 0,
+		'idx': 23,
 		'in_filter': 1,
 		'label': 'Transfer Date',
 		'no_copy': 1,
@@ -494,17 +627,20 @@
 		'oldfieldtype': 'Date',
 		'permlevel': 0,
 		'print_hide': 0,
+		'report_hide': 0,
 		'reqd': 1,
 		'search_index': 1
 	},
 
 	# DocField
 	{
+		'allow_on_submit': 0,
 		'description': 'The date at which current entry will get or has actually executed.',
 		'doctype': 'DocField',
 		'fieldname': 'posting_date',
 		'fieldtype': 'Date',
-		'idx': 23,
+		'hidden': 0,
+		'idx': 24,
 		'in_filter': 1,
 		'label': 'Posting Date',
 		'no_copy': 1,
@@ -512,16 +648,19 @@
 		'oldfieldtype': 'Date',
 		'permlevel': 0,
 		'print_hide': 1,
+		'report_hide': 0,
 		'reqd': 1,
 		'search_index': 1
 	},
 
 	# DocField
 	{
+		'allow_on_submit': 0,
 		'doctype': 'DocField',
 		'fieldname': 'posting_time',
 		'fieldtype': 'Time',
-		'idx': 24,
+		'hidden': 0,
+		'idx': 25,
 		'in_filter': 0,
 		'label': 'Posting Time',
 		'no_copy': 1,
@@ -529,103 +668,143 @@
 		'oldfieldtype': 'Time',
 		'permlevel': 0,
 		'print_hide': 1,
+		'report_hide': 0,
 		'reqd': 1,
 		'search_index': 0
 	},
 
 	# DocField
 	{
+		'allow_on_submit': 0,
 		'doctype': 'DocField',
 		'fieldname': 'amended_from',
 		'fieldtype': 'Link',
-		'idx': 25,
+		'hidden': 0,
+		'idx': 26,
+		'in_filter': 0,
 		'label': 'Amended From',
 		'no_copy': 1,
 		'oldfieldname': 'amended_from',
 		'oldfieldtype': 'Link',
 		'options': 'Stock Entry',
 		'permlevel': 1,
-		'print_hide': 1
+		'print_hide': 1,
+		'report_hide': 0,
+		'reqd': 0,
+		'search_index': 0
 	},
 
 	# DocField
 	{
+		'allow_on_submit': 0,
 		'doctype': 'DocField',
 		'fieldname': 'transporter',
 		'fieldtype': 'Data',
-		'idx': 26,
+		'hidden': 0,
+		'idx': 27,
+		'in_filter': 0,
 		'label': 'Transporter',
+		'no_copy': 0,
 		'oldfieldname': 'transporter',
 		'oldfieldtype': 'Data',
 		'permlevel': 0,
-		'print_hide': 1
+		'print_hide': 1,
+		'report_hide': 0,
+		'reqd': 0,
+		'search_index': 0
 	},
 
 	# DocField
 	{
+		'allow_on_submit': 0,
 		'doctype': 'DocField',
 		'fieldname': 'is_excisable_goods',
 		'fieldtype': 'Select',
-		'idx': 27,
+		'hidden': 0,
+		'idx': 28,
+		'in_filter': 0,
 		'label': 'Is Excisable Goods',
+		'no_copy': 0,
 		'oldfieldname': 'is_excisable_goods',
 		'oldfieldtype': 'Select',
 		'options': '\nYes\nNo',
 		'permlevel': 0,
-		'print_hide': 1
+		'print_hide': 1,
+		'report_hide': 0,
+		'reqd': 0,
+		'search_index': 0
 	},
 
 	# DocField
 	{
+		'allow_on_submit': 0,
 		'doctype': 'DocField',
 		'fieldname': 'excisable_goods',
 		'fieldtype': 'Select',
-		'idx': 28,
+		'hidden': 0,
+		'idx': 29,
+		'in_filter': 0,
 		'label': 'Excisable Goods',
+		'no_copy': 0,
 		'oldfieldname': 'excisable_goods',
 		'oldfieldtype': 'Select',
 		'options': '\nReturnable\nNon-Returnable',
 		'permlevel': 0,
-		'print_hide': 1
+		'print_hide': 1,
+		'report_hide': 0,
+		'reqd': 0,
+		'search_index': 0
 	},
 
 	# DocField
 	{
+		'allow_on_submit': 0,
 		'doctype': 'DocField',
 		'fieldname': 'under_rule',
 		'fieldtype': 'Select',
 		'hidden': 1,
-		'idx': 29,
+		'idx': 30,
+		'in_filter': 0,
 		'label': 'Under Rule',
+		'no_copy': 0,
 		'oldfieldname': 'under_rule',
 		'oldfieldtype': 'Select',
 		'options': '\nOrdinary\n57 AC (5) a\n57 F (2) Non-Exc.',
 		'permlevel': 0,
-		'print_hide': 1
+		'print_hide': 1,
+		'report_hide': 0,
+		'reqd': 0,
+		'search_index': 0
 	},
 
 	# DocField
 	{
+		'allow_on_submit': 0,
 		'doctype': 'DocField',
 		'fieldname': 'remarks',
 		'fieldtype': 'Text',
-		'idx': 30,
+		'hidden': 0,
+		'idx': 31,
+		'in_filter': 0,
 		'label': 'Remarks',
 		'no_copy': 1,
 		'oldfieldname': 'remarks',
 		'oldfieldtype': 'Text',
 		'permlevel': 0,
 		'print_hide': 1,
-		'reqd': 1
+		'report_hide': 0,
+		'reqd': 1,
+		'search_index': 0
 	},
 
 	# DocField
 	{
+		'allow_on_submit': 0,
 		'doctype': 'DocField',
 		'fieldname': 'cancel_reason',
 		'fieldtype': 'Data',
 		'hidden': 1,
-		'idx': 31,
+		'idx': 32,
 		'in_filter': 0,
 		'label': 'Cancel Reason',
 		'no_copy': 1,
@@ -633,6 +812,7 @@
 		'oldfieldtype': 'Data',
 		'permlevel': 1,
 		'print_hide': 1,
+		'report_hide': 0,
 		'reqd': 0,
 		'search_index': 0
 	},
@@ -641,7 +821,7 @@
 	{
 		'doctype': 'DocField',
 		'fieldtype': 'Section Break',
-		'idx': 32,
+		'idx': 33,
 		'label': 'Items',
 		'oldfieldtype': 'Section Break',
 		'permlevel': 0
@@ -649,44 +829,57 @@
 
 	# DocField
 	{
+		'allow_on_submit': 0,
 		'doctype': 'DocField',
 		'fieldtype': 'Button',
-		'idx': 33,
-		'label': 'Get Stock and Rate',
+		'hidden': 0,
+		'idx': 34,
+		'in_filter': 0,
+		'label': 'Get Current Stock',
+		'no_copy': 0,
 		'oldfieldtype': 'Button',
 		'options': 'get_stock_and_rate',
 		'permlevel': 0,
-		'print_hide': 1
+		'print_hide': 1,
+		'report_hide': 0,
+		'reqd': 0,
+		'search_index': 0
 	},
 
 	# DocField
 	{
 		'doctype': 'DocField',
 		'fieldtype': 'Column Break',
-		'idx': 34,
+		'idx': 35,
 		'oldfieldtype': 'Column Break',
 		'permlevel': 0
 	},
 
 	# DocField
 	{
+		'allow_on_submit': 0,
 		'colour': 'White:FFF',
 		'doctype': 'DocField',
 		'fieldtype': 'Button',
 		'hidden': 0,
-		'idx': 35,
+		'idx': 36,
+		'in_filter': 0,
 		'label': 'Get Items',
+		'no_copy': 0,
 		'oldfieldtype': 'Button',
 		'options': 'get_items',
 		'permlevel': 2,
-		'print_hide': 1
+		'print_hide': 1,
+		'report_hide': 0,
+		'reqd': 0,
+		'search_index': 0
 	},
 
 	# DocField
 	{
 		'doctype': 'DocField',
 		'fieldtype': 'Section Break',
-		'idx': 36,
+		'idx': 37,
 		'oldfieldtype': 'Section Break',
 		'options': 'Simple',
 		'permlevel': 0
@@ -694,37 +887,50 @@
 
 	# DocField
 	{
-		'colour': 'White:FFF',
+		'allow_on_submit': 0,
 		'doctype': 'DocField',
 		'fieldname': 'mtn_details',
 		'fieldtype': 'Table',
-		'idx': 37,
+		'hidden': 0,
+		'idx': 38,
+		'in_filter': 0,
 		'label': 'MTN Details',
+		'no_copy': 0,
 		'oldfieldname': 'mtn_details',
 		'oldfieldtype': 'Table',
 		'options': 'Stock Entry Detail',
 		'permlevel': 0,
-		'print_hide': 0
+		'print_hide': 0,
+		'report_hide': 0,
+		'reqd': 0,
+		'search_index': 0
 	},
 
 	# DocField
 	{
+		'allow_on_submit': 0,
 		'doctype': 'DocField',
 		'fieldname': 'total_amount',
 		'fieldtype': 'Currency',
-		'idx': 38,
+		'hidden': 0,
+		'idx': 39,
+		'in_filter': 0,
 		'label': 'Total Amount',
+		'no_copy': 0,
 		'oldfieldname': 'total_amount',
 		'oldfieldtype': 'Currency',
 		'permlevel': 1,
-		'print_hide': 1
+		'print_hide': 1,
+		'report_hide': 0,
+		'reqd': 0,
+		'search_index': 0
 	},
 
 	# DocField
 	{
 		'doctype': 'DocField',
 		'fieldtype': 'Section Break',
-		'idx': 39,
+		'idx': 40,
 		'label': 'Other Details',
 		'oldfieldtype': 'Section Break',
 		'permlevel': 0
@@ -732,48 +938,64 @@
 
 	# DocField
 	{
+		'allow_on_submit': 0,
 		'doctype': 'DocField',
 		'fieldname': 'company',
 		'fieldtype': 'Link',
-		'idx': 40,
+		'hidden': 0,
+		'idx': 41,
 		'in_filter': 1,
 		'label': 'Company',
+		'no_copy': 0,
 		'oldfieldname': 'company',
 		'oldfieldtype': 'Link',
 		'options': 'Company',
 		'permlevel': 0,
 		'print_hide': 1,
+		'report_hide': 0,
 		'reqd': 1,
 		'search_index': 1
 	},
 
 	# DocField
 	{
+		'allow_on_submit': 0,
 		'doctype': 'DocField',
 		'fieldname': 'fiscal_year',
 		'fieldtype': 'Select',
-		'idx': 41,
+		'hidden': 0,
+		'idx': 42,
 		'in_filter': 0,
 		'label': 'Fiscal Year',
+		'no_copy': 0,
 		'oldfieldname': 'fiscal_year',
 		'oldfieldtype': 'Select',
 		'options': 'link:Fiscal Year',
 		'permlevel': 0,
 		'print_hide': 1,
+		'report_hide': 0,
 		'reqd': 1,
 		'search_index': 1
 	},
 
 	# DocField
 	{
+		'allow_on_submit': 0,
 		'doctype': 'DocField',
 		'fieldname': 'select_print_heading',
 		'fieldtype': 'Link',
-		'idx': 42,
+		'hidden': 0,
+		'idx': 43,
+		'in_filter': 0,
 		'label': 'Select Print Heading',
+		'no_copy': 0,
 		'oldfieldname': 'select_print_heading',
 		'oldfieldtype': 'Link',
 		'options': 'Print Heading',
-		'permlevel': 0
+		'permlevel': 0,
+		'print_hide': 0,
+		'report_hide': 0,
+		'reqd': 0,
+		'search_index': 0
 	}
 ]
\ No newline at end of file