function name corrected in stock entry 'get current stock' button

This commit is contained in:
Nabin Hait 2011-07-10 13:52:05 +05:30
parent 025d0620fe
commit 2acac4b9d2
2 changed files with 304 additions and 78 deletions

View File

@ -1,7 +1,7 @@
# REMEMBER to update this # REMEMBER to update this
# ======================== # ========================
last_patch = 322 last_patch = 323
#------------------------------------------- #-------------------------------------------
@ -1285,3 +1285,7 @@ def execute(patch_no):
reload_doc('hr','doctype','leave_application') reload_doc('hr','doctype','leave_application')
elif patch_no == 322: elif patch_no == 322:
sql("delete from `tabDocField` where parent = 'Leave Application' and fieldname = 'latter_head'") 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'")

View File

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