Merge branch 'master' of github.com:webnotes/erpnext

This commit is contained in:
Rushabh Mehta
2012-12-19 12:46:41 +05:30
8 changed files with 998 additions and 1224 deletions

View File

@@ -1,358 +1,286 @@
# DocType, Purchase Invoice Item
[ [
# These values are common in all dictionaries
{ {
'creation': '2012-04-13 11:56:17', "owner": "Administrator",
'docstatus': 0, "docstatus": 0,
'modified': '2012-06-04 12:10:22', "creation": "2012-07-03 13:29:48",
'modified_by': u'Administrator', "modified_by": "Administrator",
'owner': u'Administrator' "modified": "2012-12-19 11:57:47"
}, },
# These values are common for all DocType
{ {
'autoname': u'EVD.######', "istable": 1,
'colour': u'White:FFF', "autoname": "EVD.######",
'doctype': 'DocType', "name": "__common__",
'istable': 1, "doctype": "DocType",
'module': u'Accounts', "module": "Accounts"
'name': '__common__',
'section_style': u'Tray',
'server_code_error': u' ',
'show_in_menu': 0,
'version': 1
}, },
# These values are common for all DocField
{ {
'doctype': u'DocField', "name": "__common__",
'name': '__common__', "parent": "Purchase Invoice Item",
'parent': u'Purchase Invoice Item', "doctype": "DocField",
'parentfield': u'fields', "parenttype": "DocType",
'parenttype': u'DocType' "parentfield": "fields"
}, },
# DocType, Purchase Invoice Item
{ {
'doctype': 'DocType', "name": "Purchase Invoice Item",
'name': u'Purchase Invoice Item' "doctype": "DocType"
}, },
# DocField
{ {
'doctype': u'DocField', "print_hide": 1,
'fieldname': u'item_code', "oldfieldtype": "Link",
'fieldtype': u'Link', "doctype": "DocField",
'in_filter': 1, "label": "Item",
'label': u'Item', "oldfieldname": "item_code",
'oldfieldname': u'item_code', "permlevel": 0,
'oldfieldtype': u'Link', "fieldname": "item_code",
'options': u'Item', "fieldtype": "Link",
'permlevel': 0, "search_index": 1,
'print_hide': 1, "reqd": 0,
'reqd': 0, "options": "Item",
'search_index': 1, "in_filter": 1
'trigger': u'Client'
}, },
# DocField
{ {
'doctype': u'DocField', "oldfieldtype": "Data",
'fieldname': u'item_name', "doctype": "DocField",
'fieldtype': u'Data', "label": "Item Name",
'in_filter': 0, "oldfieldname": "item_name",
'label': u'Item Name', "fieldname": "item_name",
'oldfieldname': u'item_name', "fieldtype": "Data",
'oldfieldtype': u'Data', "search_index": 0,
'permlevel': 0, "reqd": 1,
'reqd': 1, "permlevel": 0,
'search_index': 0 "in_filter": 0
}, },
# DocField
{ {
'doctype': u'DocField', "oldfieldtype": "Text",
'fieldname': u'description', "doctype": "DocField",
'fieldtype': u'Text', "label": "Description",
'label': u'Description', "oldfieldname": "description",
'oldfieldname': u'description', "width": "300px",
'oldfieldtype': u'Text', "fieldname": "description",
'permlevel': 0, "fieldtype": "Text",
'width': u'300px' "permlevel": 0
}, },
# DocField
{ {
'doctype': u'DocField', "print_hide": 0,
'fieldname': u'qty', "oldfieldtype": "Currency",
'fieldtype': u'Currency', "doctype": "DocField",
'label': u'Qty', "label": "Qty",
'oldfieldname': u'qty', "oldfieldname": "qty",
'oldfieldtype': u'Currency', "fieldname": "qty",
'permlevel': 0, "fieldtype": "Currency",
'print_hide': 0, "reqd": 1,
'reqd': 1, "permlevel": 0
'trigger': u'Client'
}, },
# DocField
{ {
'doctype': u'DocField', "print_hide": 1,
'fieldname': u'import_ref_rate', "doctype": "DocField",
'fieldtype': u'Currency', "label": "Ref Rate ",
'label': u'Ref Rate ', "fieldname": "import_ref_rate",
'permlevel': 0, "fieldtype": "Currency",
'print_hide': 1, "permlevel": 0
'trigger': u'Client'
}, },
# DocField
{ {
'doctype': u'DocField', "print_hide": 0,
'fieldname': u'discount_rate', "doctype": "DocField",
'fieldtype': u'Currency', "label": "Discount %",
'label': u'Discount %', "fieldname": "discount_rate",
'permlevel': 0, "fieldtype": "Currency",
'print_hide': 1, "permlevel": 0
'trigger': u'Client'
}, },
# DocField
{ {
'doctype': u'DocField', "print_hide": 0,
'fieldname': u'import_rate', "oldfieldtype": "Currency",
'fieldtype': u'Currency', "doctype": "DocField",
'label': u'Rate ', "label": "Rate ",
'oldfieldname': u'import_rate', "oldfieldname": "import_rate",
'oldfieldtype': u'Currency', "fieldname": "import_rate",
'permlevel': 0, "fieldtype": "Currency",
'print_hide': 0, "reqd": 1,
'reqd': 1, "permlevel": 0
'trigger': u'Client'
}, },
# DocField
{ {
'doctype': u'DocField', "oldfieldtype": "Currency",
'fieldname': u'import_amount', "doctype": "DocField",
'fieldtype': u'Currency', "label": "Amount",
'label': u'Amount', "oldfieldname": "import_amount",
'oldfieldname': u'import_amount', "fieldname": "import_amount",
'oldfieldtype': u'Currency', "fieldtype": "Currency",
'permlevel': 1, "reqd": 1,
'reqd': 1 "permlevel": 1
}, },
# DocField
{ {
'doctype': u'DocField', "print_hide": 1,
'fieldname': u'purchase_ref_rate', "doctype": "DocField",
'fieldtype': u'Currency', "label": "Ref Rate *",
'label': u'Ref Rate *', "fieldname": "purchase_ref_rate",
'permlevel': 0, "fieldtype": "Currency",
'print_hide': 1, "permlevel": 0
'trigger': u'Client'
}, },
# DocField
{ {
'doctype': u'DocField', "print_hide": 1,
'fieldname': u'rate', "oldfieldtype": "Currency",
'fieldtype': u'Currency', "doctype": "DocField",
'label': u'Rate *(Default Curr.)', "label": "Rate *(Default Curr.)",
'oldfieldname': u'rate', "oldfieldname": "rate",
'oldfieldtype': u'Currency', "fieldname": "rate",
'permlevel': 0, "fieldtype": "Currency",
'print_hide': 1, "reqd": 1,
'reqd': 1, "permlevel": 0
'trigger': u'Client'
}, },
# DocField
{ {
'doctype': u'DocField', "print_hide": 1,
'fieldname': u'amount', "oldfieldtype": "Currency",
'fieldtype': u'Currency', "doctype": "DocField",
'label': u'Amount (Default Curr.)', "label": "Amount (Default Curr.)",
'oldfieldname': u'amount', "oldfieldname": "amount",
'oldfieldtype': u'Currency', "fieldname": "amount",
'permlevel': 1, "fieldtype": "Currency",
'print_hide': 1, "reqd": 1,
'reqd': 1 "permlevel": 1
}, },
# DocField
{ {
'colour': u'White:FFF', "print_hide": 1,
'doctype': u'DocField', "oldfieldtype": "Link",
'fieldname': u'expense_head', "doctype": "DocField",
'fieldtype': u'Link', "label": "Expense Head",
'label': u'Expense Head', "oldfieldname": "expense_head",
'oldfieldname': u'expense_head', "width": "120px",
'oldfieldtype': u'Link', "options": "Account",
'options': u'Account', "fieldname": "expense_head",
'permlevel': 0, "fieldtype": "Link",
'print_hide': 1, "reqd": 1,
'reqd': 1, "permlevel": 0
'trigger': u'Client',
'width': u'120px'
}, },
# DocField
{ {
'colour': u'White:FFF', "print_hide": 1,
'doctype': u'DocField', "oldfieldtype": "Link",
'fieldname': u'cost_center', "doctype": "DocField",
'fieldtype': u'Link', "label": "Cost Center",
'label': u'Cost Center', "oldfieldname": "cost_center",
'oldfieldname': u'cost_center', "width": "120px",
'oldfieldtype': u'Link', "options": "Cost Center",
'options': u'Cost Center', "fieldname": "cost_center",
'permlevel': 0, "fieldtype": "Link",
'print_hide': 1, "permlevel": 0
'trigger': u'Client',
'width': u'120px'
}, },
# DocField
{ {
'colour': u'White:FFF', "print_hide": 1,
'doctype': u'DocField', "doctype": "DocField",
'fieldname': u'project_name', "label": "Project Name",
'fieldtype': u'Link', "options": "Project",
'in_filter': 1, "fieldname": "project_name",
'label': u'Project Name', "fieldtype": "Link",
'options': u'Project', "permlevel": 0,
'permlevel': 0, "in_filter": 1
'print_hide': 1
}, },
# DocField
{ {
'doctype': u'DocField', "print_hide": 1,
'fieldname': u'uom', "doctype": "DocField",
'fieldtype': u'Link', "label": "UOM",
'label': u'UOM', "options": "UOM",
'options': u'UOM', "fieldname": "uom",
'permlevel': 0, "fieldtype": "Link",
'print_hide': 1 "permlevel": 0
}, },
# DocField
{ {
'doctype': u'DocField', "print_hide": 1,
'fieldname': u'brand', "oldfieldtype": "Data",
'fieldtype': u'Data', "doctype": "DocField",
'hidden': 1, "label": "Brand",
'label': u'Brand', "oldfieldname": "brand",
'oldfieldname': u'brand', "fieldname": "brand",
'oldfieldtype': u'Data', "fieldtype": "Data",
'permlevel': 0, "hidden": 1,
'print_hide': 1 "permlevel": 0
}, },
# DocField
{ {
'doctype': u'DocField', "print_hide": 1,
'fieldname': u'item_group', "oldfieldtype": "Link",
'fieldtype': u'Link', "doctype": "DocField",
'hidden': 1, "label": "Item Group",
'in_filter': 1, "oldfieldname": "item_group",
'label': u'Item Group', "permlevel": 1,
'oldfieldname': u'item_group', "fieldname": "item_group",
'oldfieldtype': u'Link', "fieldtype": "Link",
'options': u'Item Group', "search_index": 1,
'permlevel': 1, "hidden": 1,
'print_hide': 1, "options": "Item Group",
'search_index': 1 "in_filter": 1
}, },
# DocField
{ {
'doctype': u'DocField', "print_hide": 1,
'fieldname': u'purchase_order', "oldfieldtype": "Link",
'fieldtype': u'Link', "doctype": "DocField",
'in_filter': 1, "label": "Pur Order",
'label': u'Pur Order', "oldfieldname": "purchase_order",
'oldfieldname': u'purchase_order', "options": "Purchase Order",
'oldfieldtype': u'Link', "fieldname": "purchase_order",
'options': u'Purchase Order', "fieldtype": "Link",
'permlevel': 1, "search_index": 1,
'print_hide': 1, "permlevel": 1,
'search_index': 1 "in_filter": 1
}, },
# DocField
{ {
'doctype': u'DocField', "print_hide": 1,
'fieldname': u'po_detail', "oldfieldtype": "Data",
'fieldtype': u'Data', "doctype": "DocField",
'hidden': 1, "label": "Purchase Order Item",
'in_filter': 1, "oldfieldname": "po_detail",
'label': u'Purchase Order Item', "fieldname": "po_detail",
'oldfieldname': u'po_detail', "fieldtype": "Data",
'oldfieldtype': u'Data', "search_index": 1,
'permlevel': 1, "hidden": 1,
'print_hide': 1, "permlevel": 1,
'search_index': 1 "in_filter": 1
}, },
# DocField
{ {
'doctype': u'DocField', "print_hide": 1,
'fieldname': u'purchase_receipt', "oldfieldtype": "Link",
'fieldtype': u'Link', "doctype": "DocField",
'in_filter': 1, "label": "Pur Receipt",
'label': u'Pur Receipt', "oldfieldname": "purchase_receipt",
'oldfieldname': u'purchase_receipt', "options": "Purchase Receipt",
'oldfieldtype': u'Link', "fieldname": "purchase_receipt",
'options': u'Purchase Receipt', "fieldtype": "Link",
'permlevel': 1, "search_index": 1,
'print_hide': 1, "permlevel": 1,
'search_index': 1 "in_filter": 1
}, },
# DocField
{ {
'doctype': u'DocField', "print_hide": 1,
'fieldname': u'pr_detail', "oldfieldtype": "Data",
'fieldtype': u'Data', "doctype": "DocField",
'hidden': 1, "label": "PR Detail",
'in_filter': 1, "oldfieldname": "pr_detail",
'label': u'PR Detail', "fieldname": "pr_detail",
'oldfieldname': u'pr_detail', "fieldtype": "Data",
'oldfieldtype': u'Data', "search_index": 1,
'permlevel': 1, "hidden": 1,
'print_hide': 1, "permlevel": 1,
'search_index': 1 "in_filter": 1
}, },
# DocField
{ {
'description': u'Tax detail table fetched from item master as a string and stored in this field.\nUsed for Taxes and Charges', "print_hide": 1,
'doctype': u'DocField', "description": "Tax detail table fetched from item master as a string and stored in this field.\nUsed for Taxes and Charges",
'fieldname': u'item_tax_rate', "oldfieldtype": "Small Text",
'fieldtype': u'Small Text', "doctype": "DocField",
'hidden': 1, "label": "Item Tax Rate",
'label': u'Item Tax Rate', "oldfieldname": "item_tax_rate",
'oldfieldname': u'item_tax_rate', "fieldname": "item_tax_rate",
'oldfieldtype': u'Small Text', "fieldtype": "Small Text",
'permlevel': 1, "hidden": 1,
'print_hide': 1, "permlevel": 1,
'report_hide': 1 "report_hide": 1
}, },
# DocField
{ {
'allow_on_submit': 1, "print_hide": 1,
'doctype': u'DocField', "no_copy": 1,
'fieldname': u'page_break', "allow_on_submit": 1,
'fieldtype': u'Check', "doctype": "DocField",
'label': u'Page Break', "label": "Page Break",
'no_copy': 1, "fieldname": "page_break",
'permlevel': 0, "fieldtype": "Check",
'print_hide': 1, "permlevel": 0,
'report_hide': 1 "report_hide": 1
} }
] ]

View File

@@ -2,16 +2,16 @@
{ {
"owner": "Administrator", "owner": "Administrator",
"docstatus": 0, "docstatus": 0,
"creation": "2012-11-23 16:46:22", "creation": "2012-11-28 11:24:29",
"modified_by": "Administrator", "modified_by": "Administrator",
"modified": "2012-11-26 10:11:53" "modified": "2012-12-19 11:54:55"
}, },
{ {
"name": "__common__", "name": "__common__",
"ref_doctype": "Sales Invoice", "ref_doctype": "Sales Invoice",
"doctype": "Report", "doctype": "Report",
"is_standard": "Yes", "is_standard": "Yes",
"query": "select \n `tabDelivery Note`.`name` as \"Delivery Note:Link/Delivery Note:120\",\n`tabDelivery Note`.`customer` as \"Customer:Link/Customer:120\",\n`tabDelivery Note`.`status` as \"Status\",\n `tabDelivery Note`.`posting_date` as \"Date:Date\",\n `tabDelivery Note Item`.item_code as \"Item:Link/Item:120\",\n `tabDelivery Note Item`.description as \"Description\",\n `tabDelivery Note Item`.qty as \"Qty:Float\",\n `tabDelivery Note Item`.billed_qty as \"Billed Qty:Float\"\nfrom\n `tabDelivery Note`, `tabDelivery Note Item`\nwhere\n `tabDelivery Note Item`.`parent` = `tabDelivery Note`.`name`\n and `tabDelivery Note`.docstatus = 1\n and ifnull(`tabDelivery Note Item`.billed_qty,0) < ifnull(`tabDelivery Note Item`.qty,0)\norder by `tabDelivery Note`.posting_date asc" "query": "select \n `tabDelivery Note`.`name` as \"Delivery Note:Link/Delivery Note:120\",\n`tabDelivery Note`.`customer` as \"Customer:Link/Customer:120\",\n`tabDelivery Note`.`status` as \"Status\",\n `tabDelivery Note`.`posting_date` as \"Date:Date\",\n `tabDelivery Note Item`.item_code as \"Item:Link/Item:120\",\n `tabDelivery Note Item`.description as \"Description:Data:120\",\n `tabDelivery Note Item`.amount as \"Amount:Currency:110\",\n (`tabDelivery Note Item`.billed_amt * ifnull(`tabDelivery Note`.conversion_rate, 1)) as \"Billed Amount:Currency:110\",\n (ifnull(`tabDelivery Note Item`.amount,0) - (ifnull(`tabDelivery Note Item`.billed_amt,0) * ifnull(`tabDelivery Note`.conversion_rate, 1))) as \"Pending Amount:Currency:120\"\nfrom\n `tabDelivery Note`, `tabDelivery Note Item`\nwhere\n `tabDelivery Note Item`.`parent` = `tabDelivery Note`.`name`\n and `tabDelivery Note`.docstatus = 1\n and ifnull(`tabDelivery Note Item`.billed_amt,0) < ifnull(`tabDelivery Note Item`.export_amount,0)\norder by `tabDelivery Note`.posting_date asc"
}, },
{ {
"name": "Delivered Items To Be Billed", "name": "Delivered Items To Be Billed",

View File

@@ -2,16 +2,16 @@
{ {
"owner": "Administrator", "owner": "Administrator",
"docstatus": 0, "docstatus": 0,
"creation": "2012-12-14 10:22:40", "creation": "2012-12-14 14:27:05",
"modified_by": "Administrator", "modified_by": "Administrator",
"modified": "2012-12-14 10:24:16" "modified": "2012-12-19 11:52:26"
}, },
{ {
"name": "__common__", "name": "__common__",
"ref_doctype": "Sales Invoice", "ref_doctype": "Sales Invoice",
"doctype": "Report", "doctype": "Report",
"is_standard": "Yes", "is_standard": "Yes",
"query": "select \n `tabSales Order`.`name` as \"Sales Order:Link/Sales Order:120\",\n `tabSales Order`.`customer` as \"Customer:Link/Customer:120\",\n `tabSales Order`.`status` as \"Status\",\n `tabSales Order`.`transaction_date` as \"Date:Date\",\n `tabSales Order Item`.item_code as \"Item:Link/Item:120\",\n `tabSales Order Item`.description as \"Description\",\n `tabSales Order Item`.qty as \"Qty:Float\",\n `tabSales Order Item`.billed_qty as \"Billed Qty:Float\"\nfrom\n `tabSales Order`, `tabSales Order Item`\nwhere\n `tabSales Order Item`.`parent` = `tabSales Order`.`name`\n and `tabSales Order`.docstatus = 1\n and ifnull(`tabSales Order Item`.billed_qty,0) < ifnull(`tabSales Order Item`.qty,0)\norder by `tabSales Order`.transaction_date asc" "query": "select \n `tabSales Order`.`name` as \"Sales Order:Link/Sales Order:120\",\n `tabSales Order`.`customer` as \"Customer:Link/Customer:120\",\n `tabSales Order`.`status` as \"Status\",\n `tabSales Order`.`transaction_date` as \"Date:Date\",\n `tabSales Order Item`.item_code as \"Item:Link/Item:120\",\n `tabSales Order Item`.description as \"Description:Data:120\",\n `tabSales Order Item`.amount as \"Amount:Currency:110\",\n (`tabSales Order Item`.billed_amt * ifnull(`tabSales Order`.conversion_rate, 1)) as \"Billed Amount:Currency:110\",\n (ifnull(`tabSales Order Item`.amount, 0) - (ifnull(`tabSales Order Item`.billed_amt, 0) * ifnull(`tabSales Order`.conversion_rate, 1))) as \"Pending Amount:Currency:120\"\nfrom\n `tabSales Order`, `tabSales Order Item`\nwhere\n `tabSales Order Item`.`parent` = `tabSales Order`.`name`\n and `tabSales Order`.docstatus = 1\n and ifnull(`tabSales Order Item`.billed_amt,0) < ifnull(`tabSales Order Item`.export_amount,0)\norder by `tabSales Order`.transaction_date asc"
}, },
{ {
"name": "Ordered Items To Be Billed", "name": "Ordered Items To Be Billed",

View File

@@ -1,492 +1,400 @@
# DocType, Purchase Order Item
[ [
# These values are common in all dictionaries
{ {
'creation': '2012-05-15 12:14:38', "owner": "Administrator",
'docstatus': 0, "docstatus": 0,
'modified': '2012-08-06 15:55:11', "creation": "2012-08-06 20:00:38",
'modified_by': u'Administrator', "modified_by": "Administrator",
'owner': u'Administrator' "modified": "2012-12-19 11:57:28"
}, },
# These values are common for all DocType
{ {
'autoname': u'POD/.#####', "istable": 1,
'colour': u'White:FFF', "autoname": "POD/.#####",
'doctype': 'DocType', "name": "__common__",
'istable': 1, "doctype": "DocType",
'module': u'Buying', "module": "Buying"
'name': '__common__',
'section_style': u'Tray',
'server_code_error': u' ',
'show_in_menu': 0,
'version': 1
}, },
# These values are common for all DocField
{ {
'doctype': u'DocField', "name": "__common__",
'name': '__common__', "parent": "Purchase Order Item",
'parent': u'Purchase Order Item', "doctype": "DocField",
'parentfield': u'fields', "parenttype": "DocType",
'parenttype': u'DocType' "parentfield": "fields"
}, },
# DocType, Purchase Order Item
{ {
'doctype': 'DocType', "name": "Purchase Order Item",
'name': u'Purchase Order Item' "doctype": "DocType"
}, },
# DocField
{ {
'doctype': u'DocField', "print_hide": 1,
'fieldname': u'schedule_date', "no_copy": 1,
'fieldtype': u'Date', "oldfieldtype": "Date",
'hidden': 0, "doctype": "DocField",
'in_filter': 1, "label": "Reqd By Date",
'label': u'Reqd By Date', "oldfieldname": "schedule_date",
'no_copy': 1, "fieldname": "schedule_date",
'oldfieldname': u'schedule_date', "fieldtype": "Date",
'oldfieldtype': u'Date', "search_index": 1,
'permlevel': 0, "reqd": 1,
'print_hide': 1, "hidden": 0,
'reqd': 1, "permlevel": 0,
'search_index': 1 "in_filter": 1
}, },
# DocField
{ {
'doctype': u'DocField', "print_hide": 0,
'fieldname': u'item_code', "oldfieldtype": "Link",
'fieldtype': u'Link', "doctype": "DocField",
'in_filter': 1, "label": "Item Code",
'label': u'Item Code', "oldfieldname": "item_code",
'oldfieldname': u'item_code', "permlevel": 0,
'oldfieldtype': u'Link', "fieldname": "item_code",
'options': u'Item', "fieldtype": "Link",
'permlevel': 0, "search_index": 1,
'print_hide': 0, "reqd": 1,
'reqd': 1, "options": "Item",
'search_index': 1, "in_filter": 1
'trigger': u'Client'
}, },
# DocField
{ {
'colour': u'White:FFF', "print_hide": 1,
'description': u'If Supplier Part Number exists for given Item, it gets stored here', "description": "If Supplier Part Number exists for given Item, it gets stored here",
'doctype': u'DocField', "doctype": "DocField",
'fieldname': u'supplier_part_no', "label": "Supplier Part Number",
'fieldtype': u'Data', "fieldname": "supplier_part_no",
'hidden': 1, "fieldtype": "Data",
'label': u'Supplier Part Number', "hidden": 1,
'permlevel': 1, "permlevel": 1
'print_hide': 1
}, },
# DocField
{ {
'doctype': u'DocField', "print_hide": 1,
'fieldname': u'item_name', "oldfieldtype": "Data",
'fieldtype': u'Data', "doctype": "DocField",
'hidden': 0, "label": "Item Name",
'in_filter': 1, "oldfieldname": "item_name",
'label': u'Item Name', "fieldname": "item_name",
'oldfieldname': u'item_name', "fieldtype": "Data",
'oldfieldtype': u'Data', "search_index": 1,
'permlevel': 0, "reqd": 1,
'print_hide': 1, "hidden": 0,
'reqd': 1, "permlevel": 0,
'search_index': 1 "in_filter": 1
}, },
# DocField
{ {
'doctype': u'DocField', "oldfieldtype": "Small Text",
'fieldname': u'description', "doctype": "DocField",
'fieldtype': u'Small Text', "label": "Description",
'label': u'Description', "oldfieldname": "description",
'oldfieldname': u'description', "width": "300px",
'oldfieldtype': u'Small Text', "fieldname": "description",
'permlevel': 0, "fieldtype": "Small Text",
'reqd': 1, "reqd": 1,
'width': u'300px' "permlevel": 0
}, },
# DocField
{ {
'default': u'0.00', "default": "0.00",
'doctype': u'DocField', "oldfieldtype": "Currency",
'fieldname': u'qty', "doctype": "DocField",
'fieldtype': u'Currency', "label": "Quantity",
'label': u'Quantity', "oldfieldname": "qty",
'oldfieldname': u'qty', "width": "60px",
'oldfieldtype': u'Currency', "fieldname": "qty",
'permlevel': 0, "fieldtype": "Currency",
'reqd': 1, "reqd": 1,
'trigger': u'Client', "permlevel": 0
'width': u'60px'
}, },
# DocField
{ {
'doctype': u'DocField', "print_hide": 1,
'fieldname': u'import_ref_rate', "doctype": "DocField",
'fieldtype': u'Currency', "label": "Ref Rate ",
'label': u'Ref Rate ', "fieldname": "import_ref_rate",
'permlevel': 0, "fieldtype": "Currency",
'print_hide': 1 "permlevel": 0
}, },
# DocField
{ {
'doctype': u'DocField', "print_hide": 0,
'fieldname': u'discount_rate', "doctype": "DocField",
'fieldtype': u'Currency', "label": "Discount %",
'label': u'Discount %', "fieldname": "discount_rate",
'permlevel': 0, "fieldtype": "Currency",
'print_hide': 1, "permlevel": 0
'trigger': u'Client'
}, },
# DocField
{ {
'doctype': u'DocField', "print_hide": 0,
'fieldname': u'import_rate', "oldfieldtype": "Currency",
'fieldtype': u'Currency', "doctype": "DocField",
'hidden': 0, "label": "Rate ",
'label': u'Rate ', "oldfieldname": "import_rate",
'oldfieldname': u'import_rate', "fieldname": "import_rate",
'oldfieldtype': u'Currency', "fieldtype": "Currency",
'permlevel': 0, "hidden": 0,
'print_hide': 0, "permlevel": 0
'trigger': u'Client'
}, },
# DocField
{ {
'doctype': u'DocField', "oldfieldtype": "Currency",
'fieldname': u'import_amount', "doctype": "DocField",
'fieldtype': u'Currency', "label": "Amount",
'label': u'Amount', "oldfieldname": "import_amount",
'oldfieldname': u'import_amount', "fieldname": "import_amount",
'oldfieldtype': u'Currency', "fieldtype": "Currency",
'permlevel': 1 "permlevel": 1
}, },
# DocField
{ {
'doctype': u'DocField', "print_hide": 1,
'fieldname': u'purchase_ref_rate', "doctype": "DocField",
'fieldtype': u'Currency', "label": "Ref Rate *",
'label': u'Ref Rate *', "fieldname": "purchase_ref_rate",
'permlevel': 0, "fieldtype": "Currency",
'print_hide': 1 "permlevel": 0
}, },
# DocField
{ {
'default': u'0.00', "print_hide": 1,
'doctype': u'DocField', "default": "0.00",
'fieldname': u'purchase_rate', "oldfieldtype": "Currency",
'fieldtype': u'Currency', "doctype": "DocField",
'label': u'Rate (Default Curr.) *', "label": "Rate (Default Curr.) *",
'oldfieldname': u'purchase_rate', "oldfieldname": "purchase_rate",
'oldfieldtype': u'Currency', "width": "100px",
'permlevel': 0, "fieldname": "purchase_rate",
'print_hide': 1, "fieldtype": "Currency",
'reqd': 1, "reqd": 1,
'trigger': u'Client', "permlevel": 0
'width': u'100px'
}, },
# DocField
{ {
'default': u'0.00', "print_hide": 1,
'doctype': u'DocField', "default": "0.00",
'fieldname': u'amount', "oldfieldtype": "Currency",
'fieldtype': u'Currency', "doctype": "DocField",
'label': u'Amount (Default Curr.)', "label": "Amount (Default Curr.)",
'oldfieldname': u'amount', "oldfieldname": "amount",
'oldfieldtype': u'Currency', "fieldname": "amount",
'permlevel': 1, "fieldtype": "Currency",
'print_hide': 1, "reqd": 1,
'reqd': 1 "permlevel": 1
}, },
# DocField
{ {
'doctype': u'DocField', "print_hide": 1,
'fieldname': u'warehouse', "oldfieldtype": "Link",
'fieldtype': u'Link', "doctype": "DocField",
'hidden': 0, "label": "Warehouse",
'label': u'Warehouse', "oldfieldname": "warehouse",
'oldfieldname': u'warehouse', "options": "Warehouse",
'oldfieldtype': u'Link', "fieldname": "warehouse",
'options': u'Warehouse', "fieldtype": "Link",
'permlevel': 0, "reqd": 0,
'print_hide': 1, "hidden": 0,
'reqd': 0, "permlevel": 0
'trigger': u'Client'
}, },
# DocField
{ {
'doctype': u'DocField', "print_hide": 1,
'fieldname': u'project_name', "doctype": "DocField",
'fieldtype': u'Link', "label": "Project Name",
'in_filter': 1, "options": "Project",
'label': u'Project Name', "fieldname": "project_name",
'options': u'Project', "fieldtype": "Link",
'permlevel': 0, "permlevel": 0,
'print_hide': 1, "report_hide": 0,
'report_hide': 0 "in_filter": 1
}, },
# DocField
{ {
'doctype': u'DocField', "print_hide": 0,
'fieldname': u'uom', "oldfieldtype": "Link",
'fieldtype': u'Link', "doctype": "DocField",
'label': u'UOM', "label": "UOM",
'oldfieldname': u'uom', "oldfieldname": "uom",
'oldfieldtype': u'Link', "width": "100px",
'options': u'UOM', "options": "UOM",
'permlevel': 0, "fieldname": "uom",
'print_hide': 0, "fieldtype": "Link",
'reqd': 1, "reqd": 1,
'trigger': u'Client', "permlevel": 0
'width': u'100px'
}, },
# DocField
{ {
'colour': u'White:FFF', "print_hide": 1,
'doctype': u'DocField', "oldfieldtype": "Currency",
'fieldname': u'conversion_factor', "doctype": "DocField",
'fieldtype': u'Currency', "label": "UOM Conversion Factor",
'hidden': 0, "oldfieldname": "conversion_factor",
'label': u'UOM Conversion Factor', "width": "100px",
'oldfieldname': u'conversion_factor', "fieldname": "conversion_factor",
'oldfieldtype': u'Currency', "fieldtype": "Currency",
'permlevel': 0, "reqd": 1,
'print_hide': 1, "hidden": 0,
'reqd': 1, "permlevel": 0
'trigger': u'Client',
'width': u'100px'
}, },
# DocField
{ {
'doctype': u'DocField', "print_hide": 1,
'fieldname': u'stock_uom', "oldfieldtype": "Data",
'fieldtype': u'Data', "doctype": "DocField",
'hidden': 0, "label": "Stock UOM",
'label': u'Stock UOM', "oldfieldname": "stock_uom",
'oldfieldname': u'stock_uom', "width": "100px",
'oldfieldtype': u'Data', "fieldname": "stock_uom",
'permlevel': 1, "fieldtype": "Data",
'print_hide': 1, "reqd": 1,
'reqd': 1, "hidden": 0,
'width': u'100px' "permlevel": 1
}, },
# DocField
{ {
'colour': u'White:FFF', "print_hide": 1,
'doctype': u'DocField', "no_copy": 0,
'fieldname': u'prevdoc_doctype', "oldfieldtype": "Data",
'fieldtype': u'Data', "doctype": "DocField",
'hidden': 1, "label": "Prevdoc DocType",
'label': u'Prevdoc DocType', "oldfieldname": "prevdoc_doctype",
'no_copy': 0, "fieldname": "prevdoc_doctype",
'oldfieldname': u'prevdoc_doctype', "fieldtype": "Data",
'oldfieldtype': u'Data', "hidden": 1,
'permlevel': 1, "permlevel": 1
'print_hide': 1
}, },
# DocField
{ {
'colour': u'White:FFF', "print_hide": 1,
'doctype': u'DocField', "permlevel": 1,
'fieldname': u'prevdoc_docname', "no_copy": 0,
'fieldtype': u'Link', "oldfieldtype": "Link",
'hidden': 0, "doctype": "DocField",
'in_filter': 1, "label": "Purchase Requisition No",
'label': u'Purchase Requisition No', "oldfieldname": "prevdoc_docname",
'no_copy': 0, "width": "120px",
'oldfieldname': u'prevdoc_docname', "fieldname": "prevdoc_docname",
'oldfieldtype': u'Link', "fieldtype": "Link",
'options': u'Purchase Request', "search_index": 1,
'permlevel': 1, "hidden": 0,
'print_hide': 1, "options": "Purchase Request",
'search_index': 1, "in_filter": 1
'width': u'120px'
}, },
# DocField
{ {
'doctype': u'DocField', "print_hide": 1,
'fieldname': u'prevdoc_date', "oldfieldtype": "Date",
'fieldtype': u'Date', "doctype": "DocField",
'hidden': 1, "label": "Purchase Request Date",
'in_filter': 1, "oldfieldname": "prevdoc_date",
'label': u'Purchase Request Date', "fieldname": "prevdoc_date",
'oldfieldname': u'prevdoc_date', "fieldtype": "Date",
'oldfieldtype': u'Date', "search_index": 0,
'permlevel': 1, "hidden": 1,
'print_hide': 1, "permlevel": 1,
'search_index': 0 "in_filter": 1
}, },
# DocField
{ {
'colour': u'White:FFF', "print_hide": 1,
'doctype': u'DocField', "no_copy": 0,
'fieldname': u'prevdoc_detail_docname', "oldfieldtype": "Data",
'fieldtype': u'Data', "doctype": "DocField",
'hidden': 1, "label": "Purchase Request Detail No",
'in_filter': 1, "oldfieldname": "prevdoc_detail_docname",
'label': u'Purchase Request Detail No', "fieldname": "prevdoc_detail_docname",
'no_copy': 0, "fieldtype": "Data",
'oldfieldname': u'prevdoc_detail_docname', "search_index": 1,
'oldfieldtype': u'Data', "hidden": 1,
'permlevel': 1, "permlevel": 1,
'print_hide': 1, "in_filter": 1
'search_index': 1
}, },
# DocField
{ {
'doctype': u'DocField', "search_index": 0,
'fieldname': u'supplier_quotation', "doctype": "DocField",
'fieldtype': u'Link', "label": "Supplier Quotation",
'hidden': 1, "options": "Supplier Quotation",
'in_filter': 0, "fieldname": "supplier_quotation",
'label': u'Supplier Quotation', "fieldtype": "Link",
'options': u'Supplier Quotation', "hidden": 1,
'permlevel': 1, "permlevel": 1,
'search_index': 0 "in_filter": 0
}, },
# DocField
{ {
'doctype': u'DocField', "doctype": "DocField",
'fieldname': u'supplier_quotation_item', "label": "Supplier Quotation Item",
'fieldtype': u'Link', "options": "Supplier Quotation Item",
'hidden': 1, "fieldname": "supplier_quotation_item",
'label': u'Supplier Quotation Item', "fieldtype": "Link",
'options': u'Supplier Quotation Item', "hidden": 1,
'permlevel': 1 "permlevel": 1
}, },
# DocField
{ {
'doctype': u'DocField', "print_hide": 1,
'fieldname': u'brand', "oldfieldtype": "Link",
'fieldtype': u'Link', "doctype": "DocField",
'hidden': 1, "label": "Brand",
'label': u'Brand', "oldfieldname": "brand",
'oldfieldname': u'brand', "options": "Brand",
'oldfieldtype': u'Link', "fieldname": "brand",
'options': u'Brand', "fieldtype": "Link",
'permlevel': 1, "hidden": 1,
'print_hide': 1 "permlevel": 1
}, },
# DocField
{ {
'doctype': u'DocField', "print_hide": 1,
'fieldname': u'item_group', "oldfieldtype": "Link",
'fieldtype': u'Link', "doctype": "DocField",
'hidden': 1, "label": "Item Group",
'in_filter': 1, "oldfieldname": "item_group",
'label': u'Item Group', "permlevel": 1,
'oldfieldname': u'item_group', "fieldname": "item_group",
'oldfieldtype': u'Link', "fieldtype": "Link",
'options': u'Item Group', "search_index": 0,
'permlevel': 1, "hidden": 1,
'print_hide': 1, "options": "Item Group",
'search_index': 0 "in_filter": 1
}, },
# DocField
{ {
'colour': u'White:FFF', "print_hide": 1,
'doctype': u'DocField', "no_copy": 1,
'fieldname': u'stock_qty', "oldfieldtype": "Currency",
'fieldtype': u'Currency', "doctype": "DocField",
'hidden': 0, "label": "Stock Qty",
'label': u'Stock Qty', "oldfieldname": "stock_qty",
'no_copy': 1, "width": "100px",
'oldfieldname': u'stock_qty', "fieldname": "stock_qty",
'oldfieldtype': u'Currency', "fieldtype": "Currency",
'permlevel': 1, "hidden": 0,
'print_hide': 1, "permlevel": 1
'trigger': u'Client',
'width': u'100px'
}, },
# DocField
{ {
'doctype': u'DocField', "print_hide": 1,
'fieldname': u'received_qty', "no_copy": 1,
'fieldtype': u'Currency', "oldfieldtype": "Currency",
'hidden': 0, "doctype": "DocField",
'label': u'Received Qty', "label": "Received Qty",
'no_copy': 1, "oldfieldname": "received_qty",
'oldfieldname': u'received_qty', "fieldname": "received_qty",
'oldfieldtype': u'Currency', "fieldtype": "Currency",
'permlevel': 1, "hidden": 0,
'print_hide': 1 "permlevel": 1
}, },
# DocField
{ {
'default': u'0.00', "print_hide": 1,
'doctype': u'DocField', "default": "0.00",
'fieldname': u'billed_qty', "oldfieldtype": "Currency",
'fieldtype': u'Currency', "doctype": "DocField",
'hidden': 0, "label": "Billed Quantity",
'label': u'Billed Quantity', "oldfieldname": "billed_qty",
'no_copy': 1, "no_copy": 1,
'oldfieldname': u'billed_qty', "fieldname": "billed_qty",
'oldfieldtype': u'Currency', "fieldtype": "Currency",
'permlevel': 1, "hidden": 0,
'print_hide': 1 "permlevel": 1
}, },
# DocField
{ {
'colour': u'White:FFF', "print_hide": 1,
'description': u'Tax detail table fetched from item master as a string and stored in this field.\nUsed for Taxes and Charges', "description": "Tax detail table fetched from item master as a string and stored in this field.\nUsed for Taxes and Charges",
'doctype': u'DocField', "oldfieldtype": "Small Text",
'fieldname': u'item_tax_rate', "doctype": "DocField",
'fieldtype': u'Small Text', "label": "Item Tax Rate",
'hidden': 1, "oldfieldname": "item_tax_rate",
'label': u'Item Tax Rate', "fieldname": "item_tax_rate",
'oldfieldname': u'item_tax_rate', "fieldtype": "Small Text",
'oldfieldtype': u'Small Text', "hidden": 1,
'permlevel': 1, "permlevel": 1,
'print_hide': 1, "report_hide": 1
'report_hide': 1
}, },
# DocField
{ {
'allow_on_submit': 1, "print_hide": 1,
'doctype': u'DocField', "no_copy": 1,
'fieldname': u'page_break', "oldfieldtype": "Check",
'fieldtype': u'Check', "allow_on_submit": 1,
'hidden': 0, "doctype": "DocField",
'label': u'Page Break', "label": "Page Break",
'no_copy': 1, "oldfieldname": "page_break",
'oldfieldname': u'page_break', "fieldname": "page_break",
'oldfieldtype': u'Check', "fieldtype": "Check",
'permlevel': 0, "hidden": 0,
'print_hide': 1 "permlevel": 0
} }
] ]

View File

@@ -1,369 +1,301 @@
# DocType, Supplier Quotation Item
[ [
# These values are common in all dictionaries
{ {
'creation': '2012-08-01 20:07:22', "owner": "Administrator",
'docstatus': 0, "docstatus": 0,
'modified': '2012-08-03 12:34:33', "creation": "2012-08-06 20:00:36",
'modified_by': u'Administrator', "modified_by": "Administrator",
'owner': u'Administrator' "modified": "2012-12-19 11:56:59"
}, },
# These values are common for all DocType
{ {
'autoname': u'SQI-.#####', "istable": 1,
'doctype': 'DocType', "autoname": "SQI-.#####",
'istable': 1, "name": "__common__",
'module': u'Buying', "doctype": "DocType",
'name': '__common__', "module": "Buying"
'version': 1
}, },
# These values are common for all DocField
{ {
'doctype': u'DocField', "name": "__common__",
'name': '__common__', "parent": "Supplier Quotation Item",
'parent': u'Supplier Quotation Item', "doctype": "DocField",
'parentfield': u'fields', "parenttype": "DocType",
'parenttype': u'DocType' "parentfield": "fields"
}, },
# DocType, Supplier Quotation Item
{ {
'doctype': 'DocType', "name": "Supplier Quotation Item",
'name': u'Supplier Quotation Item' "doctype": "DocType"
}, },
# DocField
{ {
'doctype': u'DocField', "print_hide": 0,
'fieldname': u'item_code', "oldfieldtype": "Link",
'fieldtype': u'Link', "doctype": "DocField",
'in_filter': 1, "label": "Item Code",
'label': u'Item Code', "oldfieldname": "item_code",
'oldfieldname': u'item_code', "permlevel": 0,
'oldfieldtype': u'Link', "fieldname": "item_code",
'options': u'Item', "fieldtype": "Link",
'permlevel': 0, "search_index": 1,
'print_hide': 0, "reqd": 1,
'reqd': 1, "options": "Item",
'search_index': 1, "in_filter": 1
'trigger': u'Client'
}, },
# DocField
{ {
'colour': u'White:FFF', "print_hide": 1,
'description': u'If Supplier Part Number exists for given Item, it gets stored here', "description": "If Supplier Part Number exists for given Item, it gets stored here",
'doctype': u'DocField', "doctype": "DocField",
'fieldname': u'supplier_part_no', "label": "Supplier Part Number",
'fieldtype': u'Data', "fieldname": "supplier_part_no",
'hidden': 1, "fieldtype": "Data",
'label': u'Supplier Part Number', "hidden": 1,
'permlevel': 1, "permlevel": 1
'print_hide': 1
}, },
# DocField
{ {
'doctype': u'DocField', "print_hide": 1,
'fieldname': u'item_name', "oldfieldtype": "Data",
'fieldtype': u'Data', "doctype": "DocField",
'hidden': 0, "label": "Item Name",
'in_filter': 1, "oldfieldname": "item_name",
'label': u'Item Name', "fieldname": "item_name",
'oldfieldname': u'item_name', "fieldtype": "Data",
'oldfieldtype': u'Data', "search_index": 1,
'permlevel': 0, "reqd": 1,
'print_hide': 1, "hidden": 0,
'reqd': 1, "permlevel": 0,
'search_index': 1 "in_filter": 1
}, },
# DocField
{ {
'doctype': u'DocField', "oldfieldtype": "Small Text",
'fieldname': u'description', "doctype": "DocField",
'fieldtype': u'Small Text', "label": "Description",
'label': u'Description', "oldfieldname": "description",
'oldfieldname': u'description', "width": "300px",
'oldfieldtype': u'Small Text', "fieldname": "description",
'permlevel': 0, "fieldtype": "Small Text",
'reqd': 1, "reqd": 1,
'width': u'300px' "permlevel": 0
}, },
# DocField
{ {
'default': u'0.00', "default": "0.00",
'doctype': u'DocField', "oldfieldtype": "Currency",
'fieldname': u'qty', "doctype": "DocField",
'fieldtype': u'Currency', "label": "Quantity",
'label': u'Quantity', "oldfieldname": "qty",
'oldfieldname': u'qty', "width": "60px",
'oldfieldtype': u'Currency', "fieldname": "qty",
'permlevel': 0, "fieldtype": "Currency",
'reqd': 1, "reqd": 1,
'trigger': u'Client', "permlevel": 0
'width': u'60px'
}, },
# DocField
{ {
'doctype': u'DocField', "print_hide": 1,
'fieldname': u'import_ref_rate', "doctype": "DocField",
'fieldtype': u'Currency', "label": "Ref Rate ",
'label': u'Ref Rate ', "fieldname": "import_ref_rate",
'permlevel': 0, "fieldtype": "Currency",
'print_hide': 1 "permlevel": 0
}, },
# DocField
{ {
'doctype': u'DocField', "print_hide": 0,
'fieldname': u'discount_rate', "doctype": "DocField",
'fieldtype': u'Currency', "label": "Discount %",
'label': u'Discount %', "fieldname": "discount_rate",
'permlevel': 0, "fieldtype": "Currency",
'print_hide': 1, "permlevel": 0
'trigger': u'Client'
}, },
# DocField
{ {
'doctype': u'DocField', "print_hide": 0,
'fieldname': u'import_rate', "oldfieldtype": "Currency",
'fieldtype': u'Currency', "doctype": "DocField",
'hidden': 0, "label": "Rate ",
'label': u'Rate ', "oldfieldname": "import_rate",
'oldfieldname': u'import_rate', "fieldname": "import_rate",
'oldfieldtype': u'Currency', "fieldtype": "Currency",
'permlevel': 0, "hidden": 0,
'print_hide': 0, "permlevel": 0
'trigger': u'Client'
}, },
# DocField
{ {
'doctype': u'DocField', "oldfieldtype": "Currency",
'fieldname': u'import_amount', "doctype": "DocField",
'fieldtype': u'Currency', "label": "Amount",
'label': u'Amount', "oldfieldname": "import_amount",
'oldfieldname': u'import_amount', "fieldname": "import_amount",
'oldfieldtype': u'Currency', "fieldtype": "Currency",
'permlevel': 1 "permlevel": 1
}, },
# DocField
{ {
'doctype': u'DocField', "print_hide": 1,
'fieldname': u'purchase_ref_rate', "doctype": "DocField",
'fieldtype': u'Currency', "label": "Ref Rate *",
'label': u'Ref Rate *', "fieldname": "purchase_ref_rate",
'permlevel': 0, "fieldtype": "Currency",
'print_hide': 1 "permlevel": 0
}, },
# DocField
{ {
'default': u'0.00', "print_hide": 1,
'doctype': u'DocField', "default": "0.00",
'fieldname': u'purchase_rate', "oldfieldtype": "Currency",
'fieldtype': u'Currency', "doctype": "DocField",
'label': u'Rate (Default Curr.) *', "label": "Rate (Default Curr.) *",
'oldfieldname': u'purchase_rate', "oldfieldname": "purchase_rate",
'oldfieldtype': u'Currency', "width": "100px",
'permlevel': 0, "fieldname": "purchase_rate",
'print_hide': 1, "fieldtype": "Currency",
'reqd': 1, "reqd": 1,
'trigger': u'Client', "permlevel": 0
'width': u'100px'
}, },
# DocField
{ {
'default': u'0.00', "print_hide": 1,
'doctype': u'DocField', "default": "0.00",
'fieldname': u'amount', "oldfieldtype": "Currency",
'fieldtype': u'Currency', "doctype": "DocField",
'label': u'Amount (Default Curr.)', "label": "Amount (Default Curr.)",
'oldfieldname': u'amount', "oldfieldname": "amount",
'oldfieldtype': u'Currency', "fieldname": "amount",
'permlevel': 1, "fieldtype": "Currency",
'print_hide': 1, "reqd": 1,
'reqd': 1 "permlevel": 1
}, },
# DocField
{ {
'doctype': u'DocField', "print_hide": 1,
'fieldname': u'warehouse', "oldfieldtype": "Link",
'fieldtype': u'Link', "doctype": "DocField",
'hidden': 0, "label": "Warehouse",
'label': u'Warehouse', "oldfieldname": "warehouse",
'oldfieldname': u'warehouse', "options": "Warehouse",
'oldfieldtype': u'Link', "fieldname": "warehouse",
'options': u'Warehouse', "fieldtype": "Link",
'permlevel': 0, "reqd": 0,
'print_hide': 1, "hidden": 0,
'reqd': 0, "permlevel": 0
'trigger': u'Client'
}, },
# DocField
{ {
'doctype': u'DocField', "print_hide": 1,
'fieldname': u'project_name', "doctype": "DocField",
'fieldtype': u'Link', "label": "Project Name",
'in_filter': 1, "options": "Project",
'label': u'Project Name', "fieldname": "project_name",
'options': u'Project', "fieldtype": "Link",
'permlevel': 0, "permlevel": 0,
'print_hide': 1, "report_hide": 0,
'report_hide': 0 "in_filter": 1
}, },
# DocField
{ {
'doctype': u'DocField', "print_hide": 0,
'fieldname': u'uom', "oldfieldtype": "Link",
'fieldtype': u'Link', "doctype": "DocField",
'label': u'UOM', "label": "UOM",
'oldfieldname': u'uom', "oldfieldname": "uom",
'oldfieldtype': u'Link', "width": "100px",
'options': u'UOM', "options": "UOM",
'permlevel': 0, "fieldname": "uom",
'print_hide': 0, "fieldtype": "Link",
'reqd': 1, "reqd": 1,
'trigger': u'Client', "permlevel": 0
'width': u'100px'
}, },
# DocField
{ {
'colour': u'White:FFF', "print_hide": 1,
'doctype': u'DocField', "no_copy": 0,
'fieldname': u'prevdoc_doctype', "oldfieldtype": "Data",
'fieldtype': u'Data', "doctype": "DocField",
'hidden': 1, "label": "Prevdoc DocType",
'label': u'Prevdoc DocType', "oldfieldname": "prevdoc_doctype",
'no_copy': 0, "fieldname": "prevdoc_doctype",
'oldfieldname': u'prevdoc_doctype', "fieldtype": "Data",
'oldfieldtype': u'Data', "hidden": 1,
'permlevel': 1, "permlevel": 1
'print_hide': 1
}, },
# DocField
{ {
'colour': u'White:FFF', "print_hide": 1,
'doctype': u'DocField', "permlevel": 1,
'fieldname': u'prevdoc_docname', "no_copy": 0,
'fieldtype': u'Link', "oldfieldtype": "Link",
'hidden': 0, "doctype": "DocField",
'in_filter': 1, "label": "Purchase Request No",
'label': u'Purchase Request No', "oldfieldname": "prevdoc_docname",
'no_copy': 0, "width": "120px",
'oldfieldname': u'prevdoc_docname', "fieldname": "prevdoc_docname",
'oldfieldtype': u'Link', "fieldtype": "Link",
'options': u'Purchase Request', "search_index": 1,
'permlevel': 1, "hidden": 0,
'print_hide': 1, "options": "Purchase Request",
'search_index': 1, "in_filter": 1
'width': u'120px'
}, },
# DocField
{ {
'doctype': u'DocField', "print_hide": 1,
'fieldname': u'prevdoc_date', "oldfieldtype": "Date",
'fieldtype': u'Date', "doctype": "DocField",
'hidden': 1, "label": "Purchase Request Date",
'in_filter': 1, "oldfieldname": "prevdoc_date",
'label': u'Purchase Request Date', "fieldname": "prevdoc_date",
'oldfieldname': u'prevdoc_date', "fieldtype": "Date",
'oldfieldtype': u'Date', "search_index": 0,
'permlevel': 1, "hidden": 1,
'print_hide': 1, "permlevel": 1,
'search_index': 0 "in_filter": 1
}, },
# DocField
{ {
'colour': u'White:FFF', "print_hide": 1,
'doctype': u'DocField', "no_copy": 0,
'fieldname': u'prevdoc_detail_docname', "oldfieldtype": "Data",
'fieldtype': u'Data', "doctype": "DocField",
'hidden': 1, "label": "Purchase Request Detail No",
'in_filter': 1, "oldfieldname": "prevdoc_detail_docname",
'label': u'Purchase Request Detail No', "fieldname": "prevdoc_detail_docname",
'no_copy': 0, "fieldtype": "Data",
'oldfieldname': u'prevdoc_detail_docname', "search_index": 1,
'oldfieldtype': u'Data', "hidden": 1,
'permlevel': 1, "permlevel": 1,
'print_hide': 1, "in_filter": 1
'search_index': 1
}, },
# DocField
{ {
'doctype': u'DocField', "print_hide": 1,
'fieldname': u'brand', "oldfieldtype": "Link",
'fieldtype': u'Link', "doctype": "DocField",
'hidden': 1, "label": "Brand",
'label': u'Brand', "oldfieldname": "brand",
'oldfieldname': u'brand', "options": "Brand",
'oldfieldtype': u'Link', "fieldname": "brand",
'options': u'Brand', "fieldtype": "Link",
'permlevel': 1, "hidden": 1,
'print_hide': 1 "permlevel": 1
}, },
# DocField
{ {
'doctype': u'DocField', "print_hide": 1,
'fieldname': u'item_group', "oldfieldtype": "Link",
'fieldtype': u'Link', "doctype": "DocField",
'hidden': 1, "label": "Item Group",
'in_filter': 1, "oldfieldname": "item_group",
'label': u'Item Group', "permlevel": 1,
'oldfieldname': u'item_group', "fieldname": "item_group",
'oldfieldtype': u'Link', "fieldtype": "Link",
'options': u'Item Group', "search_index": 0,
'permlevel': 1, "hidden": 1,
'print_hide': 1, "options": "Item Group",
'search_index': 0 "in_filter": 1
}, },
# DocField
{ {
'colour': u'White:FFF', "print_hide": 1,
'description': u'Tax detail table fetched from item master as a string and stored in this field.\nUsed for Taxes and Charges', "description": "Tax detail table fetched from item master as a string and stored in this field.\nUsed for Taxes and Charges",
'doctype': u'DocField', "oldfieldtype": "Small Text",
'fieldname': u'item_tax_rate', "doctype": "DocField",
'fieldtype': u'Small Text', "label": "Item Tax Rate",
'hidden': 1, "oldfieldname": "item_tax_rate",
'label': u'Item Tax Rate', "fieldname": "item_tax_rate",
'oldfieldname': u'item_tax_rate', "fieldtype": "Small Text",
'oldfieldtype': u'Small Text', "hidden": 1,
'permlevel': 1, "permlevel": 1,
'print_hide': 1, "report_hide": 1
'report_hide': 1
}, },
# DocField
{ {
'allow_on_submit': 1, "print_hide": 1,
'doctype': u'DocField', "no_copy": 1,
'fieldname': u'page_break', "oldfieldtype": "Check",
'fieldtype': u'Check', "allow_on_submit": 1,
'hidden': 0, "doctype": "DocField",
'label': u'Page Break', "label": "Page Break",
'no_copy': 1, "oldfieldname": "page_break",
'oldfieldname': u'page_break', "fieldname": "page_break",
'oldfieldtype': u'Check', "fieldtype": "Check",
'permlevel': 0, "hidden": 0,
'print_hide': 1 "permlevel": 0
} }
] ]

View File

@@ -16,6 +16,7 @@
cur_frm.add_fetch('employee','employee_name','employee_name'); cur_frm.add_fetch('employee','employee_name','employee_name');
cur_frm.cscript.onload = function(doc, dt, dn) { cur_frm.cscript.onload = function(doc, dt, dn) {
if(!doc.posting_date) if(!doc.posting_date)
set_multiple(dt,dn,{posting_date:get_today()}); set_multiple(dt,dn,{posting_date:get_today()});

View File

@@ -104,14 +104,14 @@ def get_leave_balance(employee, leave_type, fiscal_year):
leave_all = webnotes.conn.sql("""select total_leaves_allocated leave_all = webnotes.conn.sql("""select total_leaves_allocated
from `tabLeave Allocation` where employee = %s and leave_type = %s from `tabLeave Allocation` where employee = %s and leave_type = %s
and fiscal_year = %s and docstatus = 1""", (employee, and fiscal_year = %s and docstatus = 1""", (employee,
leave_type, fiscal_year), debug=1) leave_type, fiscal_year))
leave_all = leave_all and flt(leave_all[0][0]) or 0 leave_all = leave_all and flt(leave_all[0][0]) or 0
leave_app = webnotes.conn.sql("""select SUM(total_leave_days) leave_app = webnotes.conn.sql("""select SUM(total_leave_days)
from `tabLeave Application` from `tabLeave Application`
where employee = %s and leave_type = %s and fiscal_year = %s where employee = %s and leave_type = %s and fiscal_year = %s
and docstatus = 1""", (employee, leave_type, fiscal_year), debug=1) and docstatus = 1""", (employee, leave_type, fiscal_year))
leave_app = leave_app and flt(leave_app[0][0]) or 0 leave_app = leave_app and flt(leave_app[0][0]) or 0
ret = {'leave_balance': leave_all - leave_app} ret = {'leave_balance': leave_all - leave_app}

View File

@@ -2,9 +2,9 @@
{ {
"owner": "Administrator", "owner": "Administrator",
"docstatus": 0, "docstatus": 0,
"creation": "2012-12-07 18:27:12", "creation": "2012-12-10 10:25:20",
"modified_by": "Administrator", "modified_by": "Administrator",
"modified": "2012-12-07 18:47:48" "modified": "2012-12-18 11:06:54"
}, },
{ {
"is_submittable": 1, "is_submittable": 1,
@@ -160,7 +160,7 @@
"search_index": 0, "search_index": 0,
"doctype": "DocField", "doctype": "DocField",
"label": "Fiscal Year", "label": "Fiscal Year",
"options": "Link:Fiscal Year", "options": "link:Fiscal Year",
"fieldname": "fiscal_year", "fieldname": "fiscal_year",
"fieldtype": "Select", "fieldtype": "Select",
"reqd": 1, "reqd": 1,
@@ -239,5 +239,10 @@
"role": "Leave Approver", "role": "Leave Approver",
"cancel": 0, "cancel": 0,
"permlevel": 2 "permlevel": 2
},
{
"doctype": "DocPerm",
"role": "All",
"permlevel": 3
} }
] ]