fixes merge conflict
This commit is contained in:
commit
223897f145
@ -9,13 +9,13 @@
|
|||||||
{
|
{
|
||||||
"in_create": 1,
|
"in_create": 1,
|
||||||
"allow_rename": 1,
|
"allow_rename": 1,
|
||||||
"description": "Heads (or groups) against which Accounting Entries are made and balances are maintained.",
|
"name": "__common__",
|
||||||
"search_fields": "debit_or_credit, group_or_ledger",
|
|
||||||
"module": "Accounts",
|
"module": "Accounts",
|
||||||
"doctype": "DocType",
|
"doctype": "DocType",
|
||||||
"allow_copy": 1,
|
"allow_copy": 1,
|
||||||
|
"search_fields": "debit_or_credit, group_or_ledger",
|
||||||
"document_type": "Master",
|
"document_type": "Master",
|
||||||
"name": "__common__"
|
"description": "Heads (or groups) against which Accounting Entries are made and balances are maintained."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
@ -27,10 +27,10 @@
|
|||||||
{
|
{
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
"parent": "Account",
|
"parent": "Account",
|
||||||
"amend": 0,
|
|
||||||
"doctype": "DocPerm",
|
|
||||||
"submit": 0,
|
|
||||||
"read": 1,
|
"read": 1,
|
||||||
|
"submit": 0,
|
||||||
|
"doctype": "DocPerm",
|
||||||
|
"amend": 0,
|
||||||
"parenttype": "DocType",
|
"parenttype": "DocType",
|
||||||
"parentfield": "permissions"
|
"parentfield": "permissions"
|
||||||
},
|
},
|
||||||
@ -83,12 +83,12 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Group or Ledger",
|
"label": "Group or Ledger",
|
||||||
"oldfieldname": "group_or_ledger",
|
"oldfieldname": "group_or_ledger",
|
||||||
"permlevel": 1,
|
"options": "\nLedger\nGroup",
|
||||||
"fieldname": "group_or_ledger",
|
"fieldname": "group_or_ledger",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"search_index": 1,
|
"search_index": 1,
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"options": "\nLedger\nGroup",
|
"permlevel": 1,
|
||||||
"in_filter": 1
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -107,11 +107,11 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Is PL Account",
|
"label": "Is PL Account",
|
||||||
"oldfieldname": "is_pl_account",
|
"oldfieldname": "is_pl_account",
|
||||||
"options": "Yes\nNo",
|
"permlevel": 1,
|
||||||
"fieldname": "is_pl_account",
|
"fieldname": "is_pl_account",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"search_index": 1,
|
"search_index": 1,
|
||||||
"permlevel": 1,
|
"options": "Yes\nNo",
|
||||||
"in_filter": 1
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -119,12 +119,12 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Company",
|
"label": "Company",
|
||||||
"oldfieldname": "company",
|
"oldfieldname": "company",
|
||||||
"options": "Company",
|
"permlevel": 1,
|
||||||
"fieldname": "company",
|
"fieldname": "company",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"search_index": 1,
|
"search_index": 1,
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"permlevel": 1,
|
"options": "Company",
|
||||||
"in_filter": 1
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -139,11 +139,11 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Parent Account",
|
"label": "Parent Account",
|
||||||
"oldfieldname": "parent_account",
|
"oldfieldname": "parent_account",
|
||||||
"options": "Account",
|
"permlevel": 0,
|
||||||
"fieldname": "parent_account",
|
"fieldname": "parent_account",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"search_index": 1,
|
"search_index": 1,
|
||||||
"permlevel": 0
|
"options": "Account"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "Setting Account Type helps in selecting this Account in transactions.",
|
"description": "Setting Account Type helps in selecting this Account in transactions.",
|
||||||
@ -151,11 +151,11 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Account Type",
|
"label": "Account Type",
|
||||||
"oldfieldname": "account_type",
|
"oldfieldname": "account_type",
|
||||||
"options": "\nFixed Asset Account\nBank or Cash\nExpense Account\nTax\nIncome Account\nChargeable",
|
"permlevel": 0,
|
||||||
"fieldname": "account_type",
|
"fieldname": "account_type",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"search_index": 0,
|
"search_index": 0,
|
||||||
"permlevel": 0,
|
"options": "\nFixed Asset Account\nBank or Cash\nExpense Account\nTax\nIncome Account\nChargeable",
|
||||||
"in_filter": 1
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -176,10 +176,10 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Frozen",
|
"label": "Frozen",
|
||||||
"oldfieldname": "freeze_account",
|
"oldfieldname": "freeze_account",
|
||||||
"options": "No\nYes",
|
"permlevel": 2,
|
||||||
"fieldname": "freeze_account",
|
"fieldname": "freeze_account",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"permlevel": 2
|
"options": "No\nYes"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
@ -209,20 +209,20 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Master Type",
|
"label": "Master Type",
|
||||||
"oldfieldname": "master_type",
|
"oldfieldname": "master_type",
|
||||||
"options": "\nSupplier\nCustomer\nEmployee",
|
"permlevel": 0,
|
||||||
"fieldname": "master_type",
|
"fieldname": "master_type",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"permlevel": 0
|
"options": "\nSupplier\nCustomer\nEmployee"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"oldfieldtype": "Link",
|
"oldfieldtype": "Link",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Master Name",
|
"label": "Master Name",
|
||||||
"oldfieldname": "master_name",
|
"oldfieldname": "master_name",
|
||||||
"options": "[Select]",
|
"permlevel": 0,
|
||||||
"fieldname": "master_name",
|
"fieldname": "master_name",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"permlevel": 0
|
"options": "[Select]"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"read_only": 1,
|
"read_only": 1,
|
||||||
@ -258,6 +258,7 @@
|
|||||||
"create": 0,
|
"create": 0,
|
||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"write": 1,
|
"write": 1,
|
||||||
|
"report": 1,
|
||||||
"role": "Auditor",
|
"role": "Auditor",
|
||||||
"cancel": 0,
|
"cancel": 0,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
@ -282,6 +283,7 @@
|
|||||||
"create": 0,
|
"create": 0,
|
||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"write": 0,
|
"write": 0,
|
||||||
|
"report": 1,
|
||||||
"role": "Sales User",
|
"role": "Sales User",
|
||||||
"cancel": 0,
|
"cancel": 0,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
@ -290,6 +292,7 @@
|
|||||||
"create": 0,
|
"create": 0,
|
||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"write": 0,
|
"write": 0,
|
||||||
|
"report": 1,
|
||||||
"role": "Purchase User",
|
"role": "Purchase User",
|
||||||
"cancel": 0,
|
"cancel": 0,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
@ -298,6 +301,7 @@
|
|||||||
"create": 0,
|
"create": 0,
|
||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"write": 1,
|
"write": 1,
|
||||||
|
"report": 1,
|
||||||
"role": "Accounts User",
|
"role": "Accounts User",
|
||||||
"cancel": 0,
|
"cancel": 0,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
@ -306,6 +310,7 @@
|
|||||||
"create": 1,
|
"create": 1,
|
||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"write": 1,
|
"write": 1,
|
||||||
|
"report": 1,
|
||||||
"role": "Accounts Manager",
|
"role": "Accounts Manager",
|
||||||
"cancel": 1,
|
"cancel": 1,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
|
@ -11,12 +11,12 @@
|
|||||||
"description": "**Budget Distribution** helps you distribute your budget across months if you have seasonality in your business.\n\nTo distribute a budget using this distribution, set this **Budget Distribution** in the **Cost Center**",
|
"description": "**Budget Distribution** helps you distribute your budget across months if you have seasonality in your business.\n\nTo distribute a budget using this distribution, set this **Budget Distribution** in the **Cost Center**",
|
||||||
"module": "Accounts",
|
"module": "Accounts",
|
||||||
"allow_trash": 1,
|
"allow_trash": 1,
|
||||||
"server_code_error": " ",
|
|
||||||
"autoname": "field:distribution_id",
|
"autoname": "field:distribution_id",
|
||||||
|
"show_in_menu": 0,
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
"colour": "White:FFF",
|
"colour": "White:FFF",
|
||||||
"doctype": "DocType",
|
"doctype": "DocType",
|
||||||
"show_in_menu": 0,
|
"server_code_error": " ",
|
||||||
"name_case": "Title Case",
|
"name_case": "Title Case",
|
||||||
"version": 1
|
"version": 1
|
||||||
},
|
},
|
||||||
@ -43,8 +43,9 @@
|
|||||||
"create": 1,
|
"create": 1,
|
||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"write": 1,
|
"write": 1,
|
||||||
"role": "System Manager",
|
|
||||||
"cancel": 1,
|
"cancel": 1,
|
||||||
|
"role": "System Manager",
|
||||||
|
"report": 1,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -64,6 +65,7 @@
|
|||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"submit": 0,
|
"submit": 0,
|
||||||
"write": 1,
|
"write": 1,
|
||||||
|
"report": 1,
|
||||||
"role": "Accounts Manager",
|
"role": "Accounts Manager",
|
||||||
"cancel": 1,
|
"cancel": 1,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
@ -100,11 +102,11 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Fiscal Year",
|
"label": "Fiscal Year",
|
||||||
"oldfieldname": "fiscal_year",
|
"oldfieldname": "fiscal_year",
|
||||||
"permlevel": 0,
|
"options": "link:Fiscal Year",
|
||||||
"fieldname": "fiscal_year",
|
"fieldname": "fiscal_year",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"oldfieldtype": "Select",
|
"oldfieldtype": "Select",
|
||||||
"options": "link:Fiscal Year",
|
"permlevel": 0,
|
||||||
"in_filter": 1
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -112,10 +114,10 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Budget Distribution Details",
|
"label": "Budget Distribution Details",
|
||||||
"oldfieldname": "budget_distribution_details",
|
"oldfieldname": "budget_distribution_details",
|
||||||
"permlevel": 0,
|
"options": "Budget Distribution Detail",
|
||||||
"fieldname": "budget_distribution_details",
|
"fieldname": "budget_distribution_details",
|
||||||
"fieldtype": "Table",
|
"fieldtype": "Table",
|
||||||
"options": "Budget Distribution Detail"
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"oldfieldtype": "Small Text",
|
"oldfieldtype": "Small Text",
|
||||||
|
@ -7,11 +7,11 @@
|
|||||||
"modified": "2012-12-06 12:12:46"
|
"modified": "2012-12-06 12:12:46"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"in_create": 1,
|
"description": "Track separate Income and Expense for product verticals or divisions.",
|
||||||
"search_fields": "name,parent_cost_center",
|
"search_fields": "name,parent_cost_center",
|
||||||
"module": "Accounts",
|
"module": "Accounts",
|
||||||
"document_type": "Master",
|
"document_type": "Master",
|
||||||
"description": "Track separate Income and Expense for product verticals or divisions.",
|
"in_create": 1,
|
||||||
"autoname": "field:cost_center_name",
|
"autoname": "field:cost_center_name",
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
"allow_rename": 1,
|
"allow_rename": 1,
|
||||||
@ -72,12 +72,12 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Parent Cost Center",
|
"label": "Parent Cost Center",
|
||||||
"oldfieldname": "parent_cost_center",
|
"oldfieldname": "parent_cost_center",
|
||||||
|
"permlevel": 0,
|
||||||
"trigger": "Client",
|
"trigger": "Client",
|
||||||
"fieldname": "parent_cost_center",
|
"fieldname": "parent_cost_center",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"options": "Cost Center",
|
"options": "Cost Center"
|
||||||
"permlevel": 0
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"oldfieldtype": "Link",
|
"oldfieldtype": "Link",
|
||||||
@ -85,12 +85,12 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Company",
|
"label": "Company",
|
||||||
"oldfieldname": "company_name",
|
"oldfieldname": "company_name",
|
||||||
|
"permlevel": 0,
|
||||||
"trigger": "Client",
|
"trigger": "Client",
|
||||||
"fieldname": "company_name",
|
"fieldname": "company_name",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"options": "Company",
|
"options": "Company"
|
||||||
"permlevel": 0
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"oldfieldtype": "Data",
|
"oldfieldtype": "Data",
|
||||||
@ -143,10 +143,10 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Distribution Id",
|
"label": "Distribution Id",
|
||||||
"oldfieldname": "distribution_id",
|
"oldfieldname": "distribution_id",
|
||||||
"options": "Budget Distribution",
|
"permlevel": 0,
|
||||||
"fieldname": "distribution_id",
|
"fieldname": "distribution_id",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"permlevel": 0
|
"options": "Budget Distribution"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "Add rows to set annual budgets on Accounts.",
|
"description": "Add rows to set annual budgets on Accounts.",
|
||||||
@ -155,10 +155,10 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Budget Details",
|
"label": "Budget Details",
|
||||||
"oldfieldname": "budget_details",
|
"oldfieldname": "budget_details",
|
||||||
"options": "Budget Detail",
|
"permlevel": 0,
|
||||||
"fieldname": "budget_details",
|
"fieldname": "budget_details",
|
||||||
"fieldtype": "Table",
|
"fieldtype": "Table",
|
||||||
"permlevel": 0
|
"options": "Budget Detail"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
@ -198,11 +198,11 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "old_parent",
|
"label": "old_parent",
|
||||||
"oldfieldname": "old_parent",
|
"oldfieldname": "old_parent",
|
||||||
"permlevel": 0,
|
"options": "Cost Center",
|
||||||
"fieldname": "old_parent",
|
"fieldname": "old_parent",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"hidden": 1,
|
"hidden": 1,
|
||||||
"options": "Cost Center",
|
"permlevel": 0,
|
||||||
"report_hide": 1
|
"report_hide": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -221,6 +221,7 @@
|
|||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"submit": 0,
|
"submit": 0,
|
||||||
"write": 1,
|
"write": 1,
|
||||||
|
"report": 1,
|
||||||
"role": "Accounts Manager",
|
"role": "Accounts Manager",
|
||||||
"cancel": 1,
|
"cancel": 1,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
@ -241,6 +242,7 @@
|
|||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"submit": 0,
|
"submit": 0,
|
||||||
"write": 0,
|
"write": 0,
|
||||||
|
"report": 1,
|
||||||
"role": "Accounts User",
|
"role": "Accounts User",
|
||||||
"cancel": 0,
|
"cancel": 0,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
@ -249,13 +251,14 @@
|
|||||||
"create": 1,
|
"create": 1,
|
||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"write": 1,
|
"write": 1,
|
||||||
"role": "System Manager",
|
|
||||||
"cancel": 1,
|
"cancel": 1,
|
||||||
|
"role": "System Manager",
|
||||||
|
"report": 1,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocPerm",
|
|
||||||
"role": "All",
|
"role": "All",
|
||||||
"permlevel": 1
|
"permlevel": 1,
|
||||||
|
"doctype": "DocPerm"
|
||||||
}
|
}
|
||||||
]
|
]
|
@ -10,14 +10,14 @@
|
|||||||
"section_style": "Tabbed",
|
"section_style": "Tabbed",
|
||||||
"description": "**Fiscal Year** represents a Financial Year. All accounting entries and other major transactions are tracked against **Fiscal Year**.",
|
"description": "**Fiscal Year** represents a Financial Year. All accounting entries and other major transactions are tracked against **Fiscal Year**.",
|
||||||
"module": "Accounts",
|
"module": "Accounts",
|
||||||
"doctype": "DocType",
|
|
||||||
"allow_trash": 1,
|
|
||||||
"server_code_error": " ",
|
"server_code_error": " ",
|
||||||
"document_type": "Master",
|
"allow_trash": 1,
|
||||||
"autoname": "field:year",
|
"autoname": "field:year",
|
||||||
|
"document_type": "Master",
|
||||||
|
"_last_update": "1322549700",
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
"colour": "White:FFF",
|
"colour": "White:FFF",
|
||||||
"_last_update": "1322549700",
|
"doctype": "DocType",
|
||||||
"show_in_menu": 0,
|
"show_in_menu": 0,
|
||||||
"version": 1
|
"version": 1
|
||||||
},
|
},
|
||||||
@ -29,15 +29,16 @@
|
|||||||
"parentfield": "fields"
|
"parentfield": "fields"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"report": 1,
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
"parent": "Fiscal Year",
|
"parent": "Fiscal Year",
|
||||||
"read": 1,
|
"read": 1,
|
||||||
"create": 1,
|
"create": 1,
|
||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"write": 1,
|
"write": 1,
|
||||||
"cancel": 1,
|
|
||||||
"parenttype": "DocType",
|
"parenttype": "DocType",
|
||||||
"role": "System Manager",
|
"role": "System Manager",
|
||||||
|
"cancel": 1,
|
||||||
"permlevel": 0,
|
"permlevel": 0,
|
||||||
"parentfield": "permissions"
|
"parentfield": "permissions"
|
||||||
},
|
},
|
||||||
@ -100,10 +101,10 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Year Closed",
|
"label": "Year Closed",
|
||||||
"oldfieldname": "is_fiscal_year_closed",
|
"oldfieldname": "is_fiscal_year_closed",
|
||||||
"options": "\nNo\nYes",
|
"permlevel": 0,
|
||||||
"fieldname": "is_fiscal_year_closed",
|
"fieldname": "is_fiscal_year_closed",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"reqd": 0,
|
"reqd": 0,
|
||||||
"permlevel": 0
|
"options": "\nNo\nYes"
|
||||||
}
|
}
|
||||||
]
|
]
|
@ -23,17 +23,11 @@ from webnotes.model.wrapper import getlist
|
|||||||
from webnotes.model.code import get_obj
|
from webnotes.model.code import get_obj
|
||||||
from webnotes import msgprint
|
from webnotes import msgprint
|
||||||
|
|
||||||
from utilities.transaction_base import TransactionBase
|
|
||||||
|
|
||||||
class DocType:
|
class DocType:
|
||||||
def __init__(self,d,dl):
|
def __init__(self,d,dl):
|
||||||
self.doc, self.doclist = d, dl
|
self.doc, self.doclist = d, dl
|
||||||
self.entries = []
|
self.entries = []
|
||||||
|
|
||||||
def get_company_currency(self,arg=''):
|
|
||||||
dcc = TransactionBase().get_company_currency(arg)
|
|
||||||
return dcc
|
|
||||||
|
|
||||||
def get_period_difference(self,arg, cost_center =''):
|
def get_period_difference(self,arg, cost_center =''):
|
||||||
# used in General Ledger Page Report
|
# used in General Ledger Page Report
|
||||||
# used for Budget where cost center passed as extra argument
|
# used for Budget where cost center passed as extra argument
|
||||||
|
@ -11,12 +11,12 @@
|
|||||||
"in_create": 1,
|
"in_create": 1,
|
||||||
"search_fields": "voucher_no,account,posting_date,against_voucher",
|
"search_fields": "voucher_no,account,posting_date,against_voucher",
|
||||||
"module": "Accounts",
|
"module": "Accounts",
|
||||||
"doctype": "DocType",
|
|
||||||
"server_code_error": " ",
|
"server_code_error": " ",
|
||||||
"autoname": "GL.#######",
|
"autoname": "GL.#######",
|
||||||
|
"_last_update": "1319016431",
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
"colour": "White:FFF",
|
"colour": "White:FFF",
|
||||||
"_last_update": "1319016431",
|
"doctype": "DocType",
|
||||||
"show_in_menu": 0,
|
"show_in_menu": 0,
|
||||||
"version": 103
|
"version": 103
|
||||||
},
|
},
|
||||||
@ -35,6 +35,7 @@
|
|||||||
"create": 0,
|
"create": 0,
|
||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"write": 0,
|
"write": 0,
|
||||||
|
"report": 1,
|
||||||
"parenttype": "DocType",
|
"parenttype": "DocType",
|
||||||
"parentfield": "permissions"
|
"parentfield": "permissions"
|
||||||
},
|
},
|
||||||
|
@ -18,15 +18,14 @@ from __future__ import unicode_literals
|
|||||||
import webnotes
|
import webnotes
|
||||||
|
|
||||||
from webnotes.utils import cint, cstr, flt, fmt_money, formatdate, getdate
|
from webnotes.utils import cint, cstr, flt, fmt_money, formatdate, getdate
|
||||||
from webnotes.model import db_exists
|
|
||||||
from webnotes.model.doc import addchild, make_autoname
|
from webnotes.model.doc import addchild, make_autoname
|
||||||
from webnotes.model.wrapper import getlist, copy_doclist
|
from webnotes.model.wrapper import getlist
|
||||||
from webnotes.model.code import get_obj
|
from webnotes.model.code import get_obj
|
||||||
from webnotes import form, msgprint
|
from webnotes import msgprint
|
||||||
|
from setup.utils import get_company_currency
|
||||||
|
|
||||||
sql = webnotes.conn.sql
|
sql = webnotes.conn.sql
|
||||||
|
|
||||||
from utilities.transaction_base import TransactionBase
|
|
||||||
|
|
||||||
class DocType:
|
class DocType:
|
||||||
def __init__(self,d,dl):
|
def __init__(self,d,dl):
|
||||||
@ -238,7 +237,7 @@ class DocType:
|
|||||||
self.doc.pay_to_recd_from = webnotes.conn.get_value(master_type, ' - '.join(d.account.split(' - ')[:-1]), master_type == 'Customer' and 'customer_name' or 'supplier_name')
|
self.doc.pay_to_recd_from = webnotes.conn.get_value(master_type, ' - '.join(d.account.split(' - ')[:-1]), master_type == 'Customer' and 'customer_name' or 'supplier_name')
|
||||||
|
|
||||||
if acc_type == 'Bank or Cash':
|
if acc_type == 'Bank or Cash':
|
||||||
dcc = TransactionBase().get_company_currency(self.doc.company)
|
dcc = get_company_currency(self.doc.company)
|
||||||
amt = cint(d.debit) and d.debit or d.credit
|
amt = cint(d.debit) and d.debit or d.credit
|
||||||
self.doc.total_amount = dcc +' '+ cstr(amt)
|
self.doc.total_amount = dcc +' '+ cstr(amt)
|
||||||
self.doc.total_amount_in_words = get_obj('Sales Common').get_total_in_words(dcc, cstr(amt))
|
self.doc.total_amount_in_words = get_obj('Sales Common').get_total_in_words(dcc, cstr(amt))
|
||||||
|
@ -7,10 +7,10 @@
|
|||||||
"modified": "2012-12-04 16:33:37"
|
"modified": "2012-12-04 16:33:37"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"autoname": "field:mode_of_payment",
|
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
"doctype": "DocType",
|
"autoname": "field:mode_of_payment",
|
||||||
"module": "Accounts",
|
"module": "Accounts",
|
||||||
|
"doctype": "DocType",
|
||||||
"document_type": "Master"
|
"document_type": "Master"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -24,15 +24,16 @@
|
|||||||
{
|
{
|
||||||
"parent": "Mode of Payment",
|
"parent": "Mode of Payment",
|
||||||
"read": 1,
|
"read": 1,
|
||||||
|
"doctype": "DocPerm",
|
||||||
"cancel": 1,
|
"cancel": 1,
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
"amend": 0,
|
"amend": 0,
|
||||||
"create": 1,
|
"create": 1,
|
||||||
"doctype": "DocPerm",
|
|
||||||
"submit": 0,
|
"submit": 0,
|
||||||
"write": 1,
|
"write": 1,
|
||||||
"parenttype": "DocType",
|
"parenttype": "DocType",
|
||||||
"role": "Accounts Manager",
|
"role": "Accounts Manager",
|
||||||
|
"report": 1,
|
||||||
"permlevel": 0,
|
"permlevel": 0,
|
||||||
"parentfield": "permissions"
|
"parentfield": "permissions"
|
||||||
},
|
},
|
||||||
|
@ -11,12 +11,12 @@
|
|||||||
"is_submittable": 1,
|
"is_submittable": 1,
|
||||||
"search_fields": "posting_date, fiscal_year",
|
"search_fields": "posting_date, fiscal_year",
|
||||||
"module": "Accounts",
|
"module": "Accounts",
|
||||||
"doctype": "DocType",
|
|
||||||
"server_code_error": " ",
|
"server_code_error": " ",
|
||||||
"autoname": "PCE/.###",
|
"autoname": "PCE/.###",
|
||||||
|
"_last_update": "1311621379",
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
"colour": "White:FFF",
|
"colour": "White:FFF",
|
||||||
"_last_update": "1311621379",
|
"doctype": "DocType",
|
||||||
"show_in_menu": 0,
|
"show_in_menu": 0,
|
||||||
"version": 1
|
"version": 1
|
||||||
},
|
},
|
||||||
@ -85,6 +85,7 @@
|
|||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"submit": 1,
|
"submit": 1,
|
||||||
"write": 1,
|
"write": 1,
|
||||||
|
"report": 1,
|
||||||
"role": "System Manager",
|
"role": "System Manager",
|
||||||
"cancel": 1,
|
"cancel": 1,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
@ -94,8 +95,9 @@
|
|||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"submit": 1,
|
"submit": 1,
|
||||||
"write": 1,
|
"write": 1,
|
||||||
"role": "Accounts Manager",
|
|
||||||
"cancel": 1,
|
"cancel": 1,
|
||||||
|
"role": "Accounts Manager",
|
||||||
|
"report": 1,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -130,11 +132,11 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Closing Fiscal Year",
|
"label": "Closing Fiscal Year",
|
||||||
"oldfieldname": "fiscal_year",
|
"oldfieldname": "fiscal_year",
|
||||||
"permlevel": 0,
|
"options": "link:Fiscal Year",
|
||||||
"fieldname": "fiscal_year",
|
"fieldname": "fiscal_year",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"options": "link:Fiscal Year"
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"no_copy": 1,
|
"no_copy": 1,
|
||||||
@ -161,11 +163,11 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Company",
|
"label": "Company",
|
||||||
"oldfieldname": "company",
|
"oldfieldname": "company",
|
||||||
"permlevel": 0,
|
"options": "link:Company",
|
||||||
"fieldname": "company",
|
"fieldname": "company",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"options": "link:Company"
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"oldfieldtype": "Column Break",
|
"oldfieldtype": "Column Break",
|
||||||
@ -180,21 +182,21 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Closing Account Head",
|
"label": "Closing Account Head",
|
||||||
"oldfieldname": "closing_account_head",
|
"oldfieldname": "closing_account_head",
|
||||||
|
"permlevel": 0,
|
||||||
"trigger": "Client",
|
"trigger": "Client",
|
||||||
"fieldname": "closing_account_head",
|
"fieldname": "closing_account_head",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"options": "Account",
|
"options": "Account"
|
||||||
"permlevel": 0
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"oldfieldtype": "HTML",
|
"oldfieldtype": "HTML",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "CoA Help",
|
"label": "CoA Help",
|
||||||
"permlevel": 0,
|
"options": "<a href=\"#!Accounts Browser/Account\">To manage Account Head, click here</a>",
|
||||||
"fieldname": "coa_help",
|
"fieldname": "coa_help",
|
||||||
"fieldtype": "HTML",
|
"fieldtype": "HTML",
|
||||||
"options": "<a href=\"#!Accounts Browser/Account\">To manage Account Head, click here</a>"
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"oldfieldtype": "Small Text",
|
"oldfieldtype": "Small Text",
|
||||||
|
@ -10,12 +10,12 @@
|
|||||||
"section_style": "Simple",
|
"section_style": "Simple",
|
||||||
"module": "Accounts",
|
"module": "Accounts",
|
||||||
"doctype": "DocType",
|
"doctype": "DocType",
|
||||||
|
"server_code_error": " ",
|
||||||
"autoname": "POS/.####",
|
"autoname": "POS/.####",
|
||||||
"show_in_menu": 0,
|
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
"colour": "White:FFF",
|
"colour": "White:FFF",
|
||||||
"_last_update": "1322549700",
|
"_last_update": "1322549700",
|
||||||
"server_code_error": " ",
|
"show_in_menu": 0,
|
||||||
"version": 1
|
"version": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -32,6 +32,7 @@
|
|||||||
"read": 1,
|
"read": 1,
|
||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"parenttype": "DocType",
|
"parenttype": "DocType",
|
||||||
|
"report": 1,
|
||||||
"permlevel": 0,
|
"permlevel": 0,
|
||||||
"parentfield": "permissions"
|
"parentfield": "permissions"
|
||||||
},
|
},
|
||||||
|
@ -20,41 +20,42 @@ cur_frm.cscript.other_fname = "purchase_tax_details";
|
|||||||
wn.require('app/accounts/doctype/purchase_taxes_and_charges_master/purchase_taxes_and_charges_master.js');
|
wn.require('app/accounts/doctype/purchase_taxes_and_charges_master/purchase_taxes_and_charges_master.js');
|
||||||
wn.require('app/buying/doctype/purchase_common/purchase_common.js');
|
wn.require('app/buying/doctype/purchase_common/purchase_common.js');
|
||||||
|
|
||||||
|
erpnext.buying.PurchaseInvoiceController = erpnext.buying.BuyingController.extend({
|
||||||
|
refresh: function(doc) {
|
||||||
|
this._super();
|
||||||
|
|
||||||
|
// Show / Hide button
|
||||||
|
if(doc.docstatus==1 && doc.outstanding_amount > 0)
|
||||||
|
cur_frm.add_custom_button('Make Payment Entry', cur_frm.cscript.make_bank_voucher);
|
||||||
|
|
||||||
|
if(doc.docstatus==1) {
|
||||||
|
cur_frm.add_custom_button('View Ledger', cur_frm.cscript.view_ledger_entry);
|
||||||
|
}
|
||||||
|
|
||||||
|
cur_frm.cscript.is_opening(doc);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
var new_cscript = new erpnext.buying.PurchaseInvoiceController({frm: cur_frm});
|
||||||
|
|
||||||
|
// for backward compatibility: combine new and previous states
|
||||||
|
$.extend(cur_frm.cscript, new_cscript);
|
||||||
|
|
||||||
|
|
||||||
cur_frm.cscript.onload = function(doc,dt,dn) {
|
cur_frm.cscript.onload = function(doc,dt,dn) {
|
||||||
if(!doc.posting_date) set_multiple(dt,dn,{posting_date:get_today()});
|
if(!doc.posting_date) set_multiple(dt,dn,{posting_date:get_today()});
|
||||||
}
|
}
|
||||||
|
|
||||||
cur_frm.cscript.onload_post_render = function(doc, dt, dn) {
|
cur_frm.cscript.onload_post_render = function(doc, dt, dn) {
|
||||||
var callback = function(doc, dt, dn) {
|
var callback = function(doc, dt, dn) {
|
||||||
var callback1 = function(doc, dt, dn) {
|
if(doc.__islocal && doc.supplier) cur_frm.cscript.supplier(doc,dt,dn);
|
||||||
if(doc.__islocal && doc.supplier) cur_frm.cscript.supplier(doc,dt,dn);
|
|
||||||
}
|
|
||||||
|
|
||||||
// defined in purchase_common.js
|
|
||||||
cur_frm.cscript.update_item_details(doc, dt, dn, callback1);
|
|
||||||
}
|
}
|
||||||
cur_frm.cscript.dynamic_label(doc, dt, dn, callback);
|
|
||||||
|
// defined in purchase_common.js
|
||||||
|
cur_frm.cscript.update_item_details(doc, dt, dn, callback);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
cur_frm.cscript.refresh = function(doc, dt, dn) {
|
|
||||||
|
|
||||||
cur_frm.clear_custom_buttons();
|
|
||||||
erpnext.hide_naming_series();
|
|
||||||
|
|
||||||
if (!cur_frm.cscript.is_onload) cur_frm.cscript.dynamic_label(doc, dt, dn);
|
|
||||||
|
|
||||||
|
|
||||||
// Show / Hide button
|
|
||||||
if(doc.docstatus==1 && doc.outstanding_amount > 0)
|
|
||||||
cur_frm.add_custom_button('Make Payment Entry', cur_frm.cscript.make_bank_voucher);
|
|
||||||
|
|
||||||
if(doc.docstatus==1) {
|
|
||||||
cur_frm.add_custom_button('View Ledger', cur_frm.cscript.view_ledger_entry);
|
|
||||||
}
|
|
||||||
cur_frm.cscript.is_opening(doc, dt, dn);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
cur_frm.cscript.supplier = function(doc,dt,dn) {
|
cur_frm.cscript.supplier = function(doc,dt,dn) {
|
||||||
var callback = function(r,rt) {
|
var callback = function(r,rt) {
|
||||||
var doc = locals[cur_frm.doctype][cur_frm.docname];
|
var doc = locals[cur_frm.doctype][cur_frm.docname];
|
||||||
@ -162,13 +163,6 @@ cur_frm.cscript.get_items = function(doc, dt, dn) {
|
|||||||
$c_obj(make_doclist(dt,dn),'pull_details','',callback);
|
$c_obj(make_doclist(dt,dn),'pull_details','',callback);
|
||||||
}
|
}
|
||||||
|
|
||||||
cur_frm.cscript.item_code = function(doc,cdt,cdn){
|
|
||||||
var d = locals[cdt][cdn];
|
|
||||||
if(d.item_code){
|
|
||||||
get_server_fields('get_item_details',d.item_code,'entries',doc,cdt,cdn,1);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
cur_frm.cscript.allocated_amount = function(doc,cdt,cdn) {
|
cur_frm.cscript.allocated_amount = function(doc,cdt,cdn) {
|
||||||
calc_total_advance(doc, cdt, cdn);
|
calc_total_advance(doc, cdt, cdn);
|
||||||
}
|
}
|
||||||
|
@ -18,28 +18,20 @@ from __future__ import unicode_literals
|
|||||||
import webnotes
|
import webnotes
|
||||||
|
|
||||||
from webnotes.utils import add_days, cint, cstr, flt, formatdate, get_defaults
|
from webnotes.utils import add_days, cint, cstr, flt, formatdate, get_defaults
|
||||||
from webnotes.model import db_exists
|
from webnotes.model.wrapper import getlist
|
||||||
from webnotes.model.doc import Document, make_autoname
|
|
||||||
from webnotes.model.wrapper import getlist, copy_doclist
|
|
||||||
from webnotes.model.code import get_obj
|
from webnotes.model.code import get_obj
|
||||||
from webnotes import form, msgprint
|
from webnotes import msgprint
|
||||||
|
from setup.utils import get_company_currency
|
||||||
|
|
||||||
sql = webnotes.conn.sql
|
sql = webnotes.conn.sql
|
||||||
|
|
||||||
|
from controllers.buying_controller import BuyingController
|
||||||
from utilities.transaction_base import TransactionBase
|
class DocType(BuyingController):
|
||||||
|
|
||||||
class DocType(TransactionBase):
|
|
||||||
def __init__(self,d,dl):
|
def __init__(self,d,dl):
|
||||||
self.doc, self.doclist = d, dl
|
self.doc, self.doclist = d, dl
|
||||||
self.tname = 'Purchase Invoice Item'
|
self.tname = 'Purchase Invoice Item'
|
||||||
self.fname = 'entries'
|
self.fname = 'entries'
|
||||||
|
|
||||||
# Autoname
|
|
||||||
# ---------
|
|
||||||
def autoname(self):
|
|
||||||
self.doc.name = make_autoname(self.doc.naming_series+'.####')
|
|
||||||
|
|
||||||
|
|
||||||
# ************************** Trigger Functions ****************************
|
# ************************** Trigger Functions ****************************
|
||||||
|
|
||||||
@ -107,63 +99,6 @@ class DocType(TransactionBase):
|
|||||||
d.expense_head = item and item[0]['purchase_account'] or ''
|
d.expense_head = item and item[0]['purchase_account'] or ''
|
||||||
d.cost_center = item and item[0]['cost_center'] or ''
|
d.cost_center = item and item[0]['cost_center'] or ''
|
||||||
|
|
||||||
|
|
||||||
# Get Item Details
|
|
||||||
# -----------------
|
|
||||||
def get_item_details(self, arg=None):
|
|
||||||
if arg:
|
|
||||||
return self.get_pv_details(arg)
|
|
||||||
else:
|
|
||||||
for doc in self.doclist:
|
|
||||||
if doc.fields.get('item_code'):
|
|
||||||
ret = self.get_pv_details(doc.item_code)
|
|
||||||
for r in ret:
|
|
||||||
if not doc.fields.get(r):
|
|
||||||
doc.fields[r] = ret[r]
|
|
||||||
|
|
||||||
|
|
||||||
def get_pv_details(self, arg):
|
|
||||||
import json
|
|
||||||
item_det = sql("select item_name, brand, description, item_group, purchase_account, cost_center, stock_uom from tabItem where name=%s",arg,as_dict=1)
|
|
||||||
|
|
||||||
tax = sql("select tax_type, tax_rate from `tabItem Tax` where parent = %s" , arg)
|
|
||||||
t = {}
|
|
||||||
for x in tax: t[x[0]] = flt(x[1])
|
|
||||||
ret = {
|
|
||||||
'item_name': item_det and item_det[0]['item_name'] or '',
|
|
||||||
'brand': item_det and item_det[0]['brand'] or '',
|
|
||||||
'description': item_det and item_det[0]['description'] or '',
|
|
||||||
'item_group': item_det and item_det[0]['item_group'] or '',
|
|
||||||
'rate': 0.00,
|
|
||||||
'purchase_ref_rate': 0.00,
|
|
||||||
'import_ref_rate': 0.00,
|
|
||||||
'import_rate': 0.00,
|
|
||||||
'qty': 0.00,
|
|
||||||
'amount': 0.00,
|
|
||||||
'discount_rate': 0.00,
|
|
||||||
'expense_head': item_det and item_det[0]['purchase_account'] or '',
|
|
||||||
'cost_center': item_det and item_det[0]['cost_center'] or '',
|
|
||||||
'item_tax_rate': json.dumps(t),
|
|
||||||
'uom': item_det and item_det[0]['stock_uom'] or ''
|
|
||||||
}
|
|
||||||
|
|
||||||
# get last purchase rate
|
|
||||||
last_purchase_details, last_purchase_date = get_obj('Purchase Common').get_last_purchase_details(arg, self.doc.name)
|
|
||||||
if last_purchase_details:
|
|
||||||
purchase_ref_rate = last_purchase_details['purchase_ref_rate']
|
|
||||||
purchase_rate = last_purchase_details['purchase_rate']
|
|
||||||
conversion_rate = self.doc.conversion_rate or 1.0
|
|
||||||
ret.update({
|
|
||||||
'purchase_ref_rate': purchase_ref_rate,
|
|
||||||
'discount_rate': last_purchase_details['discount_rate'],
|
|
||||||
'rate': purchase_rate,
|
|
||||||
'import_ref_rate': purchase_ref_rate / conversion_rate,
|
|
||||||
'import_rate': purchase_rate / conversion_rate,
|
|
||||||
})
|
|
||||||
|
|
||||||
return ret
|
|
||||||
|
|
||||||
|
|
||||||
# Advance Allocation
|
# Advance Allocation
|
||||||
# -------------------
|
# -------------------
|
||||||
def get_advances(self):
|
def get_advances(self):
|
||||||
@ -225,7 +160,7 @@ class DocType(TransactionBase):
|
|||||||
# Check Conversion Rate
|
# Check Conversion Rate
|
||||||
# ----------------------
|
# ----------------------
|
||||||
def check_conversion_rate(self):
|
def check_conversion_rate(self):
|
||||||
default_currency = TransactionBase().get_company_currency(self.doc.company)
|
default_currency = get_company_currency(self.doc.company)
|
||||||
if not default_currency:
|
if not default_currency:
|
||||||
msgprint('Message: Please enter default currency in Company Master')
|
msgprint('Message: Please enter default currency in Company Master')
|
||||||
raise Exception
|
raise Exception
|
||||||
@ -394,6 +329,8 @@ class DocType(TransactionBase):
|
|||||||
# VALIDATE
|
# VALIDATE
|
||||||
# ====================================================================================
|
# ====================================================================================
|
||||||
def validate(self):
|
def validate(self):
|
||||||
|
super(DocType, self).validate()
|
||||||
|
|
||||||
self.po_required()
|
self.po_required()
|
||||||
self.pr_required()
|
self.pr_required()
|
||||||
self.check_active_purchase_items()
|
self.check_active_purchase_items()
|
||||||
@ -434,7 +371,7 @@ class DocType(TransactionBase):
|
|||||||
pc_obj = get_obj(dt='Purchase Common')
|
pc_obj = get_obj(dt='Purchase Common')
|
||||||
|
|
||||||
# get total in words
|
# get total in words
|
||||||
dcc = TransactionBase().get_company_currency(self.doc.company)
|
dcc = get_company_currency(self.doc.company)
|
||||||
self.doc.in_words = pc_obj.get_total_in_words(dcc, self.doc.grand_total)
|
self.doc.in_words = pc_obj.get_total_in_words(dcc, self.doc.grand_total)
|
||||||
self.doc.in_words_import = pc_obj.get_total_in_words(self.doc.currency,
|
self.doc.in_words_import = pc_obj.get_total_in_words(self.doc.currency,
|
||||||
self.doc.grand_total_import)
|
self.doc.grand_total_import)
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -10,14 +10,14 @@
|
|||||||
"section_style": "Simple",
|
"section_style": "Simple",
|
||||||
"description": "Standard tax template that can be applied to all Purchase Transactions. This template can contain list of tax heads and also other expense heads like \"Shipping\", \"Insurance\", \"Handling\" etc.\n\n#### Note\n\nThe tax rate you define here will be the standard tax rate for all **Items**. If there are **Items** that have different rates, they must be added in the **Item Tax** table in the **Item** master.\n\n#### Description of Columns\n\n1. Calculation Type: \n - This can be on **Net Total** (that is the sum of basic amount).\n - **On Previous Row Total / Amount** (for cumulative taxes or charges). If you select this option, the tax will be applied as a percentage of the previous row (in the tax table) amount or total.\n - **Actual** (as mentioned).\n2. Account Head: The Account ledger under which this tax will be booked\n3. Cost Center: If the tax / charge is an income (like shipping) or expense it needs to be booked against a Cost Center.\n4. Description: Description of the tax (that will be printed in invoices / quotes).\n5. Rate: Tax rate.\n6. Amount: Tax amount.\n7. Total: Cumulative total to this point.\n8. Enter Row: If based on \"Previous Row Total\" you can select the row number which will be taken as a base for this calculation (default is the previous row).\n9. Consider Tax or Charge for: In this section you can specify if the tax / charge is only for valuation (not a part of total) or only for total (does not add value to the item) or for both.\n10. Add or Deduct: Whether you want to add or deduct the tax.",
|
"description": "Standard tax template that can be applied to all Purchase Transactions. This template can contain list of tax heads and also other expense heads like \"Shipping\", \"Insurance\", \"Handling\" etc.\n\n#### Note\n\nThe tax rate you define here will be the standard tax rate for all **Items**. If there are **Items** that have different rates, they must be added in the **Item Tax** table in the **Item** master.\n\n#### Description of Columns\n\n1. Calculation Type: \n - This can be on **Net Total** (that is the sum of basic amount).\n - **On Previous Row Total / Amount** (for cumulative taxes or charges). If you select this option, the tax will be applied as a percentage of the previous row (in the tax table) amount or total.\n - **Actual** (as mentioned).\n2. Account Head: The Account ledger under which this tax will be booked\n3. Cost Center: If the tax / charge is an income (like shipping) or expense it needs to be booked against a Cost Center.\n4. Description: Description of the tax (that will be printed in invoices / quotes).\n5. Rate: Tax rate.\n6. Amount: Tax amount.\n7. Total: Cumulative total to this point.\n8. Enter Row: If based on \"Previous Row Total\" you can select the row number which will be taken as a base for this calculation (default is the previous row).\n9. Consider Tax or Charge for: In this section you can specify if the tax / charge is only for valuation (not a part of total) or only for total (does not add value to the item) or for both.\n10. Add or Deduct: Whether you want to add or deduct the tax.",
|
||||||
"module": "Accounts",
|
"module": "Accounts",
|
||||||
"doctype": "DocType",
|
|
||||||
"allow_trash": 1,
|
|
||||||
"server_code_error": " ",
|
"server_code_error": " ",
|
||||||
"document_type": "Master",
|
"allow_trash": 1,
|
||||||
"autoname": "field:title",
|
"autoname": "field:title",
|
||||||
|
"document_type": "Master",
|
||||||
|
"_last_update": "1325570646",
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
"colour": "White:FFF",
|
"colour": "White:FFF",
|
||||||
"_last_update": "1325570646",
|
"doctype": "DocType",
|
||||||
"show_in_menu": 0,
|
"show_in_menu": 0,
|
||||||
"version": 1
|
"version": 1
|
||||||
},
|
},
|
||||||
@ -52,6 +52,7 @@
|
|||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"submit": 0,
|
"submit": 0,
|
||||||
"write": 0,
|
"write": 0,
|
||||||
|
"report": 1,
|
||||||
"role": "Purchase Manager",
|
"role": "Purchase Manager",
|
||||||
"cancel": 0,
|
"cancel": 0,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
@ -60,8 +61,9 @@
|
|||||||
"create": 1,
|
"create": 1,
|
||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"write": 1,
|
"write": 1,
|
||||||
"role": "System Manager",
|
|
||||||
"cancel": 1,
|
"cancel": 1,
|
||||||
|
"role": "System Manager",
|
||||||
|
"report": 1,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -69,8 +71,9 @@
|
|||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"submit": 0,
|
"submit": 0,
|
||||||
"write": 1,
|
"write": 1,
|
||||||
"role": "Purchase Master Manager",
|
|
||||||
"cancel": 1,
|
"cancel": 1,
|
||||||
|
"role": "Purchase Master Manager",
|
||||||
|
"report": 1,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -26,6 +26,7 @@ from webnotes.model.doc import make_autoname
|
|||||||
from webnotes.model.wrapper import getlist, copy_doclist
|
from webnotes.model.wrapper import getlist, copy_doclist
|
||||||
from webnotes.model.code import get_obj
|
from webnotes.model.code import get_obj
|
||||||
from webnotes import session, form, msgprint
|
from webnotes import session, form, msgprint
|
||||||
|
from setup.utils import get_company_currency
|
||||||
|
|
||||||
session = webnotes.session
|
session = webnotes.session
|
||||||
|
|
||||||
@ -412,7 +413,7 @@ class DocType(TransactionBase):
|
|||||||
|
|
||||||
|
|
||||||
def set_in_words(self):
|
def set_in_words(self):
|
||||||
dcc = TransactionBase().get_company_currency(self.doc.company)
|
dcc = get_company_currency(self.doc.company)
|
||||||
self.doc.in_words = get_obj('Sales Common').get_total_in_words(dcc, self.doc.rounded_total)
|
self.doc.in_words = get_obj('Sales Common').get_total_in_words(dcc, self.doc.rounded_total)
|
||||||
self.doc.in_words_export = get_obj('Sales Common').get_total_in_words(self.doc.currency, self.doc.rounded_total_export)
|
self.doc.in_words_export = get_obj('Sales Common').get_total_in_words(self.doc.currency, self.doc.rounded_total_export)
|
||||||
|
|
||||||
@ -503,7 +504,7 @@ class DocType(TransactionBase):
|
|||||||
d.actual_qty = bin and flt(bin[0]['actual_qty']) or 0
|
d.actual_qty = bin and flt(bin[0]['actual_qty']) or 0
|
||||||
|
|
||||||
for d in getlist(self.doclist, 'packing_details'):
|
for d in getlist(self.doclist, 'packing_details'):
|
||||||
bin = sql("select actual_qty, projected_qty from `tabBin` where item_code = %s and warehouse = %s", (d.item_code, d.warehouse), as_dict = 1)
|
bin = webnotes.conn.sql("select actual_qty, projected_qty from `tabBin` where item_code = %s and warehouse = %s", (d.item_code, d.warehouse), as_dict = 1)
|
||||||
d.actual_qty = bin and flt(bin[0]['actual_qty']) or 0
|
d.actual_qty = bin and flt(bin[0]['actual_qty']) or 0
|
||||||
d.projected_qty = bin and flt(bin[0]['projected_qty']) or 0
|
d.projected_qty = bin and flt(bin[0]['projected_qty']) or 0
|
||||||
|
|
||||||
|
@ -8,12 +8,12 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"is_submittable": 1,
|
"is_submittable": 1,
|
||||||
"autoname": "naming_series:",
|
|
||||||
"allow_attach": 1,
|
"allow_attach": 1,
|
||||||
"search_fields": "posting_date, due_date, debit_to, fiscal_year, grand_total, outstanding_amount",
|
"autoname": "naming_series:",
|
||||||
"module": "Accounts",
|
"module": "Accounts",
|
||||||
"doctype": "DocType",
|
"doctype": "DocType",
|
||||||
"read_only_onload": 1,
|
"read_only_onload": 1,
|
||||||
|
"search_fields": "posting_date, due_date, debit_to, fiscal_year, grand_total, outstanding_amount",
|
||||||
"name": "__common__"
|
"name": "__common__"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -104,8 +104,8 @@
|
|||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"search_index": 1,
|
"search_index": 1,
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"in_filter": 1,
|
"options": "Account",
|
||||||
"options": "Account"
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
@ -176,45 +176,45 @@
|
|||||||
{
|
{
|
||||||
"print_hide": 0,
|
"print_hide": 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.",
|
||||||
"default": "Today",
|
"no_copy": 1,
|
||||||
"oldfieldtype": "Date",
|
"oldfieldtype": "Date",
|
||||||
"colour": "White:FFF",
|
"colour": "White:FFF",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Posting Date",
|
"label": "Posting Date",
|
||||||
"oldfieldname": "posting_date",
|
"oldfieldname": "posting_date",
|
||||||
"no_copy": 1,
|
"default": "Today",
|
||||||
"fieldname": "posting_date",
|
"fieldname": "posting_date",
|
||||||
"fieldtype": "Date",
|
"fieldtype": "Date",
|
||||||
"search_index": 1,
|
"search_index": 1,
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"in_filter": 1,
|
"permlevel": 0,
|
||||||
"permlevel": 0
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "Enter the date by which payments from customer is expected against this invoice.",
|
"description": "Enter the date by which payments from customer is expected against this invoice.",
|
||||||
"default": "Today",
|
"no_copy": 1,
|
||||||
"oldfieldtype": "Date",
|
"oldfieldtype": "Date",
|
||||||
"colour": "White:FFF",
|
"colour": "White:FFF",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Due Date",
|
"label": "Due Date",
|
||||||
"oldfieldname": "due_date",
|
"oldfieldname": "due_date",
|
||||||
"no_copy": 1,
|
"default": "Today",
|
||||||
"fieldname": "due_date",
|
"fieldname": "due_date",
|
||||||
"fieldtype": "Date",
|
"fieldtype": "Date",
|
||||||
"search_index": 0,
|
"search_index": 0,
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"in_filter": 1,
|
"permlevel": 0,
|
||||||
"permlevel": 0
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"oldfieldtype": "Select",
|
"oldfieldtype": "Select",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Mode of Payment",
|
"label": "Mode of Payment",
|
||||||
"oldfieldname": "mode_of_payment",
|
"oldfieldname": "mode_of_payment",
|
||||||
"options": "link:Mode of Payment",
|
"permlevel": 0,
|
||||||
"fieldname": "mode_of_payment",
|
"fieldname": "mode_of_payment",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"permlevel": 0
|
"options": "link:Mode of Payment"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"oldfieldtype": "Section Break",
|
"oldfieldtype": "Section Break",
|
||||||
@ -232,10 +232,10 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Entries",
|
"label": "Entries",
|
||||||
"oldfieldname": "entries",
|
"oldfieldname": "entries",
|
||||||
"options": "Sales Invoice Item",
|
"permlevel": 0,
|
||||||
"fieldname": "entries",
|
"fieldname": "entries",
|
||||||
"fieldtype": "Table",
|
"fieldtype": "Table",
|
||||||
"permlevel": 0
|
"options": "Sales Invoice Item"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
@ -247,10 +247,10 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"options": "Simple",
|
"permlevel": 0,
|
||||||
"fieldname": "section_break0",
|
"fieldname": "section_break0",
|
||||||
"fieldtype": "Section Break",
|
"fieldtype": "Section Break",
|
||||||
"permlevel": 0
|
"options": "Simple"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
@ -297,10 +297,10 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Sales Order",
|
"label": "Sales Order",
|
||||||
"oldfieldname": "sales_order_main",
|
"oldfieldname": "sales_order_main",
|
||||||
"options": "Sales Order",
|
"permlevel": 0,
|
||||||
"fieldname": "sales_order_main",
|
"fieldname": "sales_order_main",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"permlevel": 0
|
"options": "Sales Order"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
@ -310,10 +310,10 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Delivery Note",
|
"label": "Delivery Note",
|
||||||
"oldfieldname": "delivery_note_main",
|
"oldfieldname": "delivery_note_main",
|
||||||
"options": "Delivery Note",
|
"permlevel": 0,
|
||||||
"fieldname": "delivery_note_main",
|
"fieldname": "delivery_note_main",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"permlevel": 0
|
"options": "Delivery Note"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
@ -345,11 +345,11 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Price List",
|
"label": "Price List",
|
||||||
"oldfieldname": "price_list_name",
|
"oldfieldname": "price_list_name",
|
||||||
"options": "link:Price List",
|
"permlevel": 0,
|
||||||
"fieldname": "price_list_name",
|
"fieldname": "price_list_name",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"permlevel": 0
|
"options": "link:Price List"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
@ -357,11 +357,11 @@
|
|||||||
"colour": "White:FFF",
|
"colour": "White:FFF",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Price List Currency",
|
"label": "Price List Currency",
|
||||||
"options": "link:Currency",
|
"permlevel": 0,
|
||||||
"fieldname": "price_list_currency",
|
"fieldname": "price_list_currency",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"permlevel": 0
|
"options": "link:Currency"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
@ -387,11 +387,11 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Currency",
|
"label": "Currency",
|
||||||
"oldfieldname": "currency",
|
"oldfieldname": "currency",
|
||||||
"options": "link:Currency",
|
"permlevel": 0,
|
||||||
"fieldname": "currency",
|
"fieldname": "currency",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"permlevel": 0
|
"options": "link:Currency"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
@ -421,10 +421,10 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Taxes and Charges",
|
"label": "Taxes and Charges",
|
||||||
"oldfieldname": "charge",
|
"oldfieldname": "charge",
|
||||||
"options": "Sales Taxes and Charges Master",
|
"permlevel": 0,
|
||||||
"fieldname": "charge",
|
"fieldname": "charge",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"permlevel": 0
|
"options": "Sales Taxes and Charges Master"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
@ -443,10 +443,10 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Taxes and Charges1",
|
"label": "Taxes and Charges1",
|
||||||
"oldfieldname": "other_charges",
|
"oldfieldname": "other_charges",
|
||||||
"options": "Sales Taxes and Charges",
|
"permlevel": 0,
|
||||||
"fieldname": "other_charges",
|
"fieldname": "other_charges",
|
||||||
"fieldtype": "Table",
|
"fieldtype": "Table",
|
||||||
"permlevel": 0
|
"options": "Sales Taxes and Charges"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
@ -652,10 +652,10 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Cash/Bank Account",
|
"label": "Cash/Bank Account",
|
||||||
"oldfieldname": "cash_bank_account",
|
"oldfieldname": "cash_bank_account",
|
||||||
"options": "Account",
|
"permlevel": 0,
|
||||||
"fieldname": "cash_bank_account",
|
"fieldname": "cash_bank_account",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"permlevel": 0
|
"options": "Account"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"colour": "White:FFF",
|
"colour": "White:FFF",
|
||||||
@ -688,20 +688,20 @@
|
|||||||
"colour": "White:FFF",
|
"colour": "White:FFF",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Write Off Account",
|
"label": "Write Off Account",
|
||||||
"options": "Account",
|
"permlevel": 0,
|
||||||
"fieldname": "write_off_account",
|
"fieldname": "write_off_account",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"permlevel": 0
|
"options": "Account"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
"colour": "White:FFF",
|
"colour": "White:FFF",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Write Off Cost Center",
|
"label": "Write Off Cost Center",
|
||||||
"options": "Cost Center",
|
"permlevel": 0,
|
||||||
"fieldname": "write_off_cost_center",
|
"fieldname": "write_off_cost_center",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"permlevel": 0
|
"options": "Cost Center"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"oldfieldtype": "Section Break",
|
"oldfieldtype": "Section Break",
|
||||||
@ -718,10 +718,10 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Select Terms and Conditions",
|
"label": "Select Terms and Conditions",
|
||||||
"oldfieldname": "tc_name",
|
"oldfieldname": "tc_name",
|
||||||
"options": "Terms and Conditions",
|
"permlevel": 0,
|
||||||
"fieldname": "tc_name",
|
"fieldname": "tc_name",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"permlevel": 0
|
"options": "Terms and Conditions"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
@ -729,11 +729,11 @@
|
|||||||
"colour": "White:FFF",
|
"colour": "White:FFF",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Get Terms and Conditions",
|
"label": "Get Terms and Conditions",
|
||||||
|
"permlevel": 0,
|
||||||
"trigger": "Server",
|
"trigger": "Server",
|
||||||
"fieldname": "get_terms",
|
"fieldname": "get_terms",
|
||||||
"fieldtype": "Button",
|
"fieldtype": "Button",
|
||||||
"options": "get_tc_details",
|
"options": "get_tc_details"
|
||||||
"permlevel": 0
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
@ -741,10 +741,10 @@
|
|||||||
"colour": "White:FFF",
|
"colour": "White:FFF",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Terms and Conditions HTML",
|
"label": "Terms and Conditions HTML",
|
||||||
"options": "You can add Terms and Notes that will be printed in the Transaction",
|
"permlevel": 0,
|
||||||
"fieldname": "terms_html",
|
"fieldname": "terms_html",
|
||||||
"fieldtype": "HTML",
|
"fieldtype": "HTML",
|
||||||
"permlevel": 0
|
"options": "You can add Terms and Notes that will be printed in the Transaction"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"oldfieldtype": "Text Editor",
|
"oldfieldtype": "Text Editor",
|
||||||
@ -773,19 +773,19 @@
|
|||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Customer Address",
|
"label": "Customer Address",
|
||||||
"options": "Address",
|
"permlevel": 0,
|
||||||
"fieldname": "customer_address",
|
"fieldname": "customer_address",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"permlevel": 0
|
"options": "Address"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Contact Person",
|
"label": "Contact Person",
|
||||||
"options": "Contact",
|
"permlevel": 0,
|
||||||
"fieldname": "contact_person",
|
"fieldname": "contact_person",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"permlevel": 0
|
"options": "Contact"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
@ -799,11 +799,11 @@
|
|||||||
"search_index": 0,
|
"search_index": 0,
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Territory",
|
"label": "Territory",
|
||||||
"options": "Territory",
|
"permlevel": 0,
|
||||||
"fieldname": "territory",
|
"fieldname": "territory",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"permlevel": 0,
|
"options": "Territory",
|
||||||
"in_filter": 1
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -811,10 +811,10 @@
|
|||||||
"search_index": 0,
|
"search_index": 0,
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Customer Group",
|
"label": "Customer Group",
|
||||||
"options": "Customer Group",
|
"permlevel": 0,
|
||||||
"fieldname": "customer_group",
|
"fieldname": "customer_group",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"permlevel": 0,
|
"options": "Customer Group",
|
||||||
"in_filter": 1
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -882,20 +882,20 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Letter Head",
|
"label": "Letter Head",
|
||||||
"oldfieldname": "letter_head",
|
"oldfieldname": "letter_head",
|
||||||
"options": "link:Letter Head",
|
"permlevel": 0,
|
||||||
"fieldname": "letter_head",
|
"fieldname": "letter_head",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"permlevel": 0
|
"options": "link:Letter Head"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
"no_copy": 1,
|
"no_copy": 1,
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "C-Form Applicable",
|
"label": "C-Form Applicable",
|
||||||
"options": "No\nYes",
|
"permlevel": 0,
|
||||||
"fieldname": "c_form_applicable",
|
"fieldname": "c_form_applicable",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"permlevel": 0,
|
"options": "No\nYes",
|
||||||
"report_hide": 0
|
"report_hide": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -903,10 +903,10 @@
|
|||||||
"no_copy": 1,
|
"no_copy": 1,
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "C-Form No",
|
"label": "C-Form No",
|
||||||
"options": "C-Form",
|
"permlevel": 1,
|
||||||
"fieldname": "c_form_no",
|
"fieldname": "c_form_no",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"permlevel": 1
|
"options": "C-Form"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
@ -915,11 +915,11 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Campaign",
|
"label": "Campaign",
|
||||||
"oldfieldname": "campaign",
|
"oldfieldname": "campaign",
|
||||||
"options": "Campaign",
|
"permlevel": 0,
|
||||||
"fieldname": "campaign",
|
"fieldname": "campaign",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"depends_on": "eval:doc.source == 'Campaign'",
|
"depends_on": "eval:doc.source == 'Campaign'",
|
||||||
"permlevel": 0
|
"options": "Campaign"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "Track this Sales Invoice against any Project",
|
"description": "Track this Sales Invoice against any Project",
|
||||||
@ -933,8 +933,8 @@
|
|||||||
"fieldname": "project_name",
|
"fieldname": "project_name",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"search_index": 1,
|
"search_index": 1,
|
||||||
"in_filter": 1,
|
"options": "Project",
|
||||||
"options": "Project"
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
@ -967,10 +967,10 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Source",
|
"label": "Source",
|
||||||
"oldfieldname": "source",
|
"oldfieldname": "source",
|
||||||
"options": "\nExisting Customer\nReference\nAdvertisement\nCold Calling\nExhibition\nSupplier Reference\nMass Mailing\nCustomer's Vendor\nCampaign",
|
"permlevel": 0,
|
||||||
"fieldname": "source",
|
"fieldname": "source",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"permlevel": 0
|
"options": "\nExisting Customer\nReference\nAdvertisement\nCold Calling\nExhibition\nSupplier Reference\nMass Mailing\nCustomer's Vendor\nCampaign"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
@ -978,12 +978,12 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Company",
|
"label": "Company",
|
||||||
"oldfieldname": "company",
|
"oldfieldname": "company",
|
||||||
"permlevel": 0,
|
"options": "Company",
|
||||||
"fieldname": "company",
|
"fieldname": "company",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"search_index": 0,
|
"search_index": 0,
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"options": "Company",
|
"permlevel": 0,
|
||||||
"in_filter": 1
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -1008,10 +1008,10 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Amended From",
|
"label": "Amended From",
|
||||||
"oldfieldname": "amended_from",
|
"oldfieldname": "amended_from",
|
||||||
"options": "Sales Invoice",
|
"permlevel": 1,
|
||||||
"fieldname": "amended_from",
|
"fieldname": "amended_from",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"permlevel": 1
|
"options": "Sales Invoice"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
@ -1064,10 +1064,10 @@
|
|||||||
"oldfieldtype": "Button",
|
"oldfieldtype": "Button",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Get Advances Received",
|
"label": "Get Advances Received",
|
||||||
"options": "get_advances",
|
"permlevel": 0,
|
||||||
"fieldname": "get_advances_received",
|
"fieldname": "get_advances_received",
|
||||||
"fieldtype": "Button",
|
"fieldtype": "Button",
|
||||||
"permlevel": 0
|
"options": "get_advances"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
@ -1075,10 +1075,10 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Sales Invoice Advance",
|
"label": "Sales Invoice Advance",
|
||||||
"oldfieldname": "advance_adjustment_details",
|
"oldfieldname": "advance_adjustment_details",
|
||||||
"options": "Sales Invoice Advance",
|
"permlevel": 0,
|
||||||
"fieldname": "advance_adjustment_details",
|
"fieldname": "advance_adjustment_details",
|
||||||
"fieldtype": "Table",
|
"fieldtype": "Table",
|
||||||
"permlevel": 0
|
"options": "Sales Invoice Advance"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
@ -1092,10 +1092,10 @@
|
|||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Packing Details",
|
"label": "Packing Details",
|
||||||
"options": "Delivery Note Packing Item",
|
"permlevel": 0,
|
||||||
"fieldname": "packing_details",
|
"fieldname": "packing_details",
|
||||||
"fieldtype": "Table",
|
"fieldtype": "Table",
|
||||||
"permlevel": 0
|
"options": "Delivery Note Packing Item"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
@ -1122,11 +1122,11 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Sales Partner",
|
"label": "Sales Partner",
|
||||||
"oldfieldname": "sales_partner",
|
"oldfieldname": "sales_partner",
|
||||||
|
"permlevel": 0,
|
||||||
"trigger": "Client",
|
"trigger": "Client",
|
||||||
"fieldname": "sales_partner",
|
"fieldname": "sales_partner",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"options": "Sales Partner",
|
"options": "Sales Partner",
|
||||||
"permlevel": 0,
|
|
||||||
"in_filter": 1
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -1176,10 +1176,10 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Sales Team1",
|
"label": "Sales Team1",
|
||||||
"oldfieldname": "sales_team",
|
"oldfieldname": "sales_team",
|
||||||
"options": "Sales Team",
|
"permlevel": 0,
|
||||||
"fieldname": "sales_team",
|
"fieldname": "sales_team",
|
||||||
"fieldtype": "Table",
|
"fieldtype": "Table",
|
||||||
"permlevel": 0
|
"options": "Sales Team"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
@ -1222,10 +1222,10 @@
|
|||||||
"allow_on_submit": 1,
|
"allow_on_submit": 1,
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Recurring Type",
|
"label": "Recurring Type",
|
||||||
"permlevel": 0,
|
"options": "Monthly\nQuarterly\nHalf-yearly\nYearly",
|
||||||
"fieldname": "recurring_type",
|
"fieldname": "recurring_type",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"options": "Monthly\nQuarterly\nHalf-yearly\nYearly"
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
@ -1346,9 +1346,9 @@
|
|||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocPerm",
|
|
||||||
"role": "Material Manager",
|
"role": "Material Manager",
|
||||||
"permlevel": 0
|
"permlevel": 0,
|
||||||
|
"doctype": "DocPerm"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"amend": 1,
|
"amend": 1,
|
||||||
@ -1358,6 +1358,7 @@
|
|||||||
"write": 1,
|
"write": 1,
|
||||||
"read": 1,
|
"read": 1,
|
||||||
"role": "Accounts User",
|
"role": "Accounts User",
|
||||||
|
"report": 1,
|
||||||
"permlevel": 0,
|
"permlevel": 0,
|
||||||
"cancel": 1
|
"cancel": 1
|
||||||
},
|
},
|
||||||
@ -1369,13 +1370,14 @@
|
|||||||
"write": 0,
|
"write": 0,
|
||||||
"read": 1,
|
"read": 1,
|
||||||
"role": "Accounts User",
|
"role": "Accounts User",
|
||||||
"permlevel": 1,
|
"cancel": 0,
|
||||||
"cancel": 0
|
"permlevel": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"read": 1,
|
"read": 1,
|
||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"role": "Customer",
|
"role": "Customer",
|
||||||
|
"report": 1,
|
||||||
"permlevel": 0,
|
"permlevel": 0,
|
||||||
"match": "customer"
|
"match": "customer"
|
||||||
},
|
},
|
||||||
@ -1387,8 +1389,8 @@
|
|||||||
"write": 0,
|
"write": 0,
|
||||||
"read": 1,
|
"read": 1,
|
||||||
"role": "Accounts Manager",
|
"role": "Accounts Manager",
|
||||||
"permlevel": 1,
|
"cancel": 0,
|
||||||
"cancel": 0
|
"permlevel": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"amend": 1,
|
"amend": 1,
|
||||||
@ -1398,6 +1400,7 @@
|
|||||||
"write": 1,
|
"write": 1,
|
||||||
"read": 1,
|
"read": 1,
|
||||||
"role": "Accounts Manager",
|
"role": "Accounts Manager",
|
||||||
|
"report": 1,
|
||||||
"permlevel": 0,
|
"permlevel": 0,
|
||||||
"cancel": 1
|
"cancel": 1
|
||||||
}
|
}
|
||||||
|
@ -10,14 +10,14 @@
|
|||||||
"section_style": "Tabbed",
|
"section_style": "Tabbed",
|
||||||
"description": "Standard tax template that can be applied to all Sales Transactions. This template can contain list of tax heads and also other expense / income heads like \"Shipping\", \"Insurance\", \"Handling\" etc.\n\n#### Note\n\nThe tax rate you define here will be the standard tax rate for all **Items**. If there are **Items** that have different rates, they must be added in the **Item Tax** table in the **Item** master.\n\n#### Description of Columns\n\n1. Calculation Type: \n - This can be on **Net Total** (that is the sum of basic amount).\n - **On Previous Row Total / Amount** (for cumulative taxes or charges). If you select this option, the tax will be applied as a percentage of the previous row (in the tax table) amount or total.\n - **Actual** (as mentioned).\n2. Account Head: The Account ledger under which this tax will be booked\n3. Cost Center: If the tax / charge is an income (like shipping) or expense it needs to be booked against a Cost Center.\n4. Description: Description of the tax (that will be printed in invoices / quotes).\n5. Rate: Tax rate.\n6. Amount: Tax amount.\n7. Total: Cumulative total to this point.\n8. Enter Row: If based on \"Previous Row Total\" you can select the row number which will be taken as a base for this calculation (default is the previous row).\n9. Is this Tax included in Basic Rate?: If you check this, it means that this tax will not be shown below the item table, but will be included in the Basic Rate in your main item table. This is useful where you want give a flat price (inclusive of all taxes) price to customers.",
|
"description": "Standard tax template that can be applied to all Sales Transactions. This template can contain list of tax heads and also other expense / income heads like \"Shipping\", \"Insurance\", \"Handling\" etc.\n\n#### Note\n\nThe tax rate you define here will be the standard tax rate for all **Items**. If there are **Items** that have different rates, they must be added in the **Item Tax** table in the **Item** master.\n\n#### Description of Columns\n\n1. Calculation Type: \n - This can be on **Net Total** (that is the sum of basic amount).\n - **On Previous Row Total / Amount** (for cumulative taxes or charges). If you select this option, the tax will be applied as a percentage of the previous row (in the tax table) amount or total.\n - **Actual** (as mentioned).\n2. Account Head: The Account ledger under which this tax will be booked\n3. Cost Center: If the tax / charge is an income (like shipping) or expense it needs to be booked against a Cost Center.\n4. Description: Description of the tax (that will be printed in invoices / quotes).\n5. Rate: Tax rate.\n6. Amount: Tax amount.\n7. Total: Cumulative total to this point.\n8. Enter Row: If based on \"Previous Row Total\" you can select the row number which will be taken as a base for this calculation (default is the previous row).\n9. Is this Tax included in Basic Rate?: If you check this, it means that this tax will not be shown below the item table, but will be included in the Basic Rate in your main item table. This is useful where you want give a flat price (inclusive of all taxes) price to customers.",
|
||||||
"module": "Accounts",
|
"module": "Accounts",
|
||||||
"doctype": "DocType",
|
|
||||||
"allow_trash": 1,
|
|
||||||
"server_code_error": " ",
|
"server_code_error": " ",
|
||||||
"document_type": "Master",
|
"allow_trash": 1,
|
||||||
"autoname": "field:title",
|
"autoname": "field:title",
|
||||||
|
"document_type": "Master",
|
||||||
|
"_last_update": "1322549700",
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
"colour": "White:FFF",
|
"colour": "White:FFF",
|
||||||
"_last_update": "1322549700",
|
"doctype": "DocType",
|
||||||
"show_in_menu": 0,
|
"show_in_menu": 0,
|
||||||
"version": 1
|
"version": 1
|
||||||
},
|
},
|
||||||
@ -67,6 +67,7 @@
|
|||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"submit": 0,
|
"submit": 0,
|
||||||
"write": 0,
|
"write": 0,
|
||||||
|
"report": 1,
|
||||||
"role": "Sales User",
|
"role": "Sales User",
|
||||||
"cancel": 0,
|
"cancel": 0,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
@ -77,6 +78,7 @@
|
|||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"submit": 0,
|
"submit": 0,
|
||||||
"write": 1,
|
"write": 1,
|
||||||
|
"report": 1,
|
||||||
"role": "Accounts Manager",
|
"role": "Accounts Manager",
|
||||||
"cancel": 1,
|
"cancel": 1,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
@ -85,8 +87,9 @@
|
|||||||
"create": 1,
|
"create": 1,
|
||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"write": 1,
|
"write": 1,
|
||||||
"role": "System Manager",
|
|
||||||
"cancel": 1,
|
"cancel": 1,
|
||||||
|
"role": "System Manager",
|
||||||
|
"report": 1,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -95,6 +98,7 @@
|
|||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"submit": 0,
|
"submit": 0,
|
||||||
"write": 1,
|
"write": 1,
|
||||||
|
"report": 1,
|
||||||
"role": "Sales Master Manager",
|
"role": "Sales Master Manager",
|
||||||
"cancel": 1,
|
"cancel": 1,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
|
@ -18,6 +18,245 @@
|
|||||||
// ------
|
// ------
|
||||||
// cur_frm.cscript.tname - Details table name
|
// cur_frm.cscript.tname - Details table name
|
||||||
// cur_frm.cscript.fname - Details fieldname
|
// cur_frm.cscript.fname - Details fieldname
|
||||||
|
|
||||||
|
wn.provide("erpnext.buying");
|
||||||
|
|
||||||
|
erpnext.buying.BuyingController = erpnext.utils.Controller.extend({
|
||||||
|
setup: function() {
|
||||||
|
var me = this;
|
||||||
|
|
||||||
|
if(this.frm.fields_dict.price_list_name) {
|
||||||
|
this.frm.fields_dict.price_list_name.get_query = function() {
|
||||||
|
return repl("select distinct price_list_name from `tabItem Price` \
|
||||||
|
where buying = 1 and price_list_name like \"%s%%\"");
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
if(this.frm.fields_dict.price_list_currency) {
|
||||||
|
this.frm.fields_dict.price_list_currency.get_query = function() {
|
||||||
|
return repl("select distinct ref_currency from `tabItem Price` \
|
||||||
|
where price_list_name=\"%(price_list_name)s\" and buying = 1 \
|
||||||
|
and ref_currency like \"%s%%\"",
|
||||||
|
{price_list_name: me.frm.doc.price_list_name});
|
||||||
|
};
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
refresh: function() {
|
||||||
|
this.frm.clear_custom_buttons();
|
||||||
|
erpnext.hide_naming_series();
|
||||||
|
|
||||||
|
if(this.frm.fields_dict.supplier)
|
||||||
|
this.frm.toggle_display("contact_section", this.frm.doc.supplier);
|
||||||
|
|
||||||
|
if(this.frm.fields_dict.currency)
|
||||||
|
this.set_dynamic_labels();
|
||||||
|
|
||||||
|
// TODO: improve this
|
||||||
|
if(this.frm.doc.__islocal && this.frm.fields_dict.price_list_name
|
||||||
|
&& this.frm.doc.price_list_name && this.frm.doc.price_list_currency) {
|
||||||
|
this.price_list_name();
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
price_list_name: function() {
|
||||||
|
this.frm.toggle_reqd(["price_list_currency", "plc_conversion_rate"],
|
||||||
|
!!(this.frm.doc.price_list_name));
|
||||||
|
|
||||||
|
var me = this;
|
||||||
|
|
||||||
|
if(this.frm.doc.price_list_name) {
|
||||||
|
// set price list currency
|
||||||
|
this.frm.call({
|
||||||
|
method: "setup.utils.get_price_list_currency",
|
||||||
|
args: {args: {
|
||||||
|
price_list_name: this.frm.doc.price_list_name,
|
||||||
|
use_for: "buying"
|
||||||
|
}},
|
||||||
|
callback: function(r) {
|
||||||
|
if(!r.exc) {
|
||||||
|
// for now, setting it as 1.0
|
||||||
|
if(me.frm.doc.price_list_currency === me.get_company_currency())
|
||||||
|
me.frm.set_value("plc_conversion_rate", 1.0);
|
||||||
|
else if(me.frm.doc.price_list_currency === me.frm.doc.currency)
|
||||||
|
me.frm.set_value("plc_conversion_rate", me.frm.doc.conversion_rate);
|
||||||
|
|
||||||
|
if(r.message.price_list_currency)
|
||||||
|
me.price_list_currency();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
item_code: function(doc, cdt, cdn) {
|
||||||
|
var me = this;
|
||||||
|
var item = locals[cdt][cdn];
|
||||||
|
if(item.item_code) {
|
||||||
|
this.frm.call({
|
||||||
|
method: "buying.utils.get_item_details",
|
||||||
|
child: item,
|
||||||
|
args: {
|
||||||
|
args: {
|
||||||
|
doctype: me.frm.doc.doctype,
|
||||||
|
docname: me.frm.doc.name,
|
||||||
|
item_code: item.item_code,
|
||||||
|
warehouse: item.warehouse,
|
||||||
|
supplier: me.frm.doc.supplier,
|
||||||
|
conversion_rate: me.frm.doc.conversion_rate,
|
||||||
|
price_list_name: me.frm.doc.price_list_name,
|
||||||
|
price_list_currency: me.frm.doc.price_list_currency,
|
||||||
|
plc_conversion_rate: me.frm.doc.plc_conversion_rate
|
||||||
|
}
|
||||||
|
},
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
update_item_details: function(doc, dt, dn, callback) {
|
||||||
|
if(!this.frm.doc.__islocal) return;
|
||||||
|
|
||||||
|
var me = this;
|
||||||
|
var children = getchildren(this.tname, this.frm.doc.name, this.fname);
|
||||||
|
if(children && children.length) {
|
||||||
|
this.frm.call({
|
||||||
|
doc: me.frm.doc,
|
||||||
|
method: "update_item_details",
|
||||||
|
callback: function(r) {
|
||||||
|
if(!r.exc) {
|
||||||
|
refresh_field(me.fname);
|
||||||
|
me.load_defaults(me.frm.doc, dt, dn, callback);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
this.load_taxes(doc, dt, dn, callback);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
currency: function() {
|
||||||
|
this.set_dynamic_labels();
|
||||||
|
},
|
||||||
|
|
||||||
|
company: function() {
|
||||||
|
this.set_dynamic_labels();
|
||||||
|
},
|
||||||
|
|
||||||
|
price_list_currency: function() {
|
||||||
|
this.set_dynamic_labels();
|
||||||
|
|
||||||
|
if(this.frm.doc.price_list_currency === this.get_company_currency()) {
|
||||||
|
this.frm.set_value("plc_conversion_rate", 1.0);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
set_dynamic_labels: function(doc, dt, dn) {
|
||||||
|
var company_currency = this.get_company_currency();
|
||||||
|
|
||||||
|
this.change_form_labels(company_currency);
|
||||||
|
this.change_grid_labels(company_currency);
|
||||||
|
},
|
||||||
|
|
||||||
|
change_form_labels: function(company_currency) {
|
||||||
|
var me = this;
|
||||||
|
var field_label_map = {};
|
||||||
|
|
||||||
|
var setup_field_label_map = function(fields_list, currency) {
|
||||||
|
$.each(fields_list, function(i, fname) {
|
||||||
|
var docfield = wn.meta.get_docfield(me.frm.doc.doctype, fname);
|
||||||
|
if(docfield) {
|
||||||
|
var label = wn._((docfield.label || "")).replace(/\([^\)]*\)/g, "");
|
||||||
|
field_label_map[fname] = label.trim() + " (" + currency + ")";
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
setup_field_label_map(["net_total", "total_tax", "grand_total", "in_words",
|
||||||
|
"other_charges_added", "other_charges_deducted",
|
||||||
|
"outstanding_amount", "total_advance", "total_amount_to_pay", "rounded_total"],
|
||||||
|
company_currency);
|
||||||
|
|
||||||
|
setup_field_label_map(["net_total_import", "grand_total_import", "in_words_import",
|
||||||
|
"other_charges_added_import", "other_charges_deducted_import"], this.frm.doc.currency);
|
||||||
|
|
||||||
|
setup_field_label_map(["conversion_rate"], "1 " + this.frm.doc.currency
|
||||||
|
+ " = [?] " + company_currency);
|
||||||
|
|
||||||
|
if(this.frm.doc.price_list_currency && this.frm.doc.price_list_currency!=company_currency) {
|
||||||
|
setup_field_label_map(["plc_conversion_rate"], "1 " + this.frm.doc.price_list_currency
|
||||||
|
+ " = [?] " + company_currency);
|
||||||
|
}
|
||||||
|
|
||||||
|
// toggle fields
|
||||||
|
this.frm.toggle_display(["conversion_rate", "net_total", "grand_total",
|
||||||
|
"in_words", "other_charges_added", "other_charges_deducted"],
|
||||||
|
this.frm.doc.currency != company_currency);
|
||||||
|
|
||||||
|
// set labels
|
||||||
|
$.each(field_label_map, function(fname, label) {
|
||||||
|
me.frm.fields_dict[fname].set_label(label);
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
change_grid_labels: function(company_currency) {
|
||||||
|
var me = this;
|
||||||
|
var field_label_map = {};
|
||||||
|
|
||||||
|
var setup_field_label_map = function(fields_list, currency, parentfield) {
|
||||||
|
var grid_doctype = me.frm.fields_dict[parentfield].grid.doctype;
|
||||||
|
$.each(fields_list, function(i, fname) {
|
||||||
|
var docfield = wn.meta.get_docfield(grid_doctype, fname);
|
||||||
|
if(docfield) {
|
||||||
|
field_label_map[grid_doctype + "-" + fname] =
|
||||||
|
docfield.label + " (" + currency + ")";
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
setup_field_label_map(["purchase_rate", "purchase_ref_rate", "amount", "rate"],
|
||||||
|
company_currency, this.fname);
|
||||||
|
|
||||||
|
setup_field_label_map(["import_rate", "import_ref_rate", "import_amount"],
|
||||||
|
this.frm.doc.currency, this.fname);
|
||||||
|
|
||||||
|
setup_field_label_map(["tax_amount", "total"], company_currency, this.other_fname);
|
||||||
|
|
||||||
|
if(this.frm.fields_dict["advance_allocation_details"]) {
|
||||||
|
setup_field_label_map(["advance_amount", "allocated_amount"], company_currency,
|
||||||
|
"advance_allocation_details");
|
||||||
|
}
|
||||||
|
|
||||||
|
// toggle columns
|
||||||
|
var item_grid = this.frm.fields_dict[this.fname].grid;
|
||||||
|
var hide = this.frm.doc.currency == company_currency;
|
||||||
|
$.each(["purchase_rate", "purchase_ref_rate", "amount", "rate"], function(i, fname) {
|
||||||
|
if(wn.meta.get_docfield(item_grid.doctype, fname))
|
||||||
|
item_grid.set_column_disp(fname, hide);
|
||||||
|
});
|
||||||
|
|
||||||
|
// set labels
|
||||||
|
var $wrapper = $(this.frm.wrapper);
|
||||||
|
$.each(field_label_map, function(fname, label) {
|
||||||
|
$wrapper.find('[data-grid-fieldname="'+fname+'"]').text(label);
|
||||||
|
});
|
||||||
|
},
|
||||||
|
|
||||||
|
get_company_currency: function() {
|
||||||
|
return (wn.boot.company[this.frm.doc.company].default_currency ||
|
||||||
|
sys_defaults['currency']);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
// to save previous state of cur_frm.cscript
|
||||||
|
var prev_cscript = {};
|
||||||
|
$.extend(prev_cscript, cur_frm.cscript);
|
||||||
|
|
||||||
|
cur_frm.cscript = new erpnext.buying.BuyingController({frm: cur_frm});
|
||||||
|
|
||||||
|
// for backward compatibility: combine new and previous states
|
||||||
|
$.extend(cur_frm.cscript, prev_cscript);
|
||||||
|
|
||||||
|
|
||||||
var tname = cur_frm.cscript.tname;
|
var tname = cur_frm.cscript.tname;
|
||||||
var fname = cur_frm.cscript.fname;
|
var fname = cur_frm.cscript.fname;
|
||||||
|
|
||||||
@ -64,100 +303,6 @@ cur_frm.cscript.load_defaults = function(doc, dt, dn, callback) {
|
|||||||
cur_frm.cscript.load_taxes(doc, dt, dn, callback);
|
cur_frm.cscript.load_taxes(doc, dt, dn, callback);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update existing item details
|
|
||||||
cur_frm.cscript.update_item_details = function(doc, dt, dn, callback) {
|
|
||||||
if(!cur_frm.doc.__islocal) { return; }
|
|
||||||
var children = getchildren(cur_frm.cscript.tname, doc.name, cur_frm.cscript.fname);
|
|
||||||
if(children) {
|
|
||||||
$c_obj(make_doclist(doc.doctype, doc.name), 'get_item_details', '',
|
|
||||||
function(r, rt) {
|
|
||||||
if(!r.exc) {
|
|
||||||
refresh_field(cur_frm.cscript.fname);
|
|
||||||
doc = locals[doc.doctype][doc.name];
|
|
||||||
cur_frm.cscript.load_defaults(doc, dt, dn, callback);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
cur_frm.cscript.load_taxes(doc, dt, dn, callback);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
var set_dynamic_label_par = function(doc, cdt, cdn, base_curr) {
|
|
||||||
//parent flds
|
|
||||||
par_cols_base = {'net_total': 'Net Total', 'total_tax': 'Total Tax', 'grand_total': 'Grand Total', /*'rounded_total': 'Rounded Total',*/
|
|
||||||
'in_words': 'In Words', 'other_charges_added': 'Taxes and Charges Added', 'other_charges_deducted': 'Taxes and Charges Deducted'}
|
|
||||||
par_cols_import = {'net_total_import': 'Net Total', 'grand_total_import': 'Grand Total', 'in_words_import': 'In Words',
|
|
||||||
'other_charges_added_import': 'Taxes and Charges Added', 'other_charges_deducted_import': 'Taxes and Charges Deducted'};
|
|
||||||
|
|
||||||
for (d in par_cols_base) cur_frm.fields_dict[d].label_area.innerHTML = par_cols_base[d]+' (' + base_curr + ')';
|
|
||||||
for (d in par_cols_import) cur_frm.fields_dict[d].label_area.innerHTML = par_cols_import[d]+' (' + doc.currency + ')';
|
|
||||||
cur_frm.fields_dict['conversion_rate'].label_area.innerHTML = "Conversion Rate (" + doc.currency +' -> '+ base_curr + ')';
|
|
||||||
|
|
||||||
if (doc.doctype == 'Purchase Invoice') {
|
|
||||||
cur_frm.fields_dict['outstanding_amount'].label_area.innerHTML = 'Outstanding Amount (' + base_curr + ')';
|
|
||||||
cur_frm.fields_dict['total_advance'].label_area.innerHTML = 'Total Advance (Incl. TDS) (' + base_curr + ')';
|
|
||||||
cur_frm.fields_dict['total_amount_to_pay'].label_area.innerHTML = 'Total Amount To Pay (' + base_curr + ')';
|
|
||||||
} else cur_frm.fields_dict['rounded_total'].label_area.innerHTML = 'Rounded Total (' + base_curr + ')';
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
var set_dynamic_label_child = function(doc, cdt, cdn, base_curr) {
|
|
||||||
// item table flds
|
|
||||||
item_cols_base = {'purchase_ref_rate': 'Ref Rate', 'amount': 'Amount'};
|
|
||||||
item_cols_import = {'import_rate': 'Rate', 'import_ref_rate': 'Ref Rate', 'import_amount': 'Amount'};
|
|
||||||
|
|
||||||
for (d in item_cols_base) $('[data-grid-fieldname="'+cur_frm.cscript.tname+'-'+d+'"]').html(item_cols_base[d]+' ('+base_curr+')');
|
|
||||||
for (d in item_cols_import) $('[data-grid-fieldname="'+cur_frm.cscript.tname+'-'+d+'"]').html(item_cols_import[d]+' ('+doc.currency+')');
|
|
||||||
|
|
||||||
var hide = (doc.currency == sys_defaults['currency']) ? false : true;
|
|
||||||
for (f in item_cols_base) {
|
|
||||||
cur_frm.fields_dict[cur_frm.cscript.fname].grid.set_column_disp(f, hide);
|
|
||||||
}
|
|
||||||
if (doc.doctype == 'Purchase Invoice') {
|
|
||||||
$('[data-grid-fieldname="'+cur_frm.cscript.tname+'-rate"]').html('Rate ('+base_curr+')');
|
|
||||||
cur_frm.fields_dict[cur_frm.cscript.fname].grid.set_column_disp('rate', hide);
|
|
||||||
// advance table flds
|
|
||||||
adv_cols = {'advance_amount': 'Advance Amount', 'allocated_amount': 'Allocated Amount'}
|
|
||||||
for (d in adv_cols) $('[data-grid-fieldname="Purchase Invoice Advance-'+d+'"]').html(adv_cols[d]+' ('+base_curr+')');
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
$('[data-grid-fieldname="'+cur_frm.cscript.tname+'-purchase_rate"]').html('Rate ('+base_curr+')');
|
|
||||||
cur_frm.fields_dict[cur_frm.cscript.fname].grid.set_column_disp('purchase_rate', hide);
|
|
||||||
}
|
|
||||||
|
|
||||||
//tax table flds
|
|
||||||
tax_cols = {'tax_amount': 'Amount', 'total': 'Aggregate Total'};
|
|
||||||
for (d in tax_cols) $('[data-grid-fieldname="Purchase Taxes and Charges-'+d+'"]').html(tax_cols[d]+' ('+base_curr+')');
|
|
||||||
}
|
|
||||||
|
|
||||||
// Change label dynamically based on currency
|
|
||||||
//------------------------------------------------------------------
|
|
||||||
|
|
||||||
cur_frm.cscript.dynamic_label = function(doc, cdt, cdn, callback1) {
|
|
||||||
var base_currency = wn.boot.company[doc.company].default_currency || sys_defaults['currency'];
|
|
||||||
if (doc.currency === base_currency) {
|
|
||||||
set_multiple(cdt, cdn, {conversion_rate:1});
|
|
||||||
hide_field(['conversion_rate', 'net_total_import','grand_total_import',
|
|
||||||
'in_words_import', 'other_charges_added_import', 'other_charges_deducted_import']);
|
|
||||||
} else {
|
|
||||||
unhide_field(['conversion_rate', 'net_total_import','grand_total_import',
|
|
||||||
'in_words_import', 'other_charges_added_import', 'other_charges_deducted_import']);
|
|
||||||
}
|
|
||||||
|
|
||||||
set_dynamic_label_par(doc, cdt, cdn, base_currency);
|
|
||||||
set_dynamic_label_child(doc, cdt, cdn, base_currency);
|
|
||||||
|
|
||||||
if (callback1) callback1(doc, cdt, cdn);
|
|
||||||
}
|
|
||||||
|
|
||||||
cur_frm.cscript.currency = function(doc, cdt, cdn) {
|
|
||||||
cur_frm.cscript.dynamic_label(doc, cdt, cdn);
|
|
||||||
}
|
|
||||||
|
|
||||||
cur_frm.cscript.company = cur_frm.cscript.currency;
|
|
||||||
|
|
||||||
|
|
||||||
// ======================== Conversion Rate ==========================================
|
// ======================== Conversion Rate ==========================================
|
||||||
cur_frm.cscript.conversion_rate = function(doc,cdt,cdn) {
|
cur_frm.cscript.conversion_rate = function(doc,cdt,cdn) {
|
||||||
cur_frm.cscript.calc_amount( doc, 1);
|
cur_frm.cscript.calc_amount( doc, 1);
|
||||||
@ -177,18 +322,6 @@ cur_frm.fields_dict[fname].grid.get_field("item_code").get_query = function(doc,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//==================== Get Item Code Details =====================================================
|
|
||||||
cur_frm.cscript.item_code = function(doc,cdt,cdn) {
|
|
||||||
var d = locals[cdt][cdn];
|
|
||||||
if (d.item_code) {
|
|
||||||
temp = {
|
|
||||||
item_code: d.item_code || '',
|
|
||||||
warehouse: d.warehouse || ''
|
|
||||||
}
|
|
||||||
get_server_fields('get_item_details', JSON.stringify(temp), fname, doc, cdt, cdn, 1);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
//==================== Update Stock Qty ==========================================================
|
//==================== Update Stock Qty ==========================================================
|
||||||
cur_frm.cscript.update_stock_qty = function(doc,cdt,cdn){
|
cur_frm.cscript.update_stock_qty = function(doc,cdt,cdn){
|
||||||
d = locals[cdt][cdn]
|
d = locals[cdt][cdn]
|
||||||
@ -651,10 +784,6 @@ var calculate_outstanding = function(doc) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
cur_frm.cscript.toggle_contact_section = function(doc) {
|
|
||||||
cur_frm.toggle_display("contact_section", doc.supplier);
|
|
||||||
}
|
|
||||||
|
|
||||||
cur_frm.cscript.project_name = function(doc, cdt, cdn) {
|
cur_frm.cscript.project_name = function(doc, cdt, cdn) {
|
||||||
var item_doc = locals[cdt][cdn];
|
var item_doc = locals[cdt][cdn];
|
||||||
if (item_doc.project_name) {
|
if (item_doc.project_name) {
|
||||||
|
@ -23,11 +23,12 @@ from webnotes.model.wrapper import getlist
|
|||||||
from webnotes.model.code import get_obj
|
from webnotes.model.code import get_obj
|
||||||
from webnotes import msgprint, _
|
from webnotes import msgprint, _
|
||||||
|
|
||||||
|
from buying.utils import get_last_purchase_details
|
||||||
|
|
||||||
sql = webnotes.conn.sql
|
sql = webnotes.conn.sql
|
||||||
|
|
||||||
from utilities.transaction_base import TransactionBase
|
from controllers.buying_controller import BuyingController
|
||||||
|
class DocType(BuyingController):
|
||||||
class DocType(TransactionBase):
|
|
||||||
def __init__(self, doc, doclist=None):
|
def __init__(self, doc, doclist=None):
|
||||||
self.doc = doc
|
self.doc = doc
|
||||||
self.doclist = doclist
|
self.doclist = doclist
|
||||||
@ -104,80 +105,6 @@ class DocType(TransactionBase):
|
|||||||
r = sql("select terms from `tabTerms and Conditions` where name = %s", obj.doc.tc_name)
|
r = sql("select terms from `tabTerms and Conditions` where name = %s", obj.doc.tc_name)
|
||||||
if r: obj.doc.terms = r[0][0]
|
if r: obj.doc.terms = r[0][0]
|
||||||
|
|
||||||
# Get Item Details
|
|
||||||
def get_item_details(self, obj, arg =''):
|
|
||||||
import json
|
|
||||||
arg = json.loads(arg)
|
|
||||||
item = sql("select item_name,item_group, brand, description, min_order_qty, stock_uom, default_warehouse,lead_time_days from `tabItem` where name = %s and (ifnull(end_of_life,'')='' or end_of_life = '0000-00-00' or end_of_life > now())", (arg['item_code']), as_dict = 1)
|
|
||||||
tax = sql("select tax_type, tax_rate from `tabItem Tax` where parent = %s" , arg['item_code'])
|
|
||||||
t = {}
|
|
||||||
for x in tax: t[x[0]] = flt(x[1])
|
|
||||||
# get warehouse
|
|
||||||
if arg['warehouse']:
|
|
||||||
wh = arg['warehouse']
|
|
||||||
else:
|
|
||||||
wh = item and item[0]['default_warehouse'] or ''
|
|
||||||
|
|
||||||
ret = {
|
|
||||||
'item_name': item and item[0]['item_name'] or '',
|
|
||||||
'item_group': item and item[0]['item_group'] or '',
|
|
||||||
'brand': item and item[0]['brand'] or '',
|
|
||||||
'description': item and item[0]['description'] or '',
|
|
||||||
'qty': 0,
|
|
||||||
'uom': item and item[0]['stock_uom'] or '',
|
|
||||||
'stock_uom': item and item[0]['stock_uom'] or '',
|
|
||||||
'conversion_factor': '1',
|
|
||||||
'warehouse': wh,
|
|
||||||
'item_tax_rate': json.dumps(t),
|
|
||||||
'batch_no': '',
|
|
||||||
'discount_rate': 0
|
|
||||||
}
|
|
||||||
|
|
||||||
# get min_order_qty from item
|
|
||||||
if obj.doc.doctype == 'Purchase Request':
|
|
||||||
ret['min_order_qty'] = item and flt(item[0]['min_order_qty']) or 0
|
|
||||||
|
|
||||||
# get projected qty from bin
|
|
||||||
if ret['warehouse']:
|
|
||||||
bin = sql("select projected_qty from `tabBin` where item_code = %s and warehouse = %s", (arg['item_code'], ret['warehouse']), as_dict=1)
|
|
||||||
ret['projected_qty'] = bin and flt(bin[0]['projected_qty']) or 0
|
|
||||||
|
|
||||||
# get schedule date, lead time date
|
|
||||||
if obj.doc.transaction_date and item and item[0]['lead_time_days']:
|
|
||||||
ret['schedule_date'] = cstr(add_days(obj.doc.transaction_date, cint(item[0]['lead_time_days'])))
|
|
||||||
ret['lead_time_date'] = cstr(add_days(obj.doc.transaction_date, cint(item[0]['lead_time_days'])))
|
|
||||||
|
|
||||||
# get last purchase rate as per stock uom and default currency for following list of doctypes
|
|
||||||
if obj.doc.doctype in ['Purchase Order', 'Purchase Receipt']:
|
|
||||||
last_purchase_details, last_purchase_date = self.get_last_purchase_details(arg['item_code'], obj.doc.name)
|
|
||||||
|
|
||||||
if last_purchase_details:
|
|
||||||
# updates ret with purchase_ref_rate, discount_rate, purchase_rate
|
|
||||||
conversion_rate = flt(obj.doc.fields.get('conversion_rate'))
|
|
||||||
ret.update(last_purchase_details)
|
|
||||||
ret.update({
|
|
||||||
'import_ref_rate': flt(last_purchase_details['purchase_ref_rate']) / conversion_rate,
|
|
||||||
'import_rate': flt(last_purchase_details['purchase_rate']) / conversion_rate,
|
|
||||||
})
|
|
||||||
else:
|
|
||||||
# set these values as blank in the form
|
|
||||||
ret.update({
|
|
||||||
'purchase_ref_rate': 0,
|
|
||||||
'discount_rate': 0,
|
|
||||||
'purchase_rate': 0,
|
|
||||||
'import_ref_rate': 0,
|
|
||||||
'import_rate': 0,
|
|
||||||
})
|
|
||||||
|
|
||||||
if obj.doc.doctype == 'Purchase Order':
|
|
||||||
supplier_part_no = webnotes.conn.sql("""\
|
|
||||||
select supplier_part_no from `tabItem Supplier`
|
|
||||||
where parent = %s and parenttype = 'Item' and
|
|
||||||
supplier = %s""", (arg['item_code'], obj.doc.supplier))
|
|
||||||
if supplier_part_no and supplier_part_no[0][0]:
|
|
||||||
ret['supplier_part_no'] = supplier_part_no[0][0]
|
|
||||||
|
|
||||||
return ret
|
|
||||||
|
|
||||||
# Get Available Qty at Warehouse
|
# Get Available Qty at Warehouse
|
||||||
def get_bin_details( self, arg = ''):
|
def get_bin_details( self, arg = ''):
|
||||||
@ -196,11 +123,12 @@ class DocType(TransactionBase):
|
|||||||
|
|
||||||
for d in getlist(obj.doclist,obj.fname):
|
for d in getlist(obj.doclist,obj.fname):
|
||||||
# get last purchase details
|
# get last purchase details
|
||||||
last_purchase_details, last_purchase_date = self.get_last_purchase_details(d.item_code, obj.doc.name)
|
last_purchase_details = get_last_purchase_details(d.item_code, obj.doc.name)
|
||||||
|
|
||||||
# compare last purchase date and this transaction's date
|
# compare last purchase date and this transaction's date
|
||||||
last_purchase_rate = None
|
last_purchase_rate = None
|
||||||
if last_purchase_date > this_purchase_date:
|
if last_purchase_details and \
|
||||||
|
(last_purchase_details.purchase_date > this_purchase_date):
|
||||||
last_purchase_rate = last_purchase_details['purchase_rate']
|
last_purchase_rate = last_purchase_details['purchase_rate']
|
||||||
elif is_submit == 1:
|
elif is_submit == 1:
|
||||||
# even if this transaction is the latest one, it should be submitted
|
# even if this transaction is the latest one, it should be submitted
|
||||||
@ -219,7 +147,7 @@ class DocType(TransactionBase):
|
|||||||
|
|
||||||
for d in getlist(obj.doclist, obj.fname):
|
for d in getlist(obj.doclist, obj.fname):
|
||||||
if d.item_code:
|
if d.item_code:
|
||||||
last_purchase_details, last_purchase_date = self.get_last_purchase_details(d.item_code, doc_name)
|
last_purchase_details = get_last_purchase_details(d.item_code, doc_name)
|
||||||
|
|
||||||
if last_purchase_details:
|
if last_purchase_details:
|
||||||
d.purchase_ref_rate = last_purchase_details['purchase_ref_rate'] * (flt(d.conversion_factor) or 1.0)
|
d.purchase_ref_rate = last_purchase_details['purchase_ref_rate'] * (flt(d.conversion_factor) or 1.0)
|
||||||
@ -237,58 +165,6 @@ class DocType(TransactionBase):
|
|||||||
d.purchase_ref_rate = d.purchase_rate = d.import_ref_rate \
|
d.purchase_ref_rate = d.purchase_rate = d.import_ref_rate \
|
||||||
= d.import_rate = item_last_purchase_rate
|
= d.import_rate = item_last_purchase_rate
|
||||||
|
|
||||||
def get_last_purchase_details(self, item_code, doc_name):
|
|
||||||
import webnotes
|
|
||||||
import webnotes.utils
|
|
||||||
|
|
||||||
# get last purchase order item details
|
|
||||||
last_po_item = webnotes.conn.sql("""\
|
|
||||||
select po.name, po.transaction_date, po_item.conversion_factor, po_item.purchase_ref_rate,
|
|
||||||
po_item.discount_rate, po_item.purchase_rate
|
|
||||||
from `tabPurchase Order` po, `tabPurchase Order Item` po_item
|
|
||||||
where po.docstatus = 1 and po_item.item_code = %s and po.name != %s and
|
|
||||||
po.name = po_item.parent
|
|
||||||
order by po.transaction_date desc, po.name desc
|
|
||||||
limit 1""", (item_code, doc_name), as_dict=1)
|
|
||||||
|
|
||||||
# get last purchase receipt item details
|
|
||||||
last_pr_item = webnotes.conn.sql("""\
|
|
||||||
select pr.name, pr.posting_date, pr.posting_time, pr_item.conversion_factor,
|
|
||||||
pr_item.purchase_ref_rate, pr_item.discount_rate, pr_item.purchase_rate
|
|
||||||
from `tabPurchase Receipt` pr, `tabPurchase Receipt Item` pr_item
|
|
||||||
where pr.docstatus = 1 and pr_item.item_code = %s and pr.name != %s and
|
|
||||||
pr.name = pr_item.parent
|
|
||||||
order by pr.posting_date desc, pr.posting_time desc, pr.name desc
|
|
||||||
limit 1""", (item_code, doc_name), as_dict=1)
|
|
||||||
|
|
||||||
# get the latest of the two
|
|
||||||
po_date_obj = webnotes.utils.getdate(last_po_item and last_po_item[0]['transaction_date'] or '2000-01-01')
|
|
||||||
pr_date_obj = webnotes.utils.getdate(last_pr_item and last_pr_item[0]['posting_date'] or '2000-01-01')
|
|
||||||
|
|
||||||
# if both exists, return true
|
|
||||||
both_exists = last_po_item and last_pr_item
|
|
||||||
|
|
||||||
# get the last purchased item, by comparing dates
|
|
||||||
if (both_exists and po_date_obj > pr_date_obj) or (not both_exists and last_po_item):
|
|
||||||
last_purchase_item = last_po_item[0]
|
|
||||||
last_purchase_date = po_date_obj
|
|
||||||
elif both_exists or (not both_exists and last_pr_item):
|
|
||||||
last_purchase_item = last_pr_item[0]
|
|
||||||
last_purchase_date = pr_date_obj
|
|
||||||
else:
|
|
||||||
# if none exists
|
|
||||||
return None, webnotes.utils.getdate('2000-01-01')
|
|
||||||
|
|
||||||
# prepare last purchase details, dividing by conversion factor
|
|
||||||
conversion_factor = flt(last_purchase_item['conversion_factor'])
|
|
||||||
last_purchase_details = {
|
|
||||||
'purchase_ref_rate': flt(last_purchase_item['purchase_ref_rate']) / conversion_factor,
|
|
||||||
'purchase_rate': flt(last_purchase_item['purchase_rate']) / conversion_factor,
|
|
||||||
'discount_rate': flt(last_purchase_item['discount_rate']),
|
|
||||||
}
|
|
||||||
|
|
||||||
return last_purchase_details, last_purchase_date
|
|
||||||
|
|
||||||
# validation
|
# validation
|
||||||
# -------------------------------------------------------------------------------------------------------
|
# -------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
@ -380,74 +256,6 @@ class DocType(TransactionBase):
|
|||||||
else:
|
else:
|
||||||
chk_dupl_itm.append(f)
|
chk_dupl_itm.append(f)
|
||||||
|
|
||||||
# validate conversion rate
|
|
||||||
def validate_conversion_rate(self, obj):
|
|
||||||
default_currency = TransactionBase().get_company_currency(obj.doc.company)
|
|
||||||
if not default_currency:
|
|
||||||
msgprint('Message: Please enter default currency in Company Master')
|
|
||||||
raise Exception
|
|
||||||
|
|
||||||
if obj.doc.conversion_rate == 0:
|
|
||||||
msgprint('Conversion Rate cannot be 0', raise_exception=1)
|
|
||||||
elif not obj.doc.conversion_rate:
|
|
||||||
msgprint('Please specify Conversion Rate', raise_exception=1)
|
|
||||||
elif obj.doc.currency == default_currency and \
|
|
||||||
flt(obj.doc.conversion_rate) != 1.00:
|
|
||||||
msgprint("""Conversion Rate should be equal to 1.00, \
|
|
||||||
since the specified Currency and the company's currency \
|
|
||||||
are same""", raise_exception=1)
|
|
||||||
elif obj.doc.currency != default_currency and \
|
|
||||||
flt(obj.doc.conversion_rate) == 1.00:
|
|
||||||
msgprint("""Conversion Rate should not be equal to 1.00, \
|
|
||||||
since the specified Currency and the company's currency \
|
|
||||||
are different""", raise_exception=1)
|
|
||||||
|
|
||||||
def validate_doc(self, obj, prevdoc_doctype, prevdoc_docname):
|
|
||||||
if prevdoc_docname :
|
|
||||||
get_name = sql("select name from `tab%s` where name = '%s'" %
|
|
||||||
(prevdoc_doctype, prevdoc_docname))
|
|
||||||
name = get_name and get_name[0][0] or ''
|
|
||||||
if name: #check for incorrect docname
|
|
||||||
dt = sql("select company, docstatus from `tab%s` where name = '%s'" %
|
|
||||||
(prevdoc_doctype, name))
|
|
||||||
company_name = dt and cstr(dt[0][0]) or ''
|
|
||||||
docstatus = dt and dt[0][1] or 0
|
|
||||||
|
|
||||||
# check for docstatus
|
|
||||||
if (docstatus != 1):
|
|
||||||
msgprint(cstr(prevdoc_doctype) + ": " + cstr(prevdoc_docname) +
|
|
||||||
" is not Submitted Document.")
|
|
||||||
raise Exception
|
|
||||||
|
|
||||||
# check for company
|
|
||||||
if (company_name != obj.doc.company):
|
|
||||||
msgprint(cstr(prevdoc_doctype) + ": " + cstr(prevdoc_docname) +
|
|
||||||
" does not belong to the Company: " + cstr(obj.doc.company))
|
|
||||||
raise Exception
|
|
||||||
|
|
||||||
if prevdoc_doctype in ['Purchase Order', 'Purchase Receipt']:
|
|
||||||
dt = sql("select supplier, currency from `tab%s` where name = '%s'" %
|
|
||||||
(prevdoc_doctype, name))
|
|
||||||
supplier = dt and dt[0][0] or ''
|
|
||||||
currency = dt and dt[0][1] or ''
|
|
||||||
|
|
||||||
# check for supplier
|
|
||||||
if (supplier != obj.doc.supplier):
|
|
||||||
msgprint("Purchase Order: " + cstr(prevdoc_docname) + " supplier :" +
|
|
||||||
cstr(supplier) + " does not match with supplier of current document.")
|
|
||||||
raise Exception
|
|
||||||
|
|
||||||
# check for curency
|
|
||||||
if (currency != obj.doc.currency):
|
|
||||||
msgprint("Purchase Order: " + cstr(prevdoc_docname) + " currency :" +
|
|
||||||
cstr(currency) + " does not match with currency of current document.")
|
|
||||||
raise Exception
|
|
||||||
|
|
||||||
else: # if not name than
|
|
||||||
msgprint(cstr(prevdoc_doctype) + ": " + cstr(prevdoc_docname) +
|
|
||||||
" is not a valid " + cstr(prevdoc_doctype))
|
|
||||||
raise Exception
|
|
||||||
|
|
||||||
def validate_reference_value(self, obj):
|
def validate_reference_value(self, obj):
|
||||||
ref_doc = []
|
ref_doc = []
|
||||||
for d in getlist(obj.doclist, obj.fname):
|
for d in getlist(obj.doclist, obj.fname):
|
||||||
|
@ -14,6 +14,8 @@
|
|||||||
// You should have received a copy of the GNU General Public License
|
// You should have received a copy of the GNU General Public License
|
||||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
wn.provide("erpnext.buying");
|
||||||
|
|
||||||
cur_frm.cscript.tname = "Purchase Order Item";
|
cur_frm.cscript.tname = "Purchase Order Item";
|
||||||
cur_frm.cscript.fname = "po_details";
|
cur_frm.cscript.fname = "po_details";
|
||||||
cur_frm.cscript.other_fname = "purchase_tax_details";
|
cur_frm.cscript.other_fname = "purchase_tax_details";
|
||||||
@ -22,6 +24,35 @@ wn.require('app/accounts/doctype/purchase_taxes_and_charges_master/purchase_taxe
|
|||||||
wn.require('app/buying/doctype/purchase_common/purchase_common.js');
|
wn.require('app/buying/doctype/purchase_common/purchase_common.js');
|
||||||
wn.require('app/utilities/doctype/sms_control/sms_control.js');
|
wn.require('app/utilities/doctype/sms_control/sms_control.js');
|
||||||
|
|
||||||
|
erpnext.buying.PurchaseOrderController = erpnext.buying.BuyingController.extend({
|
||||||
|
refresh: function(doc, cdt, cdn) {
|
||||||
|
this._super();
|
||||||
|
|
||||||
|
if(doc.docstatus == 1 && doc.status != 'Stopped'){
|
||||||
|
cur_frm.add_custom_button('Send SMS', cur_frm.cscript['Send SMS']);
|
||||||
|
if(flt(doc.per_received, 2) < 100) cur_frm.add_custom_button('Make Purchase Receipt', cur_frm.cscript['Make Purchase Receipt']);
|
||||||
|
if(flt(doc.per_billed, 2) < 100) cur_frm.add_custom_button('Make Invoice', cur_frm.cscript['Make Purchase Invoice']);
|
||||||
|
if(flt(doc.per_billed, 2) < 100 || doc.per_received < 100) cur_frm.add_custom_button('Stop', cur_frm.cscript['Stop Purchase Order']);
|
||||||
|
}
|
||||||
|
|
||||||
|
if(doc.docstatus == 1 && doc.status == 'Stopped')
|
||||||
|
cur_frm.add_custom_button('Unstop Purchase Order', cur_frm.cscript['Unstop Purchase Order']);
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
onload_post_render: function(doc, dt, dn) {
|
||||||
|
var callback = function(doc, dt, dn) {
|
||||||
|
if(doc.__islocal) cur_frm.cscript.get_default_schedule_date(doc);
|
||||||
|
}
|
||||||
|
this.update_item_details(doc, dt, dn, callback);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
var new_cscript = new erpnext.buying.PurchaseOrderController({frm: cur_frm});
|
||||||
|
|
||||||
|
// for backward compatibility: combine new and previous states
|
||||||
|
$.extend(cur_frm.cscript, new_cscript);
|
||||||
|
|
||||||
cur_frm.cscript.onload = function(doc, cdt, cdn) {
|
cur_frm.cscript.onload = function(doc, cdt, cdn) {
|
||||||
// set missing values in parent doc
|
// set missing values in parent doc
|
||||||
set_missing_values(doc, {
|
set_missing_values(doc, {
|
||||||
@ -34,32 +65,6 @@ cur_frm.cscript.onload = function(doc, cdt, cdn) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
cur_frm.cscript.onload_post_render = function(doc, dt, dn) {
|
|
||||||
var callback = function(doc, dt, dn) {
|
|
||||||
if(doc.__islocal) cur_frm.cscript.get_default_schedule_date(doc);
|
|
||||||
}
|
|
||||||
cur_frm.cscript.update_item_details(doc, dt, dn, callback);
|
|
||||||
}
|
|
||||||
|
|
||||||
cur_frm.cscript.refresh = function(doc, cdt, cdn) {
|
|
||||||
cur_frm.clear_custom_buttons();
|
|
||||||
erpnext.hide_naming_series();
|
|
||||||
|
|
||||||
cur_frm.cscript.dynamic_label(doc, cdt, cdn);
|
|
||||||
|
|
||||||
if(doc.docstatus == 1 && doc.status != 'Stopped'){
|
|
||||||
cur_frm.add_custom_button('Send SMS', cur_frm.cscript['Send SMS']);
|
|
||||||
if(flt(doc.per_received, 2) < 100) cur_frm.add_custom_button('Make Purchase Receipt', cur_frm.cscript['Make Purchase Receipt']);
|
|
||||||
if(flt(doc.per_billed, 2) < 100) cur_frm.add_custom_button('Make Invoice', cur_frm.cscript['Make Purchase Invoice']);
|
|
||||||
if(flt(doc.per_billed, 2) < 100 || doc.per_received < 100) cur_frm.add_custom_button('Stop', cur_frm.cscript['Stop Purchase Order']);
|
|
||||||
}
|
|
||||||
|
|
||||||
if(doc.docstatus == 1 && doc.status == 'Stopped')
|
|
||||||
cur_frm.add_custom_button('Unstop Purchase Order', cur_frm.cscript['Unstop Purchase Order']);
|
|
||||||
|
|
||||||
cur_frm.cscript.toggle_contact_section(doc);
|
|
||||||
}
|
|
||||||
|
|
||||||
cur_frm.cscript.supplier = function(doc,dt,dn) {
|
cur_frm.cscript.supplier = function(doc,dt,dn) {
|
||||||
if (doc.supplier) {
|
if (doc.supplier) {
|
||||||
get_server_fields('get_default_supplier_address',
|
get_server_fields('get_default_supplier_address',
|
||||||
|
@ -17,19 +17,18 @@
|
|||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
import webnotes
|
import webnotes
|
||||||
|
|
||||||
from webnotes.utils import cstr, date_diff, flt, get_defaults, now
|
from webnotes.utils import cstr, flt, get_defaults
|
||||||
from webnotes.model import db_exists
|
from webnotes.model.doc import addchild
|
||||||
from webnotes.model.doc import addchild, make_autoname
|
from webnotes.model.wrapper import getlist
|
||||||
from webnotes.model.wrapper import getlist, copy_doclist
|
|
||||||
from webnotes.model.code import get_obj
|
from webnotes.model.code import get_obj
|
||||||
from webnotes import msgprint
|
from webnotes import msgprint
|
||||||
|
from buying.utils import get_last_purchase_details
|
||||||
|
from setup.utils import get_company_currency
|
||||||
|
|
||||||
sql = webnotes.conn.sql
|
sql = webnotes.conn.sql
|
||||||
|
|
||||||
|
from controllers.buying_controller import BuyingController
|
||||||
from utilities.transaction_base import TransactionBase
|
class DocType(BuyingController):
|
||||||
|
|
||||||
class DocType(TransactionBase):
|
|
||||||
def __init__(self, doc, doclist=[]):
|
def __init__(self, doc, doclist=[]):
|
||||||
self.doc = doc
|
self.doc = doc
|
||||||
self.doclist = doclist
|
self.doclist = doclist
|
||||||
@ -37,10 +36,41 @@ class DocType(TransactionBase):
|
|||||||
self.tname = 'Purchase Order Item'
|
self.tname = 'Purchase Order Item'
|
||||||
self.fname = 'po_details'
|
self.fname = 'po_details'
|
||||||
|
|
||||||
# Autoname
|
# Validate
|
||||||
# ---------
|
def validate(self):
|
||||||
def autoname(self):
|
super(DocType, self).validate()
|
||||||
self.doc.name = make_autoname(self.doc.naming_series+'.#####')
|
|
||||||
|
self.validate_fiscal_year()
|
||||||
|
|
||||||
|
if not self.doc.status:
|
||||||
|
self.doc.status = "Draft"
|
||||||
|
|
||||||
|
import utilities
|
||||||
|
utilities.validate_status(self.doc.status, ["Draft", "Submitted", "Stopped",
|
||||||
|
"Cancelled"])
|
||||||
|
|
||||||
|
# Step 2:=> get Purchase Common Obj
|
||||||
|
pc_obj = get_obj(dt='Purchase Common')
|
||||||
|
|
||||||
|
# Step 3:=> validate mandatory
|
||||||
|
pc_obj.validate_mandatory(self)
|
||||||
|
|
||||||
|
# Step 4:=> validate for items
|
||||||
|
pc_obj.validate_for_items(self)
|
||||||
|
|
||||||
|
# Get po date
|
||||||
|
pc_obj.get_prevdoc_date(self)
|
||||||
|
|
||||||
|
# validate_doc
|
||||||
|
self.validate_doc(pc_obj)
|
||||||
|
|
||||||
|
# Check for stopped status
|
||||||
|
self.check_for_stopped_status(pc_obj)
|
||||||
|
|
||||||
|
# get total in words
|
||||||
|
dcc = get_company_currency(self.doc.company)
|
||||||
|
self.doc.in_words = pc_obj.get_total_in_words(dcc, self.doc.grand_total)
|
||||||
|
self.doc.in_words_import = pc_obj.get_total_in_words(self.doc.currency, self.doc.grand_total_import)
|
||||||
|
|
||||||
def get_default_schedule_date(self):
|
def get_default_schedule_date(self):
|
||||||
get_obj(dt = 'Purchase Common').get_default_schedule_date(self)
|
get_obj(dt = 'Purchase Common').get_default_schedule_date(self)
|
||||||
@ -48,27 +78,6 @@ class DocType(TransactionBase):
|
|||||||
def validate_fiscal_year(self):
|
def validate_fiscal_year(self):
|
||||||
get_obj(dt = 'Purchase Common').validate_fiscal_year(self.doc.fiscal_year,self.doc.transaction_date,'PO Date')
|
get_obj(dt = 'Purchase Common').validate_fiscal_year(self.doc.fiscal_year,self.doc.transaction_date,'PO Date')
|
||||||
|
|
||||||
|
|
||||||
# Get Item Details
|
|
||||||
def get_item_details(self, arg =''):
|
|
||||||
import json
|
|
||||||
if arg:
|
|
||||||
return get_obj(dt='Purchase Common').get_item_details(self,arg)
|
|
||||||
else:
|
|
||||||
obj = get_obj('Purchase Common')
|
|
||||||
for doc in self.doclist:
|
|
||||||
if doc.fields.get('item_code'):
|
|
||||||
temp = {
|
|
||||||
'item_code': doc.fields.get('item_code'),
|
|
||||||
'warehouse': doc.fields.get('warehouse')
|
|
||||||
}
|
|
||||||
ret = obj.get_item_details(self, json.dumps(temp))
|
|
||||||
for r in ret:
|
|
||||||
if not doc.fields.get(r):
|
|
||||||
doc.fields[r] = ret[r]
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# get available qty at warehouse
|
# get available qty at warehouse
|
||||||
def get_bin_details(self, arg = ''):
|
def get_bin_details(self, arg = ''):
|
||||||
return get_obj(dt='Purchase Common').get_bin_details(arg)
|
return get_obj(dt='Purchase Common').get_bin_details(arg)
|
||||||
@ -80,7 +89,7 @@ class DocType(TransactionBase):
|
|||||||
pcomm = get_obj('Purchase Common')
|
pcomm = get_obj('Purchase Common')
|
||||||
for d in getlist(self.doclist, 'po_details'):
|
for d in getlist(self.doclist, 'po_details'):
|
||||||
if d.item_code and not d.purchase_rate:
|
if d.item_code and not d.purchase_rate:
|
||||||
last_purchase_details, last_purchase_date = pcomm.get_last_purchase_details(d.item_code, self.doc.name)
|
last_purchase_details = get_last_purchase_details(d.item_code, self.doc.name)
|
||||||
if last_purchase_details:
|
if last_purchase_details:
|
||||||
conversion_factor = d.conversion_factor or 1.0
|
conversion_factor = d.conversion_factor or 1.0
|
||||||
conversion_rate = self.doc.fields.get('conversion_rate') or 1.0
|
conversion_rate = self.doc.fields.get('conversion_rate') or 1.0
|
||||||
@ -125,44 +134,6 @@ class DocType(TransactionBase):
|
|||||||
pc_obj.check_for_stopped_status( d.prevdoc_doctype, d.prevdoc_docname)
|
pc_obj.check_for_stopped_status( d.prevdoc_doctype, d.prevdoc_docname)
|
||||||
|
|
||||||
|
|
||||||
# Validate
|
|
||||||
def validate(self):
|
|
||||||
self.validate_fiscal_year()
|
|
||||||
|
|
||||||
if not self.doc.status:
|
|
||||||
self.doc.status = "Draft"
|
|
||||||
|
|
||||||
import utilities
|
|
||||||
utilities.validate_status(self.doc.status, ["Draft", "Submitted", "Stopped",
|
|
||||||
"Cancelled"])
|
|
||||||
|
|
||||||
# Step 2:=> get Purchase Common Obj
|
|
||||||
pc_obj = get_obj(dt='Purchase Common')
|
|
||||||
|
|
||||||
# Step 3:=> validate mandatory
|
|
||||||
pc_obj.validate_mandatory(self)
|
|
||||||
|
|
||||||
# Step 4:=> validate for items
|
|
||||||
pc_obj.validate_for_items(self)
|
|
||||||
|
|
||||||
# Step 5:=> validate conversion rate
|
|
||||||
pc_obj.validate_conversion_rate(self)
|
|
||||||
|
|
||||||
# Get po date
|
|
||||||
pc_obj.get_prevdoc_date(self)
|
|
||||||
|
|
||||||
# validate_doc
|
|
||||||
self.validate_doc(pc_obj)
|
|
||||||
|
|
||||||
# Check for stopped status
|
|
||||||
self.check_for_stopped_status(pc_obj)
|
|
||||||
|
|
||||||
# get total in words
|
|
||||||
dcc = TransactionBase().get_company_currency(self.doc.company)
|
|
||||||
self.doc.in_words = pc_obj.get_total_in_words(dcc, self.doc.grand_total)
|
|
||||||
self.doc.in_words_import = pc_obj.get_total_in_words(self.doc.currency, self.doc.grand_total_import)
|
|
||||||
|
|
||||||
|
|
||||||
def update_bin(self, is_submit, is_stopped = 0):
|
def update_bin(self, is_submit, is_stopped = 0):
|
||||||
pc_obj = get_obj('Purchase Common')
|
pc_obj = get_obj('Purchase Common')
|
||||||
for d in getlist(self.doclist, 'po_details'):
|
for d in getlist(self.doclist, 'po_details'):
|
||||||
@ -237,10 +208,6 @@ class DocType(TransactionBase):
|
|||||||
# Step 3 :=> Check For Approval Authority
|
# Step 3 :=> Check For Approval Authority
|
||||||
get_obj('Authorization Control').validate_approving_authority(self.doc.doctype, self.doc.company, self.doc.grand_total)
|
get_obj('Authorization Control').validate_approving_authority(self.doc.doctype, self.doc.company, self.doc.grand_total)
|
||||||
|
|
||||||
# Step 4 :=> Update Current PO No. in Supplier as last_purchase_order.
|
|
||||||
update_supplier = webnotes.conn.set_value("Supplier", self.doc.supplier,
|
|
||||||
"last_purchase_order", self.doc.name)
|
|
||||||
|
|
||||||
# Step 5 :=> Update last purchase rate
|
# Step 5 :=> Update last purchase rate
|
||||||
purchase_controller.update_last_purchase_rate(self, is_submit = 1)
|
purchase_controller.update_last_purchase_rate(self, is_submit = 1)
|
||||||
|
|
||||||
|
@ -2,18 +2,19 @@
|
|||||||
{
|
{
|
||||||
"owner": "Administrator",
|
"owner": "Administrator",
|
||||||
"docstatus": 0,
|
"docstatus": 0,
|
||||||
"creation": "2012-08-06 20:00:37",
|
"creation": "2013-01-18 12:46:59",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"modified": "2012-12-03 17:10:41"
|
"modified": "2013-01-18 13:24:20"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"document_type": "Transaction",
|
||||||
"is_submittable": 1,
|
"is_submittable": 1,
|
||||||
"allow_attach": 1,
|
"allow_attach": 1,
|
||||||
"search_fields": "status, transaction_date, supplier,grand_total",
|
"autoname": "naming_series:",
|
||||||
"module": "Buying",
|
"module": "Buying",
|
||||||
"doctype": "DocType",
|
"doctype": "DocType",
|
||||||
"read_only_onload": 1,
|
"read_only_onload": 1,
|
||||||
"document_type": "Transaction",
|
"search_fields": "status, transaction_date, supplier,grand_total",
|
||||||
"name": "__common__"
|
"name": "__common__"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -35,45 +36,34 @@
|
|||||||
"name": "Purchase Order",
|
"name": "Purchase Order",
|
||||||
"doctype": "DocType"
|
"doctype": "DocType"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"oldfieldtype": "Column Break",
|
|
||||||
"doctype": "DocField",
|
|
||||||
"width": "50%",
|
|
||||||
"fieldname": "column_break0",
|
|
||||||
"fieldtype": "Column Break",
|
|
||||||
"permlevel": 0
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
"description": "To manage multiple series please go to Setup > Manage Series",
|
"description": "To manage multiple series please go to Setup > Manage Series",
|
||||||
"no_copy": 1,
|
"no_copy": 1,
|
||||||
"oldfieldtype": "Select",
|
"oldfieldtype": "Select",
|
||||||
"colour": "White:FFF",
|
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Series",
|
"label": "Series",
|
||||||
"oldfieldname": "naming_series",
|
"oldfieldname": "naming_series",
|
||||||
"permlevel": 0,
|
"options": "\nPO",
|
||||||
"fieldname": "naming_series",
|
"fieldname": "naming_series",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"options": "\nPO"
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
"description": "Supplier (vendor) name as entered in supplier master",
|
"description": "Supplier (vendor) name as entered in supplier master",
|
||||||
"oldfieldtype": "Link",
|
"oldfieldtype": "Link",
|
||||||
"colour": "White:FFF",
|
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Supplier",
|
"label": "Supplier",
|
||||||
"oldfieldname": "supplier",
|
"oldfieldname": "supplier",
|
||||||
"permlevel": 0,
|
"permlevel": 0,
|
||||||
"trigger": "Client",
|
|
||||||
"fieldname": "supplier",
|
"fieldname": "supplier",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"search_index": 1,
|
"search_index": 1,
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"in_filter": 1,
|
"options": "Supplier",
|
||||||
"options": "Supplier"
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
@ -118,6 +108,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 0,
|
"print_hide": 0,
|
||||||
|
"print_width": "50%",
|
||||||
"oldfieldtype": "Column Break",
|
"oldfieldtype": "Column Break",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"width": "50%",
|
"width": "50%",
|
||||||
@ -128,21 +119,18 @@
|
|||||||
{
|
{
|
||||||
"description": "The date at which current entry is made in system.",
|
"description": "The date at which current entry is made in system.",
|
||||||
"oldfieldtype": "Date",
|
"oldfieldtype": "Date",
|
||||||
"colour": "White:FFF",
|
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Purchase Order Date",
|
"label": "Purchase Order Date",
|
||||||
"oldfieldname": "transaction_date",
|
"oldfieldname": "transaction_date",
|
||||||
"trigger": "Client",
|
|
||||||
"fieldname": "transaction_date",
|
"fieldname": "transaction_date",
|
||||||
"fieldtype": "Date",
|
"fieldtype": "Date",
|
||||||
"search_index": 1,
|
"search_index": 1,
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"in_filter": 1,
|
"permlevel": 0,
|
||||||
"permlevel": 0
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"oldfieldtype": "Section Break",
|
"oldfieldtype": "Section Break",
|
||||||
"colour": "White:FFF",
|
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Items",
|
"label": "Items",
|
||||||
"fieldname": "items",
|
"fieldname": "items",
|
||||||
@ -156,101 +144,139 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Purchase Order Items",
|
"label": "Purchase Order Items",
|
||||||
"oldfieldname": "po_details",
|
"oldfieldname": "po_details",
|
||||||
"options": "Purchase Order Item",
|
"permlevel": 0,
|
||||||
"fieldname": "po_details",
|
"fieldname": "po_details",
|
||||||
"fieldtype": "Table",
|
"fieldtype": "Table",
|
||||||
"permlevel": 0
|
"options": "Purchase Order Item"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"options": "Simple",
|
"permlevel": 0,
|
||||||
"fieldname": "section_break0",
|
"fieldname": "sb_last_purchase",
|
||||||
"fieldtype": "Section Break",
|
"fieldtype": "Section Break",
|
||||||
|
"options": "Simple"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"print_hide": 0,
|
||||||
|
"oldfieldtype": "Button",
|
||||||
|
"doctype": "DocField",
|
||||||
|
"label": "Get Last Purchase Rate",
|
||||||
|
"fieldname": "get_last_purchase_rate",
|
||||||
|
"fieldtype": "Button",
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"print_width": "50%",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"width": "50%",
|
"width": "50%",
|
||||||
"fieldname": "column_break2",
|
"fieldname": "column_break2",
|
||||||
"fieldtype": "Column Break",
|
"fieldtype": "Column Break",
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"print_hide": 1,
|
|
||||||
"no_copy": 1,
|
|
||||||
"oldfieldtype": "Currency",
|
|
||||||
"doctype": "DocField",
|
|
||||||
"label": "Net Total*",
|
|
||||||
"oldfieldname": "net_total",
|
|
||||||
"fieldname": "net_total",
|
|
||||||
"fieldtype": "Currency",
|
|
||||||
"reqd": 0,
|
|
||||||
"permlevel": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"print_hide": 1,
|
|
||||||
"no_copy": 0,
|
|
||||||
"oldfieldtype": "Currency",
|
|
||||||
"doctype": "DocField",
|
|
||||||
"label": "Net Total (Import)",
|
|
||||||
"oldfieldname": "net_total_import",
|
|
||||||
"fieldname": "net_total_import",
|
|
||||||
"fieldtype": "Currency",
|
|
||||||
"permlevel": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"print_hide": 0,
|
|
||||||
"oldfieldtype": "Button",
|
|
||||||
"colour": "White:FFF",
|
|
||||||
"doctype": "DocField",
|
|
||||||
"label": "Get Last Purchase Rate",
|
|
||||||
"trigger": "Client",
|
|
||||||
"fieldname": "get_last_purchase_rate",
|
|
||||||
"fieldtype": "Button",
|
|
||||||
"permlevel": 0
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"oldfieldtype": "Button",
|
"oldfieldtype": "Button",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Re-Calculate Values",
|
"label": "Re-Calculate Values",
|
||||||
"trigger": "Client",
|
|
||||||
"fieldname": "recalculate_values",
|
"fieldname": "recalculate_values",
|
||||||
"fieldtype": "Button",
|
"fieldtype": "Button",
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"doctype": "DocField",
|
||||||
|
"fieldname": "section_break0",
|
||||||
|
"fieldtype": "Section Break",
|
||||||
|
"permlevel": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"print_hide": 1,
|
||||||
|
"description": "You can make a purchase order from multiple Purchase Requests. Select Purchase Requests one by one and click on the button below.",
|
||||||
|
"no_copy": 1,
|
||||||
|
"oldfieldtype": "Link",
|
||||||
|
"doctype": "DocField",
|
||||||
|
"label": "Select Purchase Request",
|
||||||
|
"oldfieldname": "indent_no",
|
||||||
|
"options": "Purchase Request",
|
||||||
|
"fieldname": "indent_no",
|
||||||
|
"fieldtype": "Link",
|
||||||
|
"hidden": 0,
|
||||||
|
"permlevel": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"print_hide": 1,
|
||||||
|
"no_copy": 0,
|
||||||
|
"oldfieldtype": "Button",
|
||||||
|
"doctype": "DocField",
|
||||||
|
"label": "Get Items",
|
||||||
|
"permlevel": 0,
|
||||||
|
"fieldname": "get_items",
|
||||||
|
"fieldtype": "Button",
|
||||||
|
"hidden": 0,
|
||||||
|
"options": "get_indent_details"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"print_width": "50%",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"width": "50%",
|
"width": "50%",
|
||||||
"fieldname": "column_break3",
|
"fieldname": "column_break3",
|
||||||
"fieldtype": "Column Break",
|
"fieldtype": "Column Break",
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"print_hide": 1,
|
||||||
|
"description": "You can make a purchase order from multiple Supplier Quotations. Select Supplier Quotations one by one and click on the button below.",
|
||||||
|
"no_copy": 1,
|
||||||
|
"doctype": "DocField",
|
||||||
|
"label": "Select Supplier Quotation",
|
||||||
|
"permlevel": 0,
|
||||||
|
"fieldname": "supplier_quotation",
|
||||||
|
"fieldtype": "Link",
|
||||||
|
"options": "Supplier Quotation"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"print_hide": 1,
|
||||||
|
"doctype": "DocField",
|
||||||
|
"label": "Get Items",
|
||||||
|
"permlevel": 0,
|
||||||
|
"fieldname": "get_supplier_quotation_items",
|
||||||
|
"fieldtype": "Button",
|
||||||
|
"options": "get_supplier_quotation_items"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"doctype": "DocField",
|
||||||
|
"label": "Currency & Price List",
|
||||||
|
"fieldname": "price_list_and_currency",
|
||||||
|
"fieldtype": "Section Break",
|
||||||
|
"permlevel": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"doctype": "DocField",
|
||||||
|
"fieldname": "cb_currency",
|
||||||
|
"fieldtype": "Column Break",
|
||||||
|
"permlevel": 0
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
"description": "Supplier's currency",
|
"description": "Supplier's currency",
|
||||||
"no_copy": 0,
|
"no_copy": 0,
|
||||||
"oldfieldtype": "Select",
|
"oldfieldtype": "Select",
|
||||||
"colour": "White:FFF",
|
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Currency",
|
"label": "Currency",
|
||||||
"oldfieldname": "currency",
|
"oldfieldname": "currency",
|
||||||
"permlevel": 0,
|
"options": "link:Currency",
|
||||||
"fieldname": "currency",
|
"fieldname": "currency",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"options": "link:Currency"
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
"description": "Rate at which supplier's currency is converted to company's base currency",
|
"description": "Rate at which supplier's currency is converted to company's base currency",
|
||||||
"no_copy": 1,
|
"no_copy": 1,
|
||||||
"oldfieldtype": "Currency",
|
"oldfieldtype": "Currency",
|
||||||
"colour": "White:FFF",
|
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Conversion Rate",
|
"label": "Exchange Rate",
|
||||||
"oldfieldname": "conversion_rate",
|
"oldfieldname": "conversion_rate",
|
||||||
"default": "1",
|
"default": "1",
|
||||||
"trigger": "Client",
|
|
||||||
"fieldname": "conversion_rate",
|
"fieldname": "conversion_rate",
|
||||||
"fieldtype": "Float",
|
"fieldtype": "Float",
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
@ -258,56 +284,43 @@
|
|||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
|
||||||
"description": "You can make a purchase order from multiple Purchase Requests. Select Purchase Requests one by one and click on the button below.",
|
|
||||||
"no_copy": 1,
|
|
||||||
"oldfieldtype": "Link",
|
|
||||||
"colour": "White:FFF",
|
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Select Purchase Request",
|
"fieldname": "cb_price_list",
|
||||||
"oldfieldname": "indent_no",
|
"fieldtype": "Column Break",
|
||||||
|
"permlevel": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"print_hide": 1,
|
||||||
|
"description": "Consider this Price List for fetching rate. (only which have \"For Buying\" as checked)",
|
||||||
|
"doctype": "DocField",
|
||||||
|
"label": "Price List",
|
||||||
"permlevel": 0,
|
"permlevel": 0,
|
||||||
"fieldname": "indent_no",
|
"fieldname": "price_list_name",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"hidden": 0,
|
"options": "Price List"
|
||||||
"options": "Purchase Request"
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
"no_copy": 0,
|
"depends_on": "price_list_name",
|
||||||
"oldfieldtype": "Button",
|
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Get Items",
|
"label": "Price List Currency",
|
||||||
"options": "get_indent_details",
|
"permlevel": 0,
|
||||||
"fieldname": "get_items",
|
"fieldname": "price_list_currency",
|
||||||
"fieldtype": "Button",
|
|
||||||
"hidden": 0,
|
|
||||||
"permlevel": 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"print_hide": 1,
|
|
||||||
"description": "You can make a purchase order from multiple Supplier Quotations. Select Supplier Quotations one by one and click on the button below.",
|
|
||||||
"no_copy": 1,
|
|
||||||
"doctype": "DocField",
|
|
||||||
"label": "Select Supplier Quotation",
|
|
||||||
"options": "Supplier Quotation",
|
|
||||||
"fieldname": "supplier_quotation",
|
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"permlevel": 0
|
"options": "Currency"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
|
"depends_on": "price_list_name",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Get Items",
|
"label": "Price List Exchange Rate",
|
||||||
"options": "get_supplier_quotation_items",
|
"fieldname": "plc_conversion_rate",
|
||||||
"fieldname": "get_supplier_quotation_items",
|
"fieldtype": "Float",
|
||||||
"fieldtype": "Button",
|
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 0,
|
"print_hide": 0,
|
||||||
"oldfieldtype": "Section Break",
|
"oldfieldtype": "Section Break",
|
||||||
"colour": "White:FFF",
|
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Taxes",
|
"label": "Taxes",
|
||||||
"fieldname": "taxes",
|
"fieldname": "taxes",
|
||||||
@ -319,7 +332,6 @@
|
|||||||
"description": "If you have created a standard template in Purchase Taxes and Charges Master, select one and click on the button below.",
|
"description": "If you have created a standard template in Purchase Taxes and Charges Master, select one and click on the button below.",
|
||||||
"no_copy": 1,
|
"no_copy": 1,
|
||||||
"oldfieldtype": "Link",
|
"oldfieldtype": "Link",
|
||||||
"colour": "White:FFF",
|
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Purchase Taxes and Charges",
|
"label": "Purchase Taxes and Charges",
|
||||||
"oldfieldname": "purchase_other_charges",
|
"oldfieldname": "purchase_other_charges",
|
||||||
@ -333,10 +345,10 @@
|
|||||||
"oldfieldtype": "Button",
|
"oldfieldtype": "Button",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Get Tax Detail",
|
"label": "Get Tax Detail",
|
||||||
"options": "get_purchase_tax_details",
|
"permlevel": 0,
|
||||||
"fieldname": "get_tax_detail",
|
"fieldname": "get_tax_detail",
|
||||||
"fieldtype": "Button",
|
"fieldtype": "Button",
|
||||||
"permlevel": 0
|
"options": "get_purchase_tax_details"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"no_copy": 0,
|
"no_copy": 0,
|
||||||
@ -344,17 +356,16 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Purchase Taxes and Charges",
|
"label": "Purchase Taxes and Charges",
|
||||||
"oldfieldname": "purchase_tax_details",
|
"oldfieldname": "purchase_tax_details",
|
||||||
"options": "Purchase Taxes and Charges",
|
"permlevel": 0,
|
||||||
"fieldname": "purchase_tax_details",
|
"fieldname": "purchase_tax_details",
|
||||||
"fieldtype": "Table",
|
"fieldtype": "Table",
|
||||||
"permlevel": 0
|
"options": "Purchase Taxes and Charges"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
"oldfieldtype": "Button",
|
"oldfieldtype": "Button",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Calculate Tax",
|
"label": "Calculate Tax",
|
||||||
"trigger": "Client",
|
|
||||||
"fieldname": "calculate_tax",
|
"fieldname": "calculate_tax",
|
||||||
"fieldtype": "Button",
|
"fieldtype": "Button",
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
@ -369,112 +380,25 @@
|
|||||||
"fieldtype": "HTML",
|
"fieldtype": "HTML",
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"print_hide": 1,
|
|
||||||
"no_copy": 1,
|
|
||||||
"oldfieldtype": "Currency",
|
|
||||||
"doctype": "DocField",
|
|
||||||
"label": "Total Tax*",
|
|
||||||
"oldfieldname": "total_tax",
|
|
||||||
"fieldname": "total_tax",
|
|
||||||
"fieldtype": "Currency",
|
|
||||||
"permlevel": 1
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"oldfieldtype": "Section Break",
|
"oldfieldtype": "Section Break",
|
||||||
"colour": "White:FFF",
|
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Totals",
|
"label": "Totals",
|
||||||
"fieldname": "totals",
|
"fieldname": "totals",
|
||||||
"fieldtype": "Section Break",
|
"fieldtype": "Section Break",
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"print_hide": 1,
|
|
||||||
"no_copy": 1,
|
|
||||||
"oldfieldtype": "Currency",
|
|
||||||
"doctype": "DocField",
|
|
||||||
"label": "Grand Total",
|
|
||||||
"oldfieldname": "grand_total",
|
|
||||||
"fieldname": "grand_total",
|
|
||||||
"fieldtype": "Currency",
|
|
||||||
"permlevel": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"print_hide": 1,
|
|
||||||
"oldfieldtype": "Currency",
|
|
||||||
"doctype": "DocField",
|
|
||||||
"label": "Rounded Total",
|
|
||||||
"oldfieldname": "rounded_total",
|
|
||||||
"fieldname": "rounded_total",
|
|
||||||
"fieldtype": "Currency",
|
|
||||||
"permlevel": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"print_hide": 1,
|
|
||||||
"description": "In Words will be visible once you save the Purchase Order.",
|
|
||||||
"oldfieldtype": "Data",
|
|
||||||
"colour": "White:FFF",
|
|
||||||
"doctype": "DocField",
|
|
||||||
"label": "In Words",
|
|
||||||
"oldfieldname": "in_words",
|
|
||||||
"fieldname": "in_words",
|
|
||||||
"fieldtype": "Data",
|
|
||||||
"permlevel": 1
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
"no_copy": 0,
|
"no_copy": 0,
|
||||||
"oldfieldtype": "Currency",
|
"oldfieldtype": "Currency",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Taxes and Charges Added",
|
"label": "Net Total (Import)",
|
||||||
"oldfieldname": "other_charges_added",
|
"oldfieldname": "net_total_import",
|
||||||
"fieldname": "other_charges_added",
|
"fieldname": "net_total_import",
|
||||||
"fieldtype": "Currency",
|
"fieldtype": "Currency",
|
||||||
"permlevel": 1
|
"permlevel": 1
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"print_hide": 1,
|
|
||||||
"no_copy": 0,
|
|
||||||
"oldfieldtype": "Currency",
|
|
||||||
"doctype": "DocField",
|
|
||||||
"label": "Taxes and Charges Deducted",
|
|
||||||
"oldfieldname": "other_charges_deducted",
|
|
||||||
"fieldname": "other_charges_deducted",
|
|
||||||
"fieldtype": "Currency",
|
|
||||||
"permlevel": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"print_hide": 0,
|
|
||||||
"oldfieldtype": "Column Break",
|
|
||||||
"doctype": "DocField",
|
|
||||||
"fieldname": "column_break4",
|
|
||||||
"fieldtype": "Column Break",
|
|
||||||
"permlevel": 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"print_hide": 1,
|
|
||||||
"no_copy": 0,
|
|
||||||
"oldfieldtype": "Currency",
|
|
||||||
"doctype": "DocField",
|
|
||||||
"label": "Grand Total (Import)",
|
|
||||||
"oldfieldname": "grand_total_import",
|
|
||||||
"fieldname": "grand_total_import",
|
|
||||||
"fieldtype": "Currency",
|
|
||||||
"permlevel": 1,
|
|
||||||
"report_hide": 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"print_hide": 1,
|
|
||||||
"oldfieldtype": "Data",
|
|
||||||
"colour": "White:FFF",
|
|
||||||
"doctype": "DocField",
|
|
||||||
"label": "In Words(Import)",
|
|
||||||
"oldfieldname": "in_words_import",
|
|
||||||
"fieldname": "in_words_import",
|
|
||||||
"fieldtype": "Data",
|
|
||||||
"permlevel": 1
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
"no_copy": 0,
|
"no_copy": 0,
|
||||||
@ -499,6 +423,113 @@
|
|||||||
"permlevel": 1,
|
"permlevel": 1,
|
||||||
"report_hide": 0
|
"report_hide": 0
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"print_hide": 1,
|
||||||
|
"no_copy": 0,
|
||||||
|
"oldfieldtype": "Currency",
|
||||||
|
"doctype": "DocField",
|
||||||
|
"label": "Grand Total (Import)",
|
||||||
|
"oldfieldname": "grand_total_import",
|
||||||
|
"fieldname": "grand_total_import",
|
||||||
|
"fieldtype": "Currency",
|
||||||
|
"permlevel": 1,
|
||||||
|
"report_hide": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"print_hide": 1,
|
||||||
|
"oldfieldtype": "Data",
|
||||||
|
"doctype": "DocField",
|
||||||
|
"label": "In Words(Import)",
|
||||||
|
"oldfieldname": "in_words_import",
|
||||||
|
"fieldname": "in_words_import",
|
||||||
|
"fieldtype": "Data",
|
||||||
|
"permlevel": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"print_hide": 0,
|
||||||
|
"oldfieldtype": "Column Break",
|
||||||
|
"doctype": "DocField",
|
||||||
|
"fieldname": "column_break4",
|
||||||
|
"fieldtype": "Column Break",
|
||||||
|
"permlevel": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"print_hide": 1,
|
||||||
|
"no_copy": 1,
|
||||||
|
"oldfieldtype": "Currency",
|
||||||
|
"doctype": "DocField",
|
||||||
|
"label": "Net Total*",
|
||||||
|
"oldfieldname": "net_total",
|
||||||
|
"fieldname": "net_total",
|
||||||
|
"fieldtype": "Currency",
|
||||||
|
"reqd": 0,
|
||||||
|
"permlevel": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"print_hide": 1,
|
||||||
|
"no_copy": 0,
|
||||||
|
"oldfieldtype": "Currency",
|
||||||
|
"doctype": "DocField",
|
||||||
|
"label": "Taxes and Charges Added",
|
||||||
|
"oldfieldname": "other_charges_added",
|
||||||
|
"fieldname": "other_charges_added",
|
||||||
|
"fieldtype": "Currency",
|
||||||
|
"permlevel": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"print_hide": 1,
|
||||||
|
"no_copy": 0,
|
||||||
|
"oldfieldtype": "Currency",
|
||||||
|
"doctype": "DocField",
|
||||||
|
"label": "Taxes and Charges Deducted",
|
||||||
|
"oldfieldname": "other_charges_deducted",
|
||||||
|
"fieldname": "other_charges_deducted",
|
||||||
|
"fieldtype": "Currency",
|
||||||
|
"permlevel": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"print_hide": 1,
|
||||||
|
"no_copy": 1,
|
||||||
|
"oldfieldtype": "Currency",
|
||||||
|
"doctype": "DocField",
|
||||||
|
"label": "Total Tax*",
|
||||||
|
"oldfieldname": "total_tax",
|
||||||
|
"fieldname": "total_tax",
|
||||||
|
"fieldtype": "Currency",
|
||||||
|
"permlevel": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"print_hide": 1,
|
||||||
|
"no_copy": 1,
|
||||||
|
"oldfieldtype": "Currency",
|
||||||
|
"doctype": "DocField",
|
||||||
|
"label": "Grand Total",
|
||||||
|
"oldfieldname": "grand_total",
|
||||||
|
"fieldname": "grand_total",
|
||||||
|
"fieldtype": "Currency",
|
||||||
|
"permlevel": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"print_hide": 1,
|
||||||
|
"oldfieldtype": "Currency",
|
||||||
|
"doctype": "DocField",
|
||||||
|
"label": "Rounded Total",
|
||||||
|
"oldfieldname": "rounded_total",
|
||||||
|
"fieldname": "rounded_total",
|
||||||
|
"fieldtype": "Currency",
|
||||||
|
"permlevel": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"print_hide": 1,
|
||||||
|
"description": "In Words will be visible once you save the Purchase Order.",
|
||||||
|
"oldfieldtype": "Data",
|
||||||
|
"doctype": "DocField",
|
||||||
|
"label": "In Words",
|
||||||
|
"oldfieldname": "in_words",
|
||||||
|
"fieldname": "in_words",
|
||||||
|
"fieldtype": "Data",
|
||||||
|
"permlevel": 1
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"oldfieldtype": "Section Break",
|
"oldfieldtype": "Section Break",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
@ -507,47 +538,35 @@
|
|||||||
"fieldtype": "Section Break",
|
"fieldtype": "Section Break",
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"print_hide": 1,
|
|
||||||
"oldfieldtype": "Select",
|
|
||||||
"allow_on_submit": 1,
|
|
||||||
"doctype": "DocField",
|
|
||||||
"label": "Letter Head",
|
|
||||||
"oldfieldname": "letter_head",
|
|
||||||
"options": "link:Letter Head",
|
|
||||||
"fieldname": "letter_head",
|
|
||||||
"fieldtype": "Select",
|
|
||||||
"permlevel": 0
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
"oldfieldtype": "Link",
|
"oldfieldtype": "Link",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Select Terms and Conditions",
|
"label": "Select Terms and Conditions",
|
||||||
"oldfieldname": "tc_name",
|
"oldfieldname": "tc_name",
|
||||||
"options": "Terms and Conditions",
|
"permlevel": 0,
|
||||||
"fieldname": "tc_name",
|
"fieldname": "tc_name",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"permlevel": 0
|
"options": "Terms and Conditions"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"oldfieldtype": "Button",
|
"oldfieldtype": "Button",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Get Terms and Conditions",
|
"label": "Get Terms and Conditions",
|
||||||
"options": "get_tc_details",
|
"permlevel": 0,
|
||||||
"fieldname": "get_terms",
|
"fieldname": "get_terms",
|
||||||
"fieldtype": "Button",
|
"fieldtype": "Button",
|
||||||
"permlevel": 0
|
"options": "get_tc_details"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
"oldfieldtype": "HTML",
|
"oldfieldtype": "HTML",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Terms and Conditions HTML",
|
"label": "Terms and Conditions HTML",
|
||||||
"options": "You can add Terms and Notes that will be printed in the Transaction",
|
"permlevel": 0,
|
||||||
"fieldname": "terms_html",
|
"fieldname": "terms_html",
|
||||||
"fieldtype": "HTML",
|
"fieldtype": "HTML",
|
||||||
"permlevel": 0
|
"options": "You can add Terms and Notes that will be printed in the Transaction"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"oldfieldtype": "Text Editor",
|
"oldfieldtype": "Text Editor",
|
||||||
@ -569,20 +588,26 @@
|
|||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Supplier Address",
|
"label": "Supplier Address",
|
||||||
"options": "Address",
|
"permlevel": 0,
|
||||||
"fieldname": "supplier_address",
|
"fieldname": "supplier_address",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"permlevel": 0,
|
"options": "Address",
|
||||||
"in_filter": 1
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"doctype": "DocField",
|
||||||
|
"fieldname": "cb_contact",
|
||||||
|
"fieldtype": "Column Break",
|
||||||
|
"permlevel": 0
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Contact Person",
|
"label": "Contact Person",
|
||||||
"options": "Contact",
|
"permlevel": 0,
|
||||||
"fieldname": "contact_person",
|
"fieldname": "contact_person",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"permlevel": 0,
|
"options": "Contact",
|
||||||
"in_filter": 1
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -597,7 +622,6 @@
|
|||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
"no_copy": 1,
|
"no_copy": 1,
|
||||||
"oldfieldtype": "Select",
|
"oldfieldtype": "Select",
|
||||||
"colour": "White:FFF",
|
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Status",
|
"label": "Status",
|
||||||
"oldfieldname": "status",
|
"oldfieldname": "status",
|
||||||
@ -614,10 +638,10 @@
|
|||||||
"default": "No",
|
"default": "No",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Is Subcontracted",
|
"label": "Is Subcontracted",
|
||||||
"options": "\nYes\nNo",
|
"permlevel": 0,
|
||||||
"fieldname": "is_subcontracted",
|
"fieldname": "is_subcontracted",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"permlevel": 0
|
"options": "\nYes\nNo"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
@ -631,6 +655,18 @@
|
|||||||
"hidden": 1,
|
"hidden": 1,
|
||||||
"permlevel": 1
|
"permlevel": 1
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"print_hide": 1,
|
||||||
|
"oldfieldtype": "Select",
|
||||||
|
"allow_on_submit": 1,
|
||||||
|
"doctype": "DocField",
|
||||||
|
"label": "Letter Head",
|
||||||
|
"oldfieldname": "letter_head",
|
||||||
|
"permlevel": 0,
|
||||||
|
"fieldname": "letter_head",
|
||||||
|
"fieldtype": "Select",
|
||||||
|
"options": "link:Letter Head"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
"no_copy": 1,
|
"no_copy": 1,
|
||||||
@ -662,7 +698,6 @@
|
|||||||
"description": "Select the relevant company name if you have multiple companies",
|
"description": "Select the relevant company name if you have multiple companies",
|
||||||
"no_copy": 0,
|
"no_copy": 0,
|
||||||
"oldfieldtype": "Link",
|
"oldfieldtype": "Link",
|
||||||
"colour": "White:FFF",
|
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Company",
|
"label": "Company",
|
||||||
"oldfieldname": "company",
|
"oldfieldname": "company",
|
||||||
@ -671,8 +706,8 @@
|
|||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"search_index": 1,
|
"search_index": 1,
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"in_filter": 1,
|
"options": "Company",
|
||||||
"options": "Company"
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
@ -693,15 +728,14 @@
|
|||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
"no_copy": 1,
|
"no_copy": 1,
|
||||||
"oldfieldtype": "Link",
|
"oldfieldtype": "Link",
|
||||||
"colour": "White:FFF",
|
|
||||||
"allow_on_submit": 1,
|
"allow_on_submit": 1,
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Select Print Heading",
|
"label": "Select Print Heading",
|
||||||
"oldfieldname": "select_print_heading",
|
"oldfieldname": "select_print_heading",
|
||||||
"permlevel": 0,
|
"options": "Print Heading",
|
||||||
"fieldname": "select_print_heading",
|
"fieldname": "select_print_heading",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"options": "Print Heading",
|
"permlevel": 0,
|
||||||
"report_hide": 1
|
"report_hide": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -715,6 +749,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
|
"print_width": "50%",
|
||||||
"oldfieldtype": "Column Break",
|
"oldfieldtype": "Column Break",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"width": "50%",
|
"width": "50%",
|
||||||
@ -727,7 +762,6 @@
|
|||||||
"description": "% of materials received against this Purchase Order",
|
"description": "% of materials received against this Purchase Order",
|
||||||
"no_copy": 1,
|
"no_copy": 1,
|
||||||
"oldfieldtype": "Currency",
|
"oldfieldtype": "Currency",
|
||||||
"colour": "White:FFF",
|
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "% Received",
|
"label": "% Received",
|
||||||
"oldfieldname": "per_received",
|
"oldfieldname": "per_received",
|
||||||
@ -741,7 +775,6 @@
|
|||||||
"description": "% of materials billed against this Purchase Order.",
|
"description": "% of materials billed against this Purchase Order.",
|
||||||
"no_copy": 1,
|
"no_copy": 1,
|
||||||
"oldfieldtype": "Currency",
|
"oldfieldtype": "Currency",
|
||||||
"colour": "White:FFF",
|
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "% Billed",
|
"label": "% Billed",
|
||||||
"oldfieldname": "per_billed",
|
"oldfieldname": "per_billed",
|
||||||
@ -754,7 +787,6 @@
|
|||||||
"print_hide": 0,
|
"print_hide": 0,
|
||||||
"no_copy": 1,
|
"no_copy": 1,
|
||||||
"oldfieldtype": "Text",
|
"oldfieldtype": "Text",
|
||||||
"colour": "White:FFF",
|
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Payment Terms",
|
"label": "Payment Terms",
|
||||||
"oldfieldname": "payment_terms",
|
"oldfieldname": "payment_terms",
|
||||||
@ -777,7 +809,6 @@
|
|||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
"no_copy": 1,
|
"no_copy": 1,
|
||||||
"oldfieldtype": "Data",
|
"oldfieldtype": "Data",
|
||||||
"colour": "White:FFF",
|
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Cancel Reason",
|
"label": "Cancel Reason",
|
||||||
"oldfieldname": "cancel_reason",
|
"oldfieldname": "cancel_reason",
|
||||||
@ -791,7 +822,6 @@
|
|||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
"description": "Required raw materials issued to the supplier for producing a sub - contracted item.",
|
"description": "Required raw materials issued to the supplier for producing a sub - contracted item.",
|
||||||
"oldfieldtype": "Section Break",
|
"oldfieldtype": "Section Break",
|
||||||
"colour": "White:FFF",
|
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Raw Material Details",
|
"label": "Raw Material Details",
|
||||||
"fieldname": "raw_material_details",
|
"fieldname": "raw_material_details",
|
||||||
@ -806,10 +836,10 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Purchase Order Items Supplied",
|
"label": "Purchase Order Items Supplied",
|
||||||
"oldfieldname": "po_raw_material_details",
|
"oldfieldname": "po_raw_material_details",
|
||||||
"options": "Purchase Order Item Supplied",
|
"permlevel": 1,
|
||||||
"fieldname": "po_raw_material_details",
|
"fieldname": "po_raw_material_details",
|
||||||
"fieldtype": "Table",
|
"fieldtype": "Table",
|
||||||
"permlevel": 1
|
"options": "Purchase Order Item Supplied"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
@ -827,26 +857,28 @@
|
|||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"submit": 1,
|
"submit": 1,
|
||||||
"write": 1,
|
"write": 1,
|
||||||
|
"report": 1,
|
||||||
"role": "Purchase User",
|
"role": "Purchase User",
|
||||||
"cancel": 1,
|
"cancel": 1,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocPerm",
|
|
||||||
"role": "All",
|
"role": "All",
|
||||||
"permlevel": 1
|
"permlevel": 1,
|
||||||
|
"doctype": "DocPerm"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"role": "Supplier",
|
"role": "Supplier",
|
||||||
|
"report": 1,
|
||||||
"permlevel": 0,
|
"permlevel": 0,
|
||||||
"match": "supplier"
|
"match": "supplier"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocPerm",
|
|
||||||
"write": 1,
|
"write": 1,
|
||||||
"role": "All",
|
"role": "All",
|
||||||
"permlevel": 2
|
"permlevel": 2,
|
||||||
|
"doctype": "DocPerm"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"amend": 0,
|
"amend": 0,
|
||||||
@ -864,6 +896,7 @@
|
|||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"submit": 1,
|
"submit": 1,
|
||||||
"write": 1,
|
"write": 1,
|
||||||
|
"report": 1,
|
||||||
"role": "Purchase Manager",
|
"role": "Purchase Manager",
|
||||||
"cancel": 1,
|
"cancel": 1,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
@ -884,6 +917,7 @@
|
|||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"submit": 0,
|
"submit": 0,
|
||||||
"write": 0,
|
"write": 0,
|
||||||
|
"report": 1,
|
||||||
"role": "Material User",
|
"role": "Material User",
|
||||||
"cancel": 0,
|
"cancel": 0,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
|
@ -20,6 +20,31 @@ cur_frm.cscript.fname = "indent_details";
|
|||||||
wn.require('app/buying/doctype/purchase_common/purchase_common.js');
|
wn.require('app/buying/doctype/purchase_common/purchase_common.js');
|
||||||
wn.require('app/utilities/doctype/sms_control/sms_control.js');
|
wn.require('app/utilities/doctype/sms_control/sms_control.js');
|
||||||
|
|
||||||
|
erpnext.buying.PurchaseRequestController = erpnext.buying.BuyingController.extend({
|
||||||
|
refresh: function(doc) {
|
||||||
|
this._super();
|
||||||
|
|
||||||
|
if(doc.docstatus == 1 && doc.status != 'Stopped'){
|
||||||
|
cur_frm.add_custom_button("Make Supplier Quotation", cur_frm.cscript.make_supplier_quotation);
|
||||||
|
if(flt(doc.per_ordered, 2) < 100) {
|
||||||
|
cur_frm.add_custom_button('Make Purchase Order', cur_frm.cscript['Make Purchase Order']);
|
||||||
|
cur_frm.add_custom_button('Stop Purchase Request', cur_frm.cscript['Stop Purchase Request']);
|
||||||
|
}
|
||||||
|
cur_frm.add_custom_button('Send SMS', cur_frm.cscript.send_sms);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
if(doc.docstatus == 1 && doc.status == 'Stopped')
|
||||||
|
cur_frm.add_custom_button('Unstop Purchase Request', cur_frm.cscript['Unstop Purchase Request'])
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
var new_cscript = new erpnext.buying.PurchaseRequestController({frm: cur_frm});
|
||||||
|
|
||||||
|
// for backward compatibility: combine new and previous states
|
||||||
|
$.extend(cur_frm.cscript, new_cscript);
|
||||||
|
|
||||||
|
|
||||||
//========================== On Load =================================================
|
//========================== On Load =================================================
|
||||||
cur_frm.cscript.onload = function(doc, cdt, cdn) {
|
cur_frm.cscript.onload = function(doc, cdt, cdn) {
|
||||||
if (!doc.transaction_date) doc.transaction_date = dateutil.obj_to_str(new Date())
|
if (!doc.transaction_date) doc.transaction_date = dateutil.obj_to_str(new Date())
|
||||||
@ -43,26 +68,6 @@ cur_frm.cscript.get_item_defaults = function(doc) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//======================= Refresh =====================================
|
|
||||||
cur_frm.cscript.refresh = function(doc, cdt, cdn) {
|
|
||||||
cur_frm.clear_custom_buttons();
|
|
||||||
erpnext.hide_naming_series();
|
|
||||||
|
|
||||||
if(doc.docstatus == 1 && doc.status != 'Stopped'){
|
|
||||||
cur_frm.add_custom_button("Make Supplier Quotation", cur_frm.cscript.make_supplier_quotation);
|
|
||||||
if(flt(doc.per_ordered, 2) < 100) {
|
|
||||||
cur_frm.add_custom_button('Make Purchase Order', cur_frm.cscript['Make Purchase Order']);
|
|
||||||
cur_frm.add_custom_button('Stop Purchase Request', cur_frm.cscript['Stop Purchase Request']);
|
|
||||||
}
|
|
||||||
cur_frm.add_custom_button('Send SMS', cur_frm.cscript.send_sms);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
if(doc.docstatus == 1 && doc.status == 'Stopped')
|
|
||||||
cur_frm.add_custom_button('Unstop Purchase Request', cur_frm.cscript['Unstop Purchase Request'])
|
|
||||||
}
|
|
||||||
|
|
||||||
//======================= transaction date =============================
|
//======================= transaction date =============================
|
||||||
cur_frm.cscript.transaction_date = function(doc,cdt,cdn){
|
cur_frm.cscript.transaction_date = function(doc,cdt,cdn){
|
||||||
if(doc.__islocal){
|
if(doc.__islocal){
|
||||||
|
@ -17,18 +17,16 @@
|
|||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
import webnotes
|
import webnotes
|
||||||
|
|
||||||
from webnotes.utils import cstr, date_diff, flt, get_defaults, now
|
from webnotes.utils import cstr, flt, get_defaults
|
||||||
from webnotes.model import db_exists
|
from webnotes.model.wrapper import getlist
|
||||||
from webnotes.model.doc import make_autoname
|
|
||||||
from webnotes.model.wrapper import getlist, copy_doclist
|
|
||||||
from webnotes.model.code import get_obj
|
from webnotes.model.code import get_obj
|
||||||
from webnotes import msgprint
|
from webnotes import msgprint
|
||||||
|
|
||||||
sql = webnotes.conn.sql
|
sql = webnotes.conn.sql
|
||||||
|
|
||||||
|
|
||||||
|
from controllers.buying_controller import BuyingController
|
||||||
class DocType:
|
class DocType(BuyingController):
|
||||||
def __init__(self, doc, doclist=[]):
|
def __init__(self, doc, doclist=[]):
|
||||||
self.doc = doc
|
self.doc = doc
|
||||||
self.doclist = doclist
|
self.doclist = doclist
|
||||||
@ -36,12 +34,6 @@ class DocType:
|
|||||||
self.tname = 'Purchase Request Item'
|
self.tname = 'Purchase Request Item'
|
||||||
self.fname = 'indent_details'
|
self.fname = 'indent_details'
|
||||||
|
|
||||||
# Autoname
|
|
||||||
# ---------
|
|
||||||
def autoname(self):
|
|
||||||
self.doc.name = make_autoname(self.doc.naming_series+'.#####')
|
|
||||||
|
|
||||||
|
|
||||||
def get_default_schedule_date(self):
|
def get_default_schedule_date(self):
|
||||||
get_obj(dt = 'Purchase Common').get_default_schedule_date(self)
|
get_obj(dt = 'Purchase Common').get_default_schedule_date(self)
|
||||||
|
|
||||||
@ -102,25 +94,6 @@ class DocType:
|
|||||||
def validate_fiscal_year(self):
|
def validate_fiscal_year(self):
|
||||||
get_obj(dt = 'Purchase Common').validate_fiscal_year(self.doc.fiscal_year,self.doc.transaction_date,'Purchase Request Date')
|
get_obj(dt = 'Purchase Common').validate_fiscal_year(self.doc.fiscal_year,self.doc.transaction_date,'Purchase Request Date')
|
||||||
|
|
||||||
# get item details
|
|
||||||
# ---------------------------------
|
|
||||||
def get_item_details(self, arg =''):
|
|
||||||
if arg:
|
|
||||||
return get_obj(dt='Purchase Common').get_item_details(self,arg)
|
|
||||||
else:
|
|
||||||
obj = get_obj('Purchase Common')
|
|
||||||
for doc in self.doclist:
|
|
||||||
if doc.fields.get('item_code'):
|
|
||||||
temp = {
|
|
||||||
'item_code': doc.fields.get('item_code'),
|
|
||||||
'warehouse': doc.fields.get('warehouse')
|
|
||||||
}
|
|
||||||
ret = obj.get_item_details(self, json.dumps(temp))
|
|
||||||
for r in ret:
|
|
||||||
if not doc.fields.get(r):
|
|
||||||
doc.fields[r] = ret[r]
|
|
||||||
|
|
||||||
|
|
||||||
# GET TERMS & CONDITIONS
|
# GET TERMS & CONDITIONS
|
||||||
#-----------------------------
|
#-----------------------------
|
||||||
def get_tc_details(self):
|
def get_tc_details(self):
|
||||||
@ -138,6 +111,8 @@ class DocType:
|
|||||||
# Validate
|
# Validate
|
||||||
# ---------------------
|
# ---------------------
|
||||||
def validate(self):
|
def validate(self):
|
||||||
|
super(DocType, self).validate()
|
||||||
|
|
||||||
self.validate_schedule_date()
|
self.validate_schedule_date()
|
||||||
self.validate_fiscal_year()
|
self.validate_fiscal_year()
|
||||||
|
|
||||||
|
@ -2,13 +2,14 @@
|
|||||||
{
|
{
|
||||||
"owner": "Administrator",
|
"owner": "Administrator",
|
||||||
"docstatus": 0,
|
"docstatus": 0,
|
||||||
"creation": "2012-07-03 13:29:58",
|
"creation": "2012-12-03 17:56:31",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"modified": "2012-12-03 17:10:41"
|
"modified": "2013-01-15 15:34:47"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"is_submittable": 1,
|
"autoname": "naming_series:",
|
||||||
"allow_attach": 1,
|
"allow_attach": 1,
|
||||||
|
"is_submittable": 1,
|
||||||
"allow_print": 0,
|
"allow_print": 0,
|
||||||
"search_fields": "status,transaction_date,sales_order_no",
|
"search_fields": "status,transaction_date,sales_order_no",
|
||||||
"module": "Buying",
|
"module": "Buying",
|
||||||
@ -28,6 +29,7 @@
|
|||||||
"parent": "Purchase Request",
|
"parent": "Purchase Request",
|
||||||
"read": 1,
|
"read": 1,
|
||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
|
"report": 1,
|
||||||
"parenttype": "DocType",
|
"parenttype": "DocType",
|
||||||
"parentfield": "permissions"
|
"parentfield": "permissions"
|
||||||
},
|
},
|
||||||
@ -40,7 +42,6 @@
|
|||||||
"description": "To manage multiple series please go to Setup > Manage Series",
|
"description": "To manage multiple series please go to Setup > Manage Series",
|
||||||
"no_copy": 1,
|
"no_copy": 1,
|
||||||
"oldfieldtype": "Select",
|
"oldfieldtype": "Select",
|
||||||
"colour": "White:FFF",
|
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Series",
|
"label": "Series",
|
||||||
"oldfieldname": "naming_series",
|
"oldfieldname": "naming_series",
|
||||||
@ -52,14 +53,13 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "The date at which current entry is made in system.",
|
"description": "The date at which current entry is made in system.",
|
||||||
|
"print_width": "100px",
|
||||||
"no_copy": 1,
|
"no_copy": 1,
|
||||||
"oldfieldtype": "Date",
|
"oldfieldtype": "Date",
|
||||||
"colour": "White:FFF",
|
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Transaction Date",
|
"label": "Transaction Date",
|
||||||
"oldfieldname": "transaction_date",
|
"oldfieldname": "transaction_date",
|
||||||
"width": "100px",
|
"width": "100px",
|
||||||
"trigger": "Client",
|
|
||||||
"fieldname": "transaction_date",
|
"fieldname": "transaction_date",
|
||||||
"fieldtype": "Date",
|
"fieldtype": "Date",
|
||||||
"search_index": 1,
|
"search_index": 1,
|
||||||
@ -69,7 +69,6 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"oldfieldtype": "Section Break",
|
"oldfieldtype": "Section Break",
|
||||||
"colour": "White:FFF",
|
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Items",
|
"label": "Items",
|
||||||
"fieldname": "items",
|
"fieldname": "items",
|
||||||
@ -79,7 +78,6 @@
|
|||||||
{
|
{
|
||||||
"no_copy": 0,
|
"no_copy": 0,
|
||||||
"oldfieldtype": "Table",
|
"oldfieldtype": "Table",
|
||||||
"colour": "White:FFF",
|
|
||||||
"allow_on_submit": 1,
|
"allow_on_submit": 1,
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Purchase Requisition Details",
|
"label": "Purchase Requisition Details",
|
||||||
@ -97,6 +95,7 @@
|
|||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"print_width": "50%",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"width": "50%",
|
"width": "50%",
|
||||||
"fieldname": "column_break4",
|
"fieldname": "column_break4",
|
||||||
@ -106,9 +105,9 @@
|
|||||||
{
|
{
|
||||||
"permlevel": 0,
|
"permlevel": 0,
|
||||||
"description": "One or multiple Sales Order no which generated this Purchase Requisition",
|
"description": "One or multiple Sales Order no which generated this Purchase Requisition",
|
||||||
|
"print_width": "100px",
|
||||||
"no_copy": 1,
|
"no_copy": 1,
|
||||||
"oldfieldtype": "Data",
|
"oldfieldtype": "Data",
|
||||||
"colour": "White:FFF",
|
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Sales Order No",
|
"label": "Sales Order No",
|
||||||
"oldfieldname": "sales_order_no",
|
"oldfieldname": "sales_order_no",
|
||||||
@ -118,6 +117,7 @@
|
|||||||
"options": "Sales Order"
|
"options": "Sales Order"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"print_width": "50%",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"width": "50%",
|
"width": "50%",
|
||||||
"fieldname": "column_break5",
|
"fieldname": "column_break5",
|
||||||
@ -136,7 +136,6 @@
|
|||||||
"description": "Filing in Additional Information about the Purchase Requisition will help you analyze your data better.",
|
"description": "Filing in Additional Information about the Purchase Requisition will help you analyze your data better.",
|
||||||
"default": "Give additional details about the indent.",
|
"default": "Give additional details about the indent.",
|
||||||
"oldfieldtype": "Section Break",
|
"oldfieldtype": "Section Break",
|
||||||
"colour": "White:FFF",
|
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "More Info",
|
"label": "More Info",
|
||||||
"fieldname": "more_info",
|
"fieldname": "more_info",
|
||||||
@ -144,6 +143,7 @@
|
|||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"print_width": "50%",
|
||||||
"oldfieldtype": "Column Break",
|
"oldfieldtype": "Column Break",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"width": "50%",
|
"width": "50%",
|
||||||
@ -154,9 +154,9 @@
|
|||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
"description": "Select the relevant company name if you have multiple companies",
|
"description": "Select the relevant company name if you have multiple companies",
|
||||||
|
"print_width": "150px",
|
||||||
"permlevel": 0,
|
"permlevel": 0,
|
||||||
"oldfieldtype": "Link",
|
"oldfieldtype": "Link",
|
||||||
"colour": "White:FFF",
|
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Company",
|
"label": "Company",
|
||||||
"oldfieldname": "company",
|
"oldfieldname": "company",
|
||||||
@ -170,9 +170,9 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
|
"print_width": "150px",
|
||||||
"permlevel": 0,
|
"permlevel": 0,
|
||||||
"oldfieldtype": "Select",
|
"oldfieldtype": "Select",
|
||||||
"colour": "White:FFF",
|
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Fiscal Year",
|
"label": "Fiscal Year",
|
||||||
"oldfieldname": "fiscal_year",
|
"oldfieldname": "fiscal_year",
|
||||||
@ -186,9 +186,9 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "Name of the entity who has requested for the Purchase Requisition",
|
"description": "Name of the entity who has requested for the Purchase Requisition",
|
||||||
|
"print_width": "100px",
|
||||||
"no_copy": 1,
|
"no_copy": 1,
|
||||||
"oldfieldtype": "Data",
|
"oldfieldtype": "Data",
|
||||||
"colour": "White:FFF",
|
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Requested By",
|
"label": "Requested By",
|
||||||
"oldfieldname": "requested_by",
|
"oldfieldname": "requested_by",
|
||||||
@ -202,7 +202,6 @@
|
|||||||
"description": "After cancelling the Purchase Requisition, a dialog box will ask you reason for cancellation which will be reflected in this field",
|
"description": "After cancelling the Purchase Requisition, a dialog box will ask you reason for cancellation which will be reflected in this field",
|
||||||
"no_copy": 1,
|
"no_copy": 1,
|
||||||
"oldfieldtype": "Data",
|
"oldfieldtype": "Data",
|
||||||
"colour": "White:FFF",
|
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Cancel Reason",
|
"label": "Cancel Reason",
|
||||||
"oldfieldname": "cancel_reason",
|
"oldfieldname": "cancel_reason",
|
||||||
@ -211,6 +210,7 @@
|
|||||||
"permlevel": 1
|
"permlevel": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"print_width": "50%",
|
||||||
"oldfieldtype": "Column Break",
|
"oldfieldtype": "Column Break",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"width": "50%",
|
"width": "50%",
|
||||||
@ -220,8 +220,8 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
"oldfieldtype": "Select",
|
|
||||||
"allow_on_submit": 1,
|
"allow_on_submit": 1,
|
||||||
|
"oldfieldtype": "Select",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Letter Head",
|
"label": "Letter Head",
|
||||||
"oldfieldname": "letter_head",
|
"oldfieldname": "letter_head",
|
||||||
@ -233,9 +233,9 @@
|
|||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
"permlevel": 1,
|
"permlevel": 1,
|
||||||
|
"print_width": "100px",
|
||||||
"no_copy": 1,
|
"no_copy": 1,
|
||||||
"oldfieldtype": "Select",
|
"oldfieldtype": "Select",
|
||||||
"colour": "White:FFF",
|
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Status",
|
"label": "Status",
|
||||||
"oldfieldname": "status",
|
"oldfieldname": "status",
|
||||||
@ -252,7 +252,6 @@
|
|||||||
"description": "% of materials ordered against this Purchase Requisition",
|
"description": "% of materials ordered against this Purchase Requisition",
|
||||||
"no_copy": 1,
|
"no_copy": 1,
|
||||||
"oldfieldtype": "Currency",
|
"oldfieldtype": "Currency",
|
||||||
"colour": "White:FFF",
|
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "% Ordered",
|
"label": "% Ordered",
|
||||||
"oldfieldname": "per_ordered",
|
"oldfieldname": "per_ordered",
|
||||||
@ -262,6 +261,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
|
"print_width": "150px",
|
||||||
"no_copy": 1,
|
"no_copy": 1,
|
||||||
"oldfieldtype": "Data",
|
"oldfieldtype": "Data",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
@ -275,6 +275,7 @@
|
|||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
"description": "The date at which current entry is corrected in the system.",
|
"description": "The date at which current entry is corrected in the system.",
|
||||||
|
"print_width": "100px",
|
||||||
"no_copy": 1,
|
"no_copy": 1,
|
||||||
"oldfieldtype": "Date",
|
"oldfieldtype": "Date",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
@ -287,6 +288,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 0,
|
"print_hide": 0,
|
||||||
|
"print_width": "150px",
|
||||||
"no_copy": 1,
|
"no_copy": 1,
|
||||||
"oldfieldtype": "Small Text",
|
"oldfieldtype": "Small Text",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
@ -346,22 +348,6 @@
|
|||||||
"hidden": 1,
|
"hidden": 1,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"amend": 1,
|
|
||||||
"create": 1,
|
|
||||||
"doctype": "DocPerm",
|
|
||||||
"submit": 1,
|
|
||||||
"write": 1,
|
|
||||||
"role": "Purchase User",
|
|
||||||
"cancel": 1,
|
|
||||||
"permlevel": 0,
|
|
||||||
"match": ""
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"doctype": "DocPerm",
|
|
||||||
"role": "Purchase User",
|
|
||||||
"permlevel": 1
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"amend": 0,
|
"amend": 0,
|
||||||
"create": 0,
|
"create": 0,
|
||||||
@ -421,5 +407,24 @@
|
|||||||
"role": "Material User",
|
"role": "Material User",
|
||||||
"cancel": 1,
|
"cancel": 1,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"amend": 1,
|
||||||
|
"create": 1,
|
||||||
|
"doctype": "DocPerm",
|
||||||
|
"submit": 1,
|
||||||
|
"write": 1,
|
||||||
|
"role": "Purchase User",
|
||||||
|
"cancel": 1,
|
||||||
|
"permlevel": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"amend": 0,
|
||||||
|
"create": 0,
|
||||||
|
"doctype": "DocPerm",
|
||||||
|
"submit": 0,
|
||||||
|
"role": "Purchase User",
|
||||||
|
"cancel": 0,
|
||||||
|
"permlevel": 1
|
||||||
}
|
}
|
||||||
]
|
]
|
@ -9,15 +9,15 @@
|
|||||||
{
|
{
|
||||||
"section_style": "Simple",
|
"section_style": "Simple",
|
||||||
"is_submittable": 1,
|
"is_submittable": 1,
|
||||||
|
"doctype": "DocType",
|
||||||
"search_fields": "item_code, report_date, purchase_receipt_no, delivery_note_no",
|
"search_fields": "item_code, report_date, purchase_receipt_no, delivery_note_no",
|
||||||
"module": "Buying",
|
"module": "Buying",
|
||||||
"_last_update": "1317365120",
|
|
||||||
"server_code_error": " ",
|
"server_code_error": " ",
|
||||||
"print_outline": "Yes",
|
"print_outline": "Yes",
|
||||||
"autoname": "QAI/.######",
|
"autoname": "QAI/.######",
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
"colour": "White:FFF",
|
"colour": "White:FFF",
|
||||||
"doctype": "DocType",
|
"_last_update": "1317365120",
|
||||||
"show_in_menu": 0,
|
"show_in_menu": 0,
|
||||||
"version": 38
|
"version": 38
|
||||||
},
|
},
|
||||||
@ -51,6 +51,7 @@
|
|||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"submit": 1,
|
"submit": 1,
|
||||||
"write": 1,
|
"write": 1,
|
||||||
|
"report": 1,
|
||||||
"cancel": 1,
|
"cancel": 1,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
@ -75,11 +76,11 @@
|
|||||||
"no_copy": 1,
|
"no_copy": 1,
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Naming Series",
|
"label": "Naming Series",
|
||||||
"permlevel": 0,
|
"options": "\nQAI/11-12/",
|
||||||
"fieldname": "naming_series",
|
"fieldname": "naming_series",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"options": "\nQAI/11-12/"
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"oldfieldtype": "Select",
|
"oldfieldtype": "Select",
|
||||||
@ -87,12 +88,12 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Inspection Type",
|
"label": "Inspection Type",
|
||||||
"oldfieldname": "inspection_type",
|
"oldfieldname": "inspection_type",
|
||||||
|
"permlevel": 0,
|
||||||
"trigger": "Client",
|
"trigger": "Client",
|
||||||
"fieldname": "inspection_type",
|
"fieldname": "inspection_type",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"options": "\nIncoming\nOutgoing\nIn Process",
|
"options": "\nIncoming\nOutgoing\nIn Process",
|
||||||
"permlevel": 0,
|
|
||||||
"in_filter": 1
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -161,21 +162,21 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Item Serial No",
|
"label": "Item Serial No",
|
||||||
"oldfieldname": "item_serial_no",
|
"oldfieldname": "item_serial_no",
|
||||||
"permlevel": 0,
|
"options": "Serial No",
|
||||||
"fieldname": "item_serial_no",
|
"fieldname": "item_serial_no",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"hidden": 0,
|
"hidden": 0,
|
||||||
"options": "Serial No"
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"oldfieldtype": "Link",
|
"oldfieldtype": "Link",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Batch No",
|
"label": "Batch No",
|
||||||
"oldfieldname": "batch_no",
|
"oldfieldname": "batch_no",
|
||||||
"permlevel": 0,
|
"options": "Batch",
|
||||||
"fieldname": "batch_no",
|
"fieldname": "batch_no",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"options": "Batch"
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"oldfieldtype": "Link",
|
"oldfieldtype": "Link",
|
||||||
@ -262,10 +263,10 @@
|
|||||||
"oldfieldtype": "Section Break",
|
"oldfieldtype": "Section Break",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Specification Details",
|
"label": "Specification Details",
|
||||||
"permlevel": 0,
|
"options": "Simple",
|
||||||
"fieldname": "specification_details",
|
"fieldname": "specification_details",
|
||||||
"fieldtype": "Section Break",
|
"fieldtype": "Section Break",
|
||||||
"options": "Simple"
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
@ -280,9 +281,9 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Quality Inspection Readings",
|
"label": "Quality Inspection Readings",
|
||||||
"oldfieldname": "qa_specification_details",
|
"oldfieldname": "qa_specification_details",
|
||||||
"permlevel": 0,
|
"options": "Quality Inspection Reading",
|
||||||
"fieldname": "qa_specification_details",
|
"fieldname": "qa_specification_details",
|
||||||
"fieldtype": "Table",
|
"fieldtype": "Table",
|
||||||
"options": "Quality Inspection Reading"
|
"permlevel": 0
|
||||||
}
|
}
|
||||||
]
|
]
|
@ -62,11 +62,6 @@ class DocType(TransactionBase):
|
|||||||
if not self.doc.naming_series:
|
if not self.doc.naming_series:
|
||||||
self.doc.naming_series = ''
|
self.doc.naming_series = ''
|
||||||
|
|
||||||
# create address
|
|
||||||
addr_flds = [self.doc.address_line1, self.doc.address_line2, self.doc.city, self.doc.state, self.doc.country, self.doc.pincode]
|
|
||||||
address_line = "\n".join(filter(lambda x : (x!='' and x!=None),addr_flds))
|
|
||||||
webnotes.conn.set(self.doc,'address', address_line)
|
|
||||||
|
|
||||||
# create account head
|
# create account head
|
||||||
self.create_account_head()
|
self.create_account_head()
|
||||||
|
|
||||||
@ -124,7 +119,16 @@ class DocType(TransactionBase):
|
|||||||
if not sql("select name from tabAccount where name=%s", (self.doc.name + " - " + abbr)):
|
if not sql("select name from tabAccount where name=%s", (self.doc.name + " - " + abbr)):
|
||||||
parent_account = self.get_parent_account(abbr)
|
parent_account = self.get_parent_account(abbr)
|
||||||
|
|
||||||
arg = {'account_name':self.doc.name,'parent_account': parent_account, 'group_or_ledger':'Ledger', 'company':self.doc.company,'account_type':'','tax_rate':'0','master_type':'Supplier','master_name':self.doc.name,'address':self.doc.address}
|
arg = {
|
||||||
|
'account_name': self.doc.name,
|
||||||
|
'parent_account': parent_account,
|
||||||
|
'group_or_ledger':'Ledger',
|
||||||
|
'company': self.doc.company,
|
||||||
|
'account_type': '',
|
||||||
|
'tax_rate': '0',
|
||||||
|
'master_type': 'Supplier',
|
||||||
|
'master_name': self.doc.name,
|
||||||
|
}
|
||||||
# create
|
# create
|
||||||
ac = get_obj('GL Control').add_ac(cstr(arg))
|
ac = get_obj('GL Control').add_ac(cstr(arg))
|
||||||
msgprint("Created Account Head: "+ac)
|
msgprint("Created Account Head: "+ac)
|
||||||
|
@ -7,13 +7,13 @@
|
|||||||
"modified": "2012-12-27 14:02:18"
|
"modified": "2012-12-27 14:02:18"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"autoname": "naming_series:",
|
"document_type": "Master",
|
||||||
"description": "Supplier of Goods or Services.",
|
"description": "Supplier of Goods or Services.",
|
||||||
|
"autoname": "naming_series:",
|
||||||
"allow_rename": 1,
|
"allow_rename": 1,
|
||||||
"search_fields": "supplier_name,supplier_type",
|
|
||||||
"module": "Buying",
|
"module": "Buying",
|
||||||
"doctype": "DocType",
|
"doctype": "DocType",
|
||||||
"document_type": "Master",
|
"search_fields": "supplier_name,supplier_type",
|
||||||
"name": "__common__"
|
"name": "__common__"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -60,11 +60,11 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Supplier Type",
|
"label": "Supplier Type",
|
||||||
"oldfieldname": "supplier_type",
|
"oldfieldname": "supplier_type",
|
||||||
"options": "Supplier Type",
|
"permlevel": 0,
|
||||||
"fieldname": "supplier_type",
|
"fieldname": "supplier_type",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"permlevel": 0
|
"options": "Supplier Type"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
@ -79,10 +79,10 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Series",
|
"label": "Series",
|
||||||
"oldfieldname": "naming_series",
|
"oldfieldname": "naming_series",
|
||||||
"options": "\nSUPP\nSUPP/10-11/",
|
"permlevel": 0,
|
||||||
"fieldname": "naming_series",
|
"fieldname": "naming_series",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"permlevel": 0
|
"options": "\nSUPP\nSUPP/10-11/"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"oldfieldtype": "Column Break",
|
"oldfieldtype": "Column Break",
|
||||||
@ -96,10 +96,10 @@
|
|||||||
"depends_on": "eval:doc.__islocal",
|
"depends_on": "eval:doc.__islocal",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Address Desc",
|
"label": "Address Desc",
|
||||||
"options": "<em>Addresses will appear only when you save the supplier</em>",
|
"permlevel": 0,
|
||||||
"fieldname": "address_desc",
|
"fieldname": "address_desc",
|
||||||
"fieldtype": "HTML",
|
"fieldtype": "HTML",
|
||||||
"permlevel": 0
|
"options": "<em>Addresses will appear only when you save the supplier</em>"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
@ -119,10 +119,10 @@
|
|||||||
"depends_on": "eval:doc.__islocal",
|
"depends_on": "eval:doc.__islocal",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Contact Desc",
|
"label": "Contact Desc",
|
||||||
"options": "<em>Contact Details will appear only when you save the supplier</em>",
|
"permlevel": 0,
|
||||||
"fieldname": "contact_desc",
|
"fieldname": "contact_desc",
|
||||||
"fieldtype": "HTML",
|
"fieldtype": "HTML",
|
||||||
"permlevel": 0
|
"options": "<em>Contact Details will appear only when you save the supplier</em>"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
@ -158,23 +158,23 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Company",
|
"label": "Company",
|
||||||
"oldfieldname": "company",
|
"oldfieldname": "company",
|
||||||
"permlevel": 0,
|
"options": "Company",
|
||||||
"fieldname": "company",
|
"fieldname": "company",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"search_index": 0,
|
"search_index": 0,
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"in_filter": 1,
|
"permlevel": 0,
|
||||||
"options": "Company"
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "This currency will get fetched in Purchase transactions of this supplier",
|
"description": "This currency will get fetched in Purchase transactions of this supplier",
|
||||||
"no_copy": 1,
|
"no_copy": 1,
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Default Currency",
|
"label": "Default Currency",
|
||||||
"options": "link:Currency",
|
"permlevel": 0,
|
||||||
"fieldname": "default_currency",
|
"fieldname": "default_currency",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"permlevel": 0
|
"options": "link:Currency"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "Statutory info and other general information about your Supplier",
|
"description": "Statutory info and other general information about your Supplier",
|
||||||
@ -225,14 +225,15 @@
|
|||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"submit": 0,
|
"submit": 0,
|
||||||
"write": 0,
|
"write": 0,
|
||||||
|
"report": 1,
|
||||||
"role": "Purchase Manager",
|
"role": "Purchase Manager",
|
||||||
"cancel": 0,
|
"cancel": 0,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocPerm",
|
|
||||||
"role": "Purchase Master Manager",
|
"role": "Purchase Master Manager",
|
||||||
"permlevel": 1
|
"permlevel": 1,
|
||||||
|
"doctype": "DocPerm"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"amend": 0,
|
"amend": 0,
|
||||||
@ -240,6 +241,7 @@
|
|||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"submit": 0,
|
"submit": 0,
|
||||||
"write": 1,
|
"write": 1,
|
||||||
|
"report": 1,
|
||||||
"role": "Purchase Master Manager",
|
"role": "Purchase Master Manager",
|
||||||
"cancel": 1,
|
"cancel": 1,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
|
@ -23,6 +23,24 @@ cur_frm.cscript.other_fname = "purchase_tax_details";
|
|||||||
wn.require('app/accounts/doctype/purchase_taxes_and_charges_master/purchase_taxes_and_charges_master.js');
|
wn.require('app/accounts/doctype/purchase_taxes_and_charges_master/purchase_taxes_and_charges_master.js');
|
||||||
wn.require('app/buying/doctype/purchase_common/purchase_common.js');
|
wn.require('app/buying/doctype/purchase_common/purchase_common.js');
|
||||||
|
|
||||||
|
erpnext.buying.SupplierQuotationController = erpnext.buying.BuyingController.extend({
|
||||||
|
refresh: function() {
|
||||||
|
this._super();
|
||||||
|
|
||||||
|
cur_frm.cscript.load_taxes(this.frm.doc);
|
||||||
|
|
||||||
|
if (this.frm.doc.docstatus === 1) {
|
||||||
|
cur_frm.add_custom_button("Make Purchase Order", cur_frm.cscript.make_purchase_order);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
var new_cscript = new erpnext.buying.SupplierQuotationController({frm: cur_frm});
|
||||||
|
|
||||||
|
// for backward compatibility: combine new and previous states
|
||||||
|
$.extend(cur_frm.cscript, new_cscript);
|
||||||
|
|
||||||
|
|
||||||
cur_frm.cscript.onload = function(doc, dt, dn) {
|
cur_frm.cscript.onload = function(doc, dt, dn) {
|
||||||
// set missing values in parent doc
|
// set missing values in parent doc
|
||||||
set_missing_values(doc, {
|
set_missing_values(doc, {
|
||||||
@ -35,19 +53,6 @@ cur_frm.cscript.onload = function(doc, dt, dn) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
cur_frm.cscript.refresh = function(doc, dt, dn) {
|
|
||||||
erpnext.hide_naming_series();
|
|
||||||
cur_frm.cscript.dynamic_label(doc, dt, dn);
|
|
||||||
cur_frm.cscript.load_taxes(doc, dt, dn);
|
|
||||||
|
|
||||||
cur_frm.cscript.toggle_contact_section(doc);
|
|
||||||
|
|
||||||
cur_frm.clear_custom_buttons();
|
|
||||||
if (doc.docstatus === 1) {
|
|
||||||
cur_frm.add_custom_button("Make Purchase Order", cur_frm.cscript.make_purchase_order);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
cur_frm.cscript.make_purchase_order = function() {
|
cur_frm.cscript.make_purchase_order = function() {
|
||||||
var new_po_name = wn.model.make_new_doc_and_get_name("Purchase Order");
|
var new_po_name = wn.model.make_new_doc_and_get_name("Purchase Order");
|
||||||
$c("dt_map", {
|
$c("dt_map", {
|
||||||
|
@ -17,19 +17,17 @@
|
|||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
import webnotes
|
import webnotes
|
||||||
from webnotes.model.code import get_obj
|
from webnotes.model.code import get_obj
|
||||||
from utilities.transaction_base import TransactionBase
|
from setup.utils import get_company_currency
|
||||||
|
|
||||||
class DocType(TransactionBase):
|
from controllers.buying_controller import BuyingController
|
||||||
|
class DocType(BuyingController):
|
||||||
def __init__(self, doc, doclist=None):
|
def __init__(self, doc, doclist=None):
|
||||||
self.doc, self.doclist = doc, doclist or []
|
self.doc, self.doclist = doc, doclist or []
|
||||||
self.tname, self.fname = "Supplier Quotation Item", "quotation_items"
|
self.tname, self.fname = "Supplier Quotation Item", "quotation_items"
|
||||||
|
|
||||||
def autoname(self):
|
|
||||||
"""autoname based on naming series value"""
|
|
||||||
from webnotes.model.doc import make_autoname
|
|
||||||
self.doc.name = make_autoname(self.doc.naming_series + ".#####")
|
|
||||||
|
|
||||||
def validate(self):
|
def validate(self):
|
||||||
|
super(DocType, self).validate()
|
||||||
|
|
||||||
if not self.doc.status:
|
if not self.doc.status:
|
||||||
self.doc.status = "Draft"
|
self.doc.status = "Draft"
|
||||||
|
|
||||||
@ -53,22 +51,6 @@ class DocType(TransactionBase):
|
|||||||
def on_trash(self):
|
def on_trash(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def get_item_details(self, args=None):
|
|
||||||
if args:
|
|
||||||
return get_obj(dt='Purchase Common').get_item_details(self, args)
|
|
||||||
else:
|
|
||||||
obj = get_obj('Purchase Common')
|
|
||||||
for doc in self.doclist:
|
|
||||||
if doc.fields.get('item_code'):
|
|
||||||
temp = {
|
|
||||||
'item_code': doc.fields.get('item_code'),
|
|
||||||
'warehouse': doc.fields.get('warehouse')
|
|
||||||
}
|
|
||||||
ret = obj.get_item_details(self, json.dumps(temp))
|
|
||||||
for r in ret:
|
|
||||||
if not doc.fields.get(r):
|
|
||||||
doc.fields[r] = ret[r]
|
|
||||||
|
|
||||||
def get_indent_details(self):
|
def get_indent_details(self):
|
||||||
if self.doc.indent_no:
|
if self.doc.indent_no:
|
||||||
mapper = get_obj("DocType Mapper", "Purchase Request-Supplier Quotation")
|
mapper = get_obj("DocType Mapper", "Purchase Request-Supplier Quotation")
|
||||||
@ -96,12 +78,11 @@ class DocType(TransactionBase):
|
|||||||
pc = get_obj('Purchase Common')
|
pc = get_obj('Purchase Common')
|
||||||
pc.validate_mandatory(self)
|
pc.validate_mandatory(self)
|
||||||
pc.validate_for_items(self)
|
pc.validate_for_items(self)
|
||||||
pc.validate_conversion_rate(self)
|
|
||||||
pc.get_prevdoc_date(self)
|
pc.get_prevdoc_date(self)
|
||||||
pc.validate_reference_value(self)
|
pc.validate_reference_value(self)
|
||||||
|
|
||||||
def set_in_words(self):
|
def set_in_words(self):
|
||||||
pc = get_obj('Purchase Common')
|
pc = get_obj('Purchase Common')
|
||||||
company_currency = TransactionBase().get_company_currency(self.doc.company)
|
company_currency = get_company_currency(self.doc.company)
|
||||||
self.doc.in_words = pc.get_total_in_words(company_currency, self.doc.grand_total)
|
self.doc.in_words = pc.get_total_in_words(company_currency, self.doc.grand_total)
|
||||||
self.doc.in_words_import = pc.get_total_in_words(self.doc.currency, self.doc.grand_total_import)
|
self.doc.in_words_import = pc.get_total_in_words(self.doc.currency, self.doc.grand_total_import)
|
||||||
|
@ -2,18 +2,19 @@
|
|||||||
{
|
{
|
||||||
"owner": "Administrator",
|
"owner": "Administrator",
|
||||||
"docstatus": 0,
|
"docstatus": 0,
|
||||||
"creation": "2012-08-06 11:15:46",
|
"creation": "2013-01-18 12:47:01",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"modified": "2012-12-10 18:30:00"
|
"modified": "2013-01-18 13:25:50"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"document_type": "Transaction",
|
||||||
"is_submittable": 1,
|
"is_submittable": 1,
|
||||||
"allow_attach": 1,
|
"allow_attach": 1,
|
||||||
"search_fields": "status, transaction_date, supplier,grand_total",
|
"autoname": "naming_series:",
|
||||||
"module": "Buying",
|
"module": "Buying",
|
||||||
"doctype": "DocType",
|
"doctype": "DocType",
|
||||||
"read_only_onload": 1,
|
"read_only_onload": 1,
|
||||||
"document_type": "Transaction",
|
"search_fields": "status, transaction_date, supplier,grand_total",
|
||||||
"name": "__common__"
|
"name": "__common__"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -35,45 +36,34 @@
|
|||||||
"name": "Supplier Quotation",
|
"name": "Supplier Quotation",
|
||||||
"doctype": "DocType"
|
"doctype": "DocType"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"oldfieldtype": "Column Break",
|
|
||||||
"doctype": "DocField",
|
|
||||||
"width": "50%",
|
|
||||||
"fieldname": "column_break0",
|
|
||||||
"fieldtype": "Column Break",
|
|
||||||
"permlevel": 0
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
"description": "To manage multiple series please go to Setup > Manage Series",
|
"description": "To manage multiple series please go to Setup > Manage Series",
|
||||||
"no_copy": 1,
|
"no_copy": 1,
|
||||||
"oldfieldtype": "Select",
|
"oldfieldtype": "Select",
|
||||||
"colour": "White:FFF",
|
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Series",
|
"label": "Series",
|
||||||
"oldfieldname": "naming_series",
|
"oldfieldname": "naming_series",
|
||||||
"permlevel": 0,
|
"options": "SQTN",
|
||||||
"fieldname": "naming_series",
|
"fieldname": "naming_series",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"options": "SQTN"
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
"description": "Supplier (vendor) name as entered in supplier master",
|
"description": "Supplier (vendor) name as entered in supplier master",
|
||||||
"oldfieldtype": "Link",
|
"oldfieldtype": "Link",
|
||||||
"colour": "White:FFF",
|
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Supplier",
|
"label": "Supplier",
|
||||||
"oldfieldname": "supplier",
|
"oldfieldname": "supplier",
|
||||||
"permlevel": 0,
|
"permlevel": 0,
|
||||||
"trigger": "Client",
|
|
||||||
"fieldname": "supplier",
|
"fieldname": "supplier",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"search_index": 1,
|
"search_index": 1,
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"in_filter": 1,
|
"options": "Supplier",
|
||||||
"options": "Supplier"
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
@ -118,6 +108,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 0,
|
"print_hide": 0,
|
||||||
|
"print_width": "50%",
|
||||||
"oldfieldtype": "Column Break",
|
"oldfieldtype": "Column Break",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"width": "50%",
|
"width": "50%",
|
||||||
@ -128,21 +119,18 @@
|
|||||||
{
|
{
|
||||||
"description": "The date at which current entry is made in system.",
|
"description": "The date at which current entry is made in system.",
|
||||||
"oldfieldtype": "Date",
|
"oldfieldtype": "Date",
|
||||||
"colour": "White:FFF",
|
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Quotation Date",
|
"label": "Quotation Date",
|
||||||
"oldfieldname": "transaction_date",
|
"oldfieldname": "transaction_date",
|
||||||
"trigger": "Client",
|
|
||||||
"fieldname": "transaction_date",
|
"fieldname": "transaction_date",
|
||||||
"fieldtype": "Date",
|
"fieldtype": "Date",
|
||||||
"search_index": 1,
|
"search_index": 1,
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"in_filter": 1,
|
"permlevel": 0,
|
||||||
"permlevel": 0
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"oldfieldtype": "Section Break",
|
"oldfieldtype": "Section Break",
|
||||||
"colour": "White:FFF",
|
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Items",
|
"label": "Items",
|
||||||
"fieldname": "items",
|
"fieldname": "items",
|
||||||
@ -156,62 +144,62 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Quotation Items",
|
"label": "Quotation Items",
|
||||||
"oldfieldname": "po_details",
|
"oldfieldname": "po_details",
|
||||||
"options": "Supplier Quotation Item",
|
"permlevel": 0,
|
||||||
"fieldname": "quotation_items",
|
"fieldname": "quotation_items",
|
||||||
"fieldtype": "Table",
|
"fieldtype": "Table",
|
||||||
"permlevel": 0
|
"options": "Supplier Quotation Item"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"options": "Simple",
|
"permlevel": 0,
|
||||||
"fieldname": "section_break0",
|
"fieldname": "section_break0",
|
||||||
"fieldtype": "Section Break",
|
"fieldtype": "Section Break",
|
||||||
"permlevel": 0
|
"options": "Simple"
|
||||||
},
|
|
||||||
{
|
|
||||||
"doctype": "DocField",
|
|
||||||
"width": "50%",
|
|
||||||
"fieldname": "column_break2",
|
|
||||||
"fieldtype": "Column Break",
|
|
||||||
"permlevel": 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"print_hide": 1,
|
|
||||||
"no_copy": 1,
|
|
||||||
"oldfieldtype": "Currency",
|
|
||||||
"doctype": "DocField",
|
|
||||||
"label": "Net Total*",
|
|
||||||
"oldfieldname": "net_total",
|
|
||||||
"fieldname": "net_total",
|
|
||||||
"fieldtype": "Currency",
|
|
||||||
"reqd": 0,
|
|
||||||
"permlevel": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"print_hide": 1,
|
|
||||||
"no_copy": 0,
|
|
||||||
"oldfieldtype": "Currency",
|
|
||||||
"doctype": "DocField",
|
|
||||||
"label": "Net Total (Import)",
|
|
||||||
"oldfieldname": "net_total_import",
|
|
||||||
"fieldname": "net_total_import",
|
|
||||||
"fieldtype": "Currency",
|
|
||||||
"permlevel": 1
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"oldfieldtype": "Button",
|
"oldfieldtype": "Button",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Re-Calculate Values",
|
"label": "Re-Calculate Values",
|
||||||
"trigger": "Client",
|
|
||||||
"fieldname": "recalculate_values",
|
"fieldname": "recalculate_values",
|
||||||
"fieldtype": "Button",
|
"fieldtype": "Button",
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"width": "50%",
|
"permlevel": 0,
|
||||||
"fieldname": "column_break3",
|
"fieldname": "section_break_14",
|
||||||
"fieldtype": "Column Break",
|
"fieldtype": "Section Break",
|
||||||
|
"options": "Simple"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"print_hide": 1,
|
||||||
|
"description": "You can make a purchase order from multiple Purchase Requests. Select Purchase Requests one by one and click on the button below.",
|
||||||
|
"no_copy": 1,
|
||||||
|
"oldfieldtype": "Link",
|
||||||
|
"doctype": "DocField",
|
||||||
|
"label": "Select Purchase Request",
|
||||||
|
"oldfieldname": "indent_no",
|
||||||
|
"options": "Purchase Request",
|
||||||
|
"fieldname": "indent_no",
|
||||||
|
"fieldtype": "Link",
|
||||||
|
"hidden": 0,
|
||||||
|
"permlevel": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"oldfieldtype": "Button",
|
||||||
|
"doctype": "DocField",
|
||||||
|
"label": "Get Items",
|
||||||
|
"permlevel": 0,
|
||||||
|
"fieldname": "get_items",
|
||||||
|
"fieldtype": "Button",
|
||||||
|
"hidden": 0,
|
||||||
|
"options": "get_indent_details"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"doctype": "DocField",
|
||||||
|
"label": "Currency & Price List",
|
||||||
|
"fieldname": "currency_price_list",
|
||||||
|
"fieldtype": "Section Break",
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -219,27 +207,24 @@
|
|||||||
"description": "Supplier's currency",
|
"description": "Supplier's currency",
|
||||||
"no_copy": 0,
|
"no_copy": 0,
|
||||||
"oldfieldtype": "Select",
|
"oldfieldtype": "Select",
|
||||||
"colour": "White:FFF",
|
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Currency",
|
"label": "Currency",
|
||||||
"oldfieldname": "currency",
|
"oldfieldname": "currency",
|
||||||
"permlevel": 0,
|
"options": "link:Currency",
|
||||||
"fieldname": "currency",
|
"fieldname": "currency",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"options": "link:Currency"
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
"description": "Rate at which supplier's currency is converted to company's base currency",
|
"description": "Rate at which supplier's currency is converted to company's base currency",
|
||||||
"no_copy": 1,
|
"no_copy": 1,
|
||||||
"oldfieldtype": "Currency",
|
"oldfieldtype": "Currency",
|
||||||
"colour": "White:FFF",
|
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Conversion Rate",
|
"label": "Exchange Rate",
|
||||||
"oldfieldname": "conversion_rate",
|
"oldfieldname": "conversion_rate",
|
||||||
"default": "1",
|
"default": "1",
|
||||||
"trigger": "Client",
|
|
||||||
"fieldname": "conversion_rate",
|
"fieldname": "conversion_rate",
|
||||||
"fieldtype": "Currency",
|
"fieldtype": "Currency",
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
@ -247,33 +232,44 @@
|
|||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_width": "50%",
|
||||||
"description": "You can make a purchase order from multiple Purchase Requests. Select Purchase Requests one by one and click on the button below.",
|
|
||||||
"no_copy": 1,
|
|
||||||
"oldfieldtype": "Link",
|
|
||||||
"colour": "White:FFF",
|
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Select Purchase Request",
|
"width": "50%",
|
||||||
"oldfieldname": "indent_no",
|
"fieldname": "cb_price_list",
|
||||||
"permlevel": 0,
|
"fieldtype": "Column Break",
|
||||||
"fieldname": "indent_no",
|
"permlevel": 0
|
||||||
"fieldtype": "Link",
|
|
||||||
"hidden": 0,
|
|
||||||
"options": "Purchase Request"
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"oldfieldtype": "Button",
|
"print_hide": 1,
|
||||||
|
"description": "Consider this Price List for fetching rate. (only which have \"For Buying\" as checked)",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Get Items",
|
"label": "Price List",
|
||||||
"options": "get_indent_details",
|
"permlevel": 0,
|
||||||
"fieldname": "get_items",
|
"fieldname": "price_list_name",
|
||||||
"fieldtype": "Button",
|
"fieldtype": "Link",
|
||||||
"hidden": 0,
|
"options": "Price List"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"print_hide": 1,
|
||||||
|
"depends_on": "price_list_name",
|
||||||
|
"doctype": "DocField",
|
||||||
|
"label": "Price List Currency",
|
||||||
|
"permlevel": 0,
|
||||||
|
"fieldname": "price_list_currency",
|
||||||
|
"fieldtype": "Link",
|
||||||
|
"options": "Currency"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"print_hide": 1,
|
||||||
|
"depends_on": "price_list_name",
|
||||||
|
"doctype": "DocField",
|
||||||
|
"label": "Price List Exchange Rate",
|
||||||
|
"fieldname": "plc_conversion_rate",
|
||||||
|
"fieldtype": "Float",
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"oldfieldtype": "Section Break",
|
"oldfieldtype": "Section Break",
|
||||||
"colour": "White:FFF",
|
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Taxes",
|
"label": "Taxes",
|
||||||
"fieldname": "taxes",
|
"fieldname": "taxes",
|
||||||
@ -285,7 +281,6 @@
|
|||||||
"description": "If you have created a standard template in Purchase Taxes and Charges Master, select one and click on the button below.",
|
"description": "If you have created a standard template in Purchase Taxes and Charges Master, select one and click on the button below.",
|
||||||
"no_copy": 1,
|
"no_copy": 1,
|
||||||
"oldfieldtype": "Link",
|
"oldfieldtype": "Link",
|
||||||
"colour": "White:FFF",
|
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Purchase Taxes and Charges",
|
"label": "Purchase Taxes and Charges",
|
||||||
"oldfieldname": "purchase_other_charges",
|
"oldfieldname": "purchase_other_charges",
|
||||||
@ -299,10 +294,10 @@
|
|||||||
"oldfieldtype": "Button",
|
"oldfieldtype": "Button",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Get Tax Detail",
|
"label": "Get Tax Detail",
|
||||||
"options": "get_purchase_tax_details",
|
"permlevel": 0,
|
||||||
"fieldname": "get_tax_detail",
|
"fieldname": "get_tax_detail",
|
||||||
"fieldtype": "Button",
|
"fieldtype": "Button",
|
||||||
"permlevel": 0
|
"options": "get_purchase_tax_details"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"no_copy": 0,
|
"no_copy": 0,
|
||||||
@ -310,17 +305,16 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Purchase Taxes and Charges",
|
"label": "Purchase Taxes and Charges",
|
||||||
"oldfieldname": "purchase_tax_details",
|
"oldfieldname": "purchase_tax_details",
|
||||||
"options": "Purchase Taxes and Charges",
|
"permlevel": 0,
|
||||||
"fieldname": "purchase_tax_details",
|
"fieldname": "purchase_tax_details",
|
||||||
"fieldtype": "Table",
|
"fieldtype": "Table",
|
||||||
"permlevel": 0
|
"options": "Purchase Taxes and Charges"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
"oldfieldtype": "Button",
|
"oldfieldtype": "Button",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Calculate Tax",
|
"label": "Calculate Tax",
|
||||||
"trigger": "Client",
|
|
||||||
"fieldname": "calculate_tax",
|
"fieldname": "calculate_tax",
|
||||||
"fieldtype": "Button",
|
"fieldtype": "Button",
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
@ -335,112 +329,25 @@
|
|||||||
"fieldtype": "HTML",
|
"fieldtype": "HTML",
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"print_hide": 1,
|
|
||||||
"no_copy": 1,
|
|
||||||
"oldfieldtype": "Currency",
|
|
||||||
"doctype": "DocField",
|
|
||||||
"label": "Total Tax*",
|
|
||||||
"oldfieldname": "total_tax",
|
|
||||||
"fieldname": "total_tax",
|
|
||||||
"fieldtype": "Currency",
|
|
||||||
"permlevel": 1
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"oldfieldtype": "Section Break",
|
"oldfieldtype": "Section Break",
|
||||||
"colour": "White:FFF",
|
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Totals",
|
"label": "Totals",
|
||||||
"fieldname": "totals",
|
"fieldname": "totals",
|
||||||
"fieldtype": "Section Break",
|
"fieldtype": "Section Break",
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"print_hide": 1,
|
|
||||||
"no_copy": 1,
|
|
||||||
"oldfieldtype": "Currency",
|
|
||||||
"doctype": "DocField",
|
|
||||||
"label": "Grand Total",
|
|
||||||
"oldfieldname": "grand_total",
|
|
||||||
"fieldname": "grand_total",
|
|
||||||
"fieldtype": "Currency",
|
|
||||||
"permlevel": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"print_hide": 1,
|
|
||||||
"oldfieldtype": "Currency",
|
|
||||||
"doctype": "DocField",
|
|
||||||
"label": "Rounded Total",
|
|
||||||
"oldfieldname": "rounded_total",
|
|
||||||
"fieldname": "rounded_total",
|
|
||||||
"fieldtype": "Currency",
|
|
||||||
"permlevel": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"print_hide": 1,
|
|
||||||
"description": "In Words will be visible once you save the Purchase Order.",
|
|
||||||
"oldfieldtype": "Data",
|
|
||||||
"colour": "White:FFF",
|
|
||||||
"doctype": "DocField",
|
|
||||||
"label": "In Words",
|
|
||||||
"oldfieldname": "in_words",
|
|
||||||
"fieldname": "in_words",
|
|
||||||
"fieldtype": "Data",
|
|
||||||
"permlevel": 1
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
"no_copy": 0,
|
"no_copy": 0,
|
||||||
"oldfieldtype": "Currency",
|
"oldfieldtype": "Currency",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Taxes and Charges Added",
|
"label": "Net Total (Import)",
|
||||||
"oldfieldname": "other_charges_added",
|
"oldfieldname": "net_total_import",
|
||||||
"fieldname": "other_charges_added",
|
"fieldname": "net_total_import",
|
||||||
"fieldtype": "Currency",
|
"fieldtype": "Currency",
|
||||||
"permlevel": 1
|
"permlevel": 1
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"print_hide": 1,
|
|
||||||
"no_copy": 0,
|
|
||||||
"oldfieldtype": "Currency",
|
|
||||||
"doctype": "DocField",
|
|
||||||
"label": "Taxes and Charges Deducted",
|
|
||||||
"oldfieldname": "other_charges_deducted",
|
|
||||||
"fieldname": "other_charges_deducted",
|
|
||||||
"fieldtype": "Currency",
|
|
||||||
"permlevel": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"print_hide": 0,
|
|
||||||
"oldfieldtype": "Column Break",
|
|
||||||
"doctype": "DocField",
|
|
||||||
"fieldname": "column_break4",
|
|
||||||
"fieldtype": "Column Break",
|
|
||||||
"permlevel": 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"print_hide": 1,
|
|
||||||
"no_copy": 0,
|
|
||||||
"oldfieldtype": "Currency",
|
|
||||||
"doctype": "DocField",
|
|
||||||
"label": "Grand Total (Import)",
|
|
||||||
"oldfieldname": "grand_total_import",
|
|
||||||
"fieldname": "grand_total_import",
|
|
||||||
"fieldtype": "Currency",
|
|
||||||
"permlevel": 1,
|
|
||||||
"report_hide": 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"print_hide": 1,
|
|
||||||
"oldfieldtype": "Data",
|
|
||||||
"colour": "White:FFF",
|
|
||||||
"doctype": "DocField",
|
|
||||||
"label": "In Words(Import)",
|
|
||||||
"oldfieldname": "in_words_import",
|
|
||||||
"fieldname": "in_words_import",
|
|
||||||
"fieldtype": "Data",
|
|
||||||
"permlevel": 1
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
"no_copy": 0,
|
"no_copy": 0,
|
||||||
@ -465,6 +372,113 @@
|
|||||||
"permlevel": 1,
|
"permlevel": 1,
|
||||||
"report_hide": 0
|
"report_hide": 0
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"print_hide": 1,
|
||||||
|
"no_copy": 0,
|
||||||
|
"oldfieldtype": "Currency",
|
||||||
|
"doctype": "DocField",
|
||||||
|
"label": "Grand Total (Import)",
|
||||||
|
"oldfieldname": "grand_total_import",
|
||||||
|
"fieldname": "grand_total_import",
|
||||||
|
"fieldtype": "Currency",
|
||||||
|
"permlevel": 1,
|
||||||
|
"report_hide": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"print_hide": 1,
|
||||||
|
"oldfieldtype": "Data",
|
||||||
|
"doctype": "DocField",
|
||||||
|
"label": "In Words(Import)",
|
||||||
|
"oldfieldname": "in_words_import",
|
||||||
|
"fieldname": "in_words_import",
|
||||||
|
"fieldtype": "Data",
|
||||||
|
"permlevel": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"print_hide": 0,
|
||||||
|
"oldfieldtype": "Column Break",
|
||||||
|
"doctype": "DocField",
|
||||||
|
"fieldname": "column_break4",
|
||||||
|
"fieldtype": "Column Break",
|
||||||
|
"permlevel": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"print_hide": 1,
|
||||||
|
"no_copy": 1,
|
||||||
|
"oldfieldtype": "Currency",
|
||||||
|
"doctype": "DocField",
|
||||||
|
"label": "Net Total*",
|
||||||
|
"oldfieldname": "net_total",
|
||||||
|
"fieldname": "net_total",
|
||||||
|
"fieldtype": "Currency",
|
||||||
|
"reqd": 0,
|
||||||
|
"permlevel": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"print_hide": 1,
|
||||||
|
"no_copy": 0,
|
||||||
|
"oldfieldtype": "Currency",
|
||||||
|
"doctype": "DocField",
|
||||||
|
"label": "Taxes and Charges Added",
|
||||||
|
"oldfieldname": "other_charges_added",
|
||||||
|
"fieldname": "other_charges_added",
|
||||||
|
"fieldtype": "Currency",
|
||||||
|
"permlevel": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"print_hide": 1,
|
||||||
|
"no_copy": 0,
|
||||||
|
"oldfieldtype": "Currency",
|
||||||
|
"doctype": "DocField",
|
||||||
|
"label": "Taxes and Charges Deducted",
|
||||||
|
"oldfieldname": "other_charges_deducted",
|
||||||
|
"fieldname": "other_charges_deducted",
|
||||||
|
"fieldtype": "Currency",
|
||||||
|
"permlevel": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"print_hide": 1,
|
||||||
|
"no_copy": 1,
|
||||||
|
"oldfieldtype": "Currency",
|
||||||
|
"doctype": "DocField",
|
||||||
|
"label": "Total Tax*",
|
||||||
|
"oldfieldname": "total_tax",
|
||||||
|
"fieldname": "total_tax",
|
||||||
|
"fieldtype": "Currency",
|
||||||
|
"permlevel": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"print_hide": 1,
|
||||||
|
"no_copy": 1,
|
||||||
|
"oldfieldtype": "Currency",
|
||||||
|
"doctype": "DocField",
|
||||||
|
"label": "Grand Total",
|
||||||
|
"oldfieldname": "grand_total",
|
||||||
|
"fieldname": "grand_total",
|
||||||
|
"fieldtype": "Currency",
|
||||||
|
"permlevel": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"print_hide": 1,
|
||||||
|
"oldfieldtype": "Currency",
|
||||||
|
"doctype": "DocField",
|
||||||
|
"label": "Rounded Total",
|
||||||
|
"oldfieldname": "rounded_total",
|
||||||
|
"fieldname": "rounded_total",
|
||||||
|
"fieldtype": "Currency",
|
||||||
|
"permlevel": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"print_hide": 1,
|
||||||
|
"description": "In Words will be visible once you save the Purchase Order.",
|
||||||
|
"oldfieldtype": "Data",
|
||||||
|
"doctype": "DocField",
|
||||||
|
"label": "In Words",
|
||||||
|
"oldfieldname": "in_words",
|
||||||
|
"fieldname": "in_words",
|
||||||
|
"fieldtype": "Data",
|
||||||
|
"permlevel": 1
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"oldfieldtype": "Section Break",
|
"oldfieldtype": "Section Break",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
@ -475,15 +489,15 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
"allow_on_submit": 1,
|
|
||||||
"oldfieldtype": "Select",
|
"oldfieldtype": "Select",
|
||||||
|
"allow_on_submit": 1,
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Letter Head",
|
"label": "Letter Head",
|
||||||
"oldfieldname": "letter_head",
|
"oldfieldname": "letter_head",
|
||||||
"options": "link:Letter Head",
|
"permlevel": 0,
|
||||||
"fieldname": "letter_head",
|
"fieldname": "letter_head",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"permlevel": 0
|
"options": "link:Letter Head"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
@ -491,29 +505,29 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Select Terms and Conditions",
|
"label": "Select Terms and Conditions",
|
||||||
"oldfieldname": "tc_name",
|
"oldfieldname": "tc_name",
|
||||||
"options": "Terms and Conditions",
|
"permlevel": 0,
|
||||||
"fieldname": "tc_name",
|
"fieldname": "tc_name",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"permlevel": 0
|
"options": "Terms and Conditions"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"oldfieldtype": "Button",
|
"oldfieldtype": "Button",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Get Terms and Conditions",
|
"label": "Get Terms and Conditions",
|
||||||
"options": "get_tc_details",
|
"permlevel": 0,
|
||||||
"fieldname": "get_terms",
|
"fieldname": "get_terms",
|
||||||
"fieldtype": "Button",
|
"fieldtype": "Button",
|
||||||
"permlevel": 0
|
"options": "get_tc_details"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
"oldfieldtype": "HTML",
|
"oldfieldtype": "HTML",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Terms and Conditions HTML",
|
"label": "Terms and Conditions HTML",
|
||||||
"options": "You can add Terms and Notes that will be printed in the Transaction",
|
"permlevel": 0,
|
||||||
"fieldname": "terms_html",
|
"fieldname": "terms_html",
|
||||||
"fieldtype": "HTML",
|
"fieldtype": "HTML",
|
||||||
"permlevel": 0
|
"options": "You can add Terms and Notes that will be printed in the Transaction"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"oldfieldtype": "Text Editor",
|
"oldfieldtype": "Text Editor",
|
||||||
@ -535,20 +549,20 @@
|
|||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Supplier Address",
|
"label": "Supplier Address",
|
||||||
"options": "Address",
|
"permlevel": 0,
|
||||||
"fieldname": "supplier_address",
|
"fieldname": "supplier_address",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"permlevel": 0,
|
"options": "Address",
|
||||||
"in_filter": 1
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Contact Person",
|
"label": "Contact Person",
|
||||||
"options": "Contact",
|
"permlevel": 0,
|
||||||
"fieldname": "contact_person",
|
"fieldname": "contact_person",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"permlevel": 0,
|
"options": "Contact",
|
||||||
"in_filter": 1
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -563,7 +577,6 @@
|
|||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
"no_copy": 1,
|
"no_copy": 1,
|
||||||
"oldfieldtype": "Select",
|
"oldfieldtype": "Select",
|
||||||
"colour": "White:FFF",
|
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Status",
|
"label": "Status",
|
||||||
"oldfieldname": "status",
|
"oldfieldname": "status",
|
||||||
@ -580,10 +593,10 @@
|
|||||||
"default": "No",
|
"default": "No",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Is Subcontracted",
|
"label": "Is Subcontracted",
|
||||||
"options": "\nYes\nNo",
|
"permlevel": 0,
|
||||||
"fieldname": "is_subcontracted",
|
"fieldname": "is_subcontracted",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"permlevel": 0
|
"options": "\nYes\nNo"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
@ -616,7 +629,6 @@
|
|||||||
"description": "Select the relevant company name if you have multiple companies",
|
"description": "Select the relevant company name if you have multiple companies",
|
||||||
"no_copy": 0,
|
"no_copy": 0,
|
||||||
"oldfieldtype": "Link",
|
"oldfieldtype": "Link",
|
||||||
"colour": "White:FFF",
|
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Company",
|
"label": "Company",
|
||||||
"oldfieldname": "company",
|
"oldfieldname": "company",
|
||||||
@ -625,8 +637,8 @@
|
|||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"search_index": 1,
|
"search_index": 1,
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"in_filter": 1,
|
"options": "Company",
|
||||||
"options": "Company"
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
@ -647,19 +659,19 @@
|
|||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
"no_copy": 1,
|
"no_copy": 1,
|
||||||
"oldfieldtype": "Link",
|
"oldfieldtype": "Link",
|
||||||
"colour": "White:FFF",
|
|
||||||
"allow_on_submit": 1,
|
"allow_on_submit": 1,
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Select Print Heading",
|
"label": "Select Print Heading",
|
||||||
"oldfieldname": "select_print_heading",
|
"oldfieldname": "select_print_heading",
|
||||||
"permlevel": 0,
|
"options": "Print Heading",
|
||||||
"fieldname": "select_print_heading",
|
"fieldname": "select_print_heading",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"options": "Print Heading",
|
"permlevel": 0,
|
||||||
"report_hide": 1
|
"report_hide": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
|
"print_width": "50%",
|
||||||
"oldfieldtype": "Column Break",
|
"oldfieldtype": "Column Break",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"width": "50%",
|
"width": "50%",
|
||||||
@ -671,7 +683,6 @@
|
|||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
"no_copy": 1,
|
"no_copy": 1,
|
||||||
"oldfieldtype": "Data",
|
"oldfieldtype": "Data",
|
||||||
"colour": "White:FFF",
|
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Cancel Reason",
|
"label": "Cancel Reason",
|
||||||
"oldfieldname": "cancel_reason",
|
"oldfieldname": "cancel_reason",
|
||||||
@ -697,6 +708,7 @@
|
|||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"submit": 1,
|
"submit": 1,
|
||||||
"write": 1,
|
"write": 1,
|
||||||
|
"report": 1,
|
||||||
"role": "Manufacturing Manager",
|
"role": "Manufacturing Manager",
|
||||||
"cancel": 1,
|
"cancel": 1,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
@ -707,6 +719,7 @@
|
|||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"submit": 1,
|
"submit": 1,
|
||||||
"write": 1,
|
"write": 1,
|
||||||
|
"report": 1,
|
||||||
"role": "Purchase Manager",
|
"role": "Purchase Manager",
|
||||||
"cancel": 1,
|
"cancel": 1,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
@ -717,6 +730,7 @@
|
|||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"submit": 0,
|
"submit": 0,
|
||||||
"write": 1,
|
"write": 1,
|
||||||
|
"report": 1,
|
||||||
"role": "Purchase User",
|
"role": "Purchase User",
|
||||||
"cancel": 0,
|
"cancel": 0,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
@ -727,6 +741,7 @@
|
|||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"submit": 0,
|
"submit": 0,
|
||||||
"write": 0,
|
"write": 0,
|
||||||
|
"report": 1,
|
||||||
"role": "Material User",
|
"role": "Material User",
|
||||||
"cancel": 0,
|
"cancel": 0,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
@ -737,6 +752,7 @@
|
|||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"submit": 0,
|
"submit": 0,
|
||||||
"write": 0,
|
"write": 0,
|
||||||
|
"report": 1,
|
||||||
"role": "Supplier",
|
"role": "Supplier",
|
||||||
"cancel": 0,
|
"cancel": 0,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
|
180
buying/utils.py
Normal file
180
buying/utils.py
Normal file
@ -0,0 +1,180 @@
|
|||||||
|
# ERPNext - web based ERP (http://erpnext.com)
|
||||||
|
# Copyright (C) 2012 Web Notes Technologies Pvt Ltd
|
||||||
|
#
|
||||||
|
# This program is free software: you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation, either version 3 of the License, or
|
||||||
|
# (at your option) any later version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
from __future__ import unicode_literals
|
||||||
|
import webnotes
|
||||||
|
from webnotes.utils import getdate, flt, add_days
|
||||||
|
import json
|
||||||
|
|
||||||
|
@webnotes.whitelist()
|
||||||
|
def get_item_details(args):
|
||||||
|
"""
|
||||||
|
args = {
|
||||||
|
"doctype": "",
|
||||||
|
"docname": "",
|
||||||
|
"item_code": "",
|
||||||
|
"warehouse": None,
|
||||||
|
"supplier": None,
|
||||||
|
"transaction_date": None,
|
||||||
|
"conversion_rate": 1.0
|
||||||
|
}
|
||||||
|
"""
|
||||||
|
if isinstance(args, basestring):
|
||||||
|
args = json.loads(args)
|
||||||
|
|
||||||
|
args = webnotes._dict(args)
|
||||||
|
|
||||||
|
item_wrapper = webnotes.model_wrapper("Item", args.item_code)
|
||||||
|
item = item_wrapper.doc
|
||||||
|
|
||||||
|
from stock.utils import validate_end_of_life
|
||||||
|
validate_end_of_life(item.name, item.end_of_life)
|
||||||
|
|
||||||
|
# fetch basic values
|
||||||
|
out = webnotes._dict()
|
||||||
|
out.update({
|
||||||
|
"item_name": item.item_name,
|
||||||
|
"item_group": item.item_group,
|
||||||
|
"brand": item.brand,
|
||||||
|
"description": item.description,
|
||||||
|
"qty": 0,
|
||||||
|
"stock_uom": item.stock_uom,
|
||||||
|
"uom": item.stock_uom,
|
||||||
|
"conversion_factor": 1,
|
||||||
|
"warehouse": args.warehouse or item.default_warehouse,
|
||||||
|
"item_tax_rate": json.dumps(dict(([d.tax_type, d.tax_rate] for d in
|
||||||
|
item_wrapper.doclist.get({"parentfield": "ref_rate_details"})))),
|
||||||
|
"batch_no": None,
|
||||||
|
"expense_head": item.purchase_account,
|
||||||
|
"cost_center": item.cost_center
|
||||||
|
})
|
||||||
|
|
||||||
|
if args.supplier:
|
||||||
|
item_supplier = item_wrapper.doclist.get({"parentfield": "item_supplier_details",
|
||||||
|
"supplier": args.supplier})
|
||||||
|
if item_supplier:
|
||||||
|
out["supplier_part_no"] = item_supplier[0].supplier_part_no
|
||||||
|
|
||||||
|
if out.warehouse:
|
||||||
|
out.projected_qty = webnotes.conn.get_value("Bin", {"item_code": item.name,
|
||||||
|
"warehouse": out.warehouse}, "projected_qty")
|
||||||
|
|
||||||
|
if args.transaction_date and item.lead_time_days:
|
||||||
|
out.schedule_date = out.lead_time_date = add_days(args.transaction_date,
|
||||||
|
item.lead_time_days)
|
||||||
|
|
||||||
|
# set zero
|
||||||
|
out.purchase_ref_rate = out.discount_rate = out.purchase_rate = \
|
||||||
|
out.import_ref_rate = out.import_rate = 0.0
|
||||||
|
|
||||||
|
if args.doctype in ["Purchase Order", "Purchase Invoice", "Purchase Receipt",
|
||||||
|
"Supplier Quotation"]:
|
||||||
|
# try fetching from price list
|
||||||
|
if args.price_list_name and args.price_list_currency:
|
||||||
|
rates_as_per_price_list = get_rates_as_per_price_list(args, item_wrapper.doclist)
|
||||||
|
if rates_as_per_price_list:
|
||||||
|
out.update(rates_as_per_price_list)
|
||||||
|
|
||||||
|
# if not found, fetch from last purchase transaction
|
||||||
|
if not out.purchase_rate:
|
||||||
|
last_purchase = get_last_purchase_details(item.name, args.docname, args.conversion_rate)
|
||||||
|
if last_purchase:
|
||||||
|
out.update(last_purchase)
|
||||||
|
|
||||||
|
return out
|
||||||
|
|
||||||
|
def get_rates_as_per_price_list(args, item_doclist=None):
|
||||||
|
if not item_doclist:
|
||||||
|
item_doclist = webnotes.model_wrapper("Item", args.item_code).doclist
|
||||||
|
|
||||||
|
result = item_doclist.get({"parentfield": "ref_rate_details",
|
||||||
|
"price_list_name": args.price_list_name, "ref_currency": args.price_list_currency,
|
||||||
|
"buying": 1})
|
||||||
|
|
||||||
|
if result:
|
||||||
|
purchase_ref_rate = flt(result[0].ref_rate) * flt(args.plc_conversion_rate)
|
||||||
|
conversion_rate = flt(args.conversion_rate) or 1.0
|
||||||
|
return webnotes._dict({
|
||||||
|
"purchase_ref_rate": purchase_ref_rate,
|
||||||
|
"purchase_rate": purchase_ref_rate,
|
||||||
|
"rate": purchase_ref_rate,
|
||||||
|
"discount_rate": 0,
|
||||||
|
"import_ref_rate": purchase_ref_rate / conversion_rate,
|
||||||
|
"import_rate": purchase_ref_rate / conversion_rate
|
||||||
|
})
|
||||||
|
else:
|
||||||
|
return webnotes._dict()
|
||||||
|
|
||||||
|
def get_last_purchase_details(item_code, doc_name, conversion_rate=1.0):
|
||||||
|
"""returns last purchase details in stock uom"""
|
||||||
|
# get last purchase order item details
|
||||||
|
last_purchase_order = webnotes.conn.sql("""\
|
||||||
|
select po.name, po.transaction_date, po.conversion_rate,
|
||||||
|
po_item.conversion_factor, po_item.purchase_ref_rate,
|
||||||
|
po_item.discount_rate, po_item.purchase_rate
|
||||||
|
from `tabPurchase Order` po, `tabPurchase Order Item` po_item
|
||||||
|
where po.docstatus = 1 and po_item.item_code = %s and po.name != %s and
|
||||||
|
po.name = po_item.parent
|
||||||
|
order by po.transaction_date desc, po.name desc
|
||||||
|
limit 1""", (item_code, doc_name), as_dict=1)
|
||||||
|
|
||||||
|
# get last purchase receipt item details
|
||||||
|
last_purchase_receipt = webnotes.conn.sql("""\
|
||||||
|
select pr.name, pr.posting_date, pr.posting_time, pr.conversion_rate,
|
||||||
|
pr_item.conversion_factor, pr_item.purchase_ref_rate, pr_item.discount_rate,
|
||||||
|
pr_item.purchase_rate
|
||||||
|
from `tabPurchase Receipt` pr, `tabPurchase Receipt Item` pr_item
|
||||||
|
where pr.docstatus = 1 and pr_item.item_code = %s and pr.name != %s and
|
||||||
|
pr.name = pr_item.parent
|
||||||
|
order by pr.posting_date desc, pr.posting_time desc, pr.name desc
|
||||||
|
limit 1""", (item_code, doc_name), as_dict=1)
|
||||||
|
|
||||||
|
purchase_order_date = getdate(last_purchase_order and last_purchase_order[0].transaction_date \
|
||||||
|
or "1900-01-01")
|
||||||
|
purchase_receipt_date = getdate(last_purchase_receipt and \
|
||||||
|
last_purchase_receipt[0].posting_date or "1900-01-01")
|
||||||
|
|
||||||
|
if (purchase_order_date > purchase_receipt_date) or \
|
||||||
|
(last_purchase_order and not last_purchase_receipt):
|
||||||
|
# use purchase order
|
||||||
|
last_purchase = last_purchase_order[0]
|
||||||
|
purchase_date = purchase_order_date
|
||||||
|
|
||||||
|
elif (purchase_receipt_date > purchase_order_date) or \
|
||||||
|
(last_purchase_receipt and not last_purchase_order):
|
||||||
|
# use purchase receipt
|
||||||
|
last_purchase = last_purchase_receipt[0]
|
||||||
|
purchase_date = purchase_receipt_date
|
||||||
|
|
||||||
|
else:
|
||||||
|
return webnotes._dict()
|
||||||
|
|
||||||
|
conversion_factor = flt(last_purchase.conversion_factor)
|
||||||
|
out = webnotes._dict({
|
||||||
|
"purchase_ref_rate": flt(last_purchase.purchase_ref_rate) / conversion_factor,
|
||||||
|
"purchase_rate": flt(last_purchase.purchase_rate) / conversion_factor,
|
||||||
|
"discount_rate": flt(last_purchase.discount_rate),
|
||||||
|
"purchase_date": purchase_date
|
||||||
|
})
|
||||||
|
|
||||||
|
conversion_rate = flt(conversion_rate) or 1.0
|
||||||
|
out.update({
|
||||||
|
"import_ref_rate": out.purchase_ref_rate / conversion_rate,
|
||||||
|
"import_rate": out.purchase_rate / conversion_rate,
|
||||||
|
"rate": out.purchase_rate
|
||||||
|
})
|
||||||
|
|
||||||
|
return out
|
70
controllers/buying_controller.py
Normal file
70
controllers/buying_controller.py
Normal file
@ -0,0 +1,70 @@
|
|||||||
|
# ERPNext - web based ERP (http://erpnext.com)
|
||||||
|
# Copyright (C) 2012 Web Notes Technologies Pvt Ltd
|
||||||
|
#
|
||||||
|
# This program is free software: you can redistribute it and/or modify
|
||||||
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation, either version 3 of the License, or
|
||||||
|
# (at your option) any later version.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
# GNU General Public License for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
from __future__ import unicode_literals
|
||||||
|
import webnotes
|
||||||
|
from webnotes import _, msgprint
|
||||||
|
from webnotes.utils import flt
|
||||||
|
|
||||||
|
from buying.utils import get_item_details
|
||||||
|
from setup.utils import get_company_currency
|
||||||
|
|
||||||
|
from utilities.transaction_base import TransactionBase
|
||||||
|
class BuyingController(TransactionBase):
|
||||||
|
def validate(self):
|
||||||
|
if self.meta.get_field("currency"):
|
||||||
|
self.company_currency = get_company_currency(self.doc.company)
|
||||||
|
self.validate_conversion_rate("currency", "conversion_rate")
|
||||||
|
|
||||||
|
if self.doc.price_list_name and self.doc.price_list_currency:
|
||||||
|
self.validate_conversion_rate("price_list_currency", "plc_conversion_rate")
|
||||||
|
|
||||||
|
def update_item_details(self):
|
||||||
|
for item in self.doclist.get({"parentfield": self.fname}):
|
||||||
|
ret = get_item_details({
|
||||||
|
"doctype": self.doc.doctype,
|
||||||
|
"docname": self.doc.name,
|
||||||
|
"item_code": item.item_code,
|
||||||
|
"warehouse": item.warehouse,
|
||||||
|
"supplier": self.doc.supplier,
|
||||||
|
"transaction_date": self.doc.posting_date,
|
||||||
|
"conversion_rate": self.doc.conversion_rate
|
||||||
|
})
|
||||||
|
for r in ret:
|
||||||
|
if not item.fields.get(r):
|
||||||
|
item.fields[r] = ret[r]
|
||||||
|
|
||||||
|
def validate_conversion_rate(self, currency_field, conversion_rate_field):
|
||||||
|
"""common validation for currency and price list currency"""
|
||||||
|
|
||||||
|
currency = self.doc.fields.get(currency_field)
|
||||||
|
conversion_rate = flt(self.doc.fields.get(conversion_rate_field))
|
||||||
|
conversion_rate_label = self.meta.get_label(conversion_rate_field)
|
||||||
|
|
||||||
|
if conversion_rate == 0:
|
||||||
|
msgprint(conversion_rate_label + _(' cannot be 0'), raise_exception=True)
|
||||||
|
|
||||||
|
# parenthesis for 'OR' are necessary as we want it to evaluate as
|
||||||
|
# mandatory valid condition and (1st optional valid condition
|
||||||
|
# or 2nd optional valid condition)
|
||||||
|
valid_conversion_rate = (conversion_rate and
|
||||||
|
((currency == self.company_currency and conversion_rate == 1.00)
|
||||||
|
or (currency != self.company_currency and conversion_rate != 1.00)))
|
||||||
|
|
||||||
|
if not valid_conversion_rate:
|
||||||
|
msgprint(_('Please enter valid ') + conversion_rate_label + (': ')
|
||||||
|
+ ("1 %s = [?] %s" % (currency, self.company_currency)),
|
||||||
|
raise_exception=True)
|
@ -9,11 +9,11 @@
|
|||||||
{
|
{
|
||||||
"section_style": "Simple",
|
"section_style": "Simple",
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
|
"autoname": "_FEED.#####",
|
||||||
"colour": "White:FFF",
|
"colour": "White:FFF",
|
||||||
"module": "Home",
|
"module": "Home",
|
||||||
"doctype": "DocType",
|
"doctype": "DocType",
|
||||||
"version": 1,
|
"version": 1,
|
||||||
"autoname": "_FEED.#####",
|
|
||||||
"show_in_menu": 0
|
"show_in_menu": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -29,6 +29,7 @@
|
|||||||
"read": 1,
|
"read": 1,
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
|
"report": 1,
|
||||||
"parenttype": "DocType",
|
"parenttype": "DocType",
|
||||||
"role": "System Manager",
|
"role": "System Manager",
|
||||||
"permlevel": 0,
|
"permlevel": 0,
|
||||||
|
@ -1,4 +1,10 @@
|
|||||||
erpnext.updates = [
|
erpnext.updates = [
|
||||||
|
["21st January, 2013", [
|
||||||
|
"Number Formatting: Added Number Format to Global Defaults & Currency",
|
||||||
|
]],
|
||||||
|
["18th January, 2013", [
|
||||||
|
"Buying: Added Price List to purchase cycle",
|
||||||
|
]],
|
||||||
["16th January, 2013", [
|
["16th January, 2013", [
|
||||||
"Job Applicant: Track Job Applicants and extract them from a mailbox like 'jobs@example.com'. See <a href='#Form/Jobs Email Settings'>Jobs Email Settings</a>.",
|
"Job Applicant: Track Job Applicants and extract them from a mailbox like 'jobs@example.com'. See <a href='#Form/Jobs Email Settings'>Jobs Email Settings</a>.",
|
||||||
"Extract leads: Extract Leads from a mailbox like 'sales@example.com'. See <a href='#Form/Sales Email Settings'>Sales Email Settings</a>.",
|
"Extract leads: Extract Leads from a mailbox like 'sales@example.com'. See <a href='#Form/Sales Email Settings'>Sales Email Settings</a>.",
|
||||||
|
@ -11,12 +11,12 @@
|
|||||||
"is_submittable": 1,
|
"is_submittable": 1,
|
||||||
"search_fields": "status, employee, employee_name",
|
"search_fields": "status, employee, employee_name",
|
||||||
"module": "HR",
|
"module": "HR",
|
||||||
"doctype": "DocType",
|
|
||||||
"server_code_error": " ",
|
"server_code_error": " ",
|
||||||
"autoname": "APRSL.#####",
|
"autoname": "APRSL.#####",
|
||||||
|
"_last_update": "1316075905",
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
"colour": "White:FFF",
|
"colour": "White:FFF",
|
||||||
"_last_update": "1316075905",
|
"doctype": "DocType",
|
||||||
"show_in_menu": 0,
|
"show_in_menu": 0,
|
||||||
"version": 1
|
"version": 1
|
||||||
},
|
},
|
||||||
@ -54,11 +54,11 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Appraisal Template",
|
"label": "Appraisal Template",
|
||||||
"oldfieldname": "kra_template",
|
"oldfieldname": "kra_template",
|
||||||
"options": "Appraisal Template",
|
"permlevel": 0,
|
||||||
"fieldname": "kra_template",
|
"fieldname": "kra_template",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"permlevel": 0
|
"options": "Appraisal Template"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
@ -99,17 +99,17 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"permlevel": 1,
|
"permlevel": 1,
|
||||||
"depends_on": "kra_template",
|
"doctype": "DocField",
|
||||||
"no_copy": 1,
|
"no_copy": 1,
|
||||||
"search_index": 1,
|
"search_index": 1,
|
||||||
"colour": "White:FFF",
|
"colour": "White:FFF",
|
||||||
"doctype": "DocField",
|
"oldfieldtype": "Select",
|
||||||
"label": "Status",
|
"label": "Status",
|
||||||
"oldfieldname": "status",
|
"oldfieldname": "status",
|
||||||
"default": "Draft",
|
"default": "Draft",
|
||||||
"fieldname": "status",
|
"fieldname": "status",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"oldfieldtype": "Select",
|
"depends_on": "kra_template",
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"options": "\nDraft\nSubmitted\nCompleted\nCancelled",
|
"options": "\nDraft\nSubmitted\nCompleted\nCancelled",
|
||||||
"in_filter": 1
|
"in_filter": 1
|
||||||
@ -142,11 +142,11 @@
|
|||||||
"oldfieldtype": "Section Break",
|
"oldfieldtype": "Section Break",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Goals",
|
"label": "Goals",
|
||||||
"permlevel": 0,
|
"options": "Simple",
|
||||||
"fieldname": "section_break0",
|
"fieldname": "section_break0",
|
||||||
"fieldtype": "Section Break",
|
"fieldtype": "Section Break",
|
||||||
"depends_on": "kra_template",
|
"depends_on": "kra_template",
|
||||||
"options": "Simple"
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"oldfieldtype": "Table",
|
"oldfieldtype": "Table",
|
||||||
@ -155,20 +155,20 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Appraisal Goals",
|
"label": "Appraisal Goals",
|
||||||
"oldfieldname": "appraisal_details",
|
"oldfieldname": "appraisal_details",
|
||||||
"permlevel": 0,
|
"options": "Appraisal Goal",
|
||||||
"fieldname": "appraisal_details",
|
"fieldname": "appraisal_details",
|
||||||
"fieldtype": "Table",
|
"fieldtype": "Table",
|
||||||
"options": "Appraisal Goal"
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"oldfieldtype": "Button",
|
"oldfieldtype": "Button",
|
||||||
"allow_on_submit": 0,
|
"allow_on_submit": 0,
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Calculate Total Score",
|
"label": "Calculate Total Score",
|
||||||
"permlevel": 0,
|
"options": "calculate_total",
|
||||||
"fieldname": "calculate_total_score",
|
"fieldname": "calculate_total_score",
|
||||||
"fieldtype": "Button",
|
"fieldtype": "Button",
|
||||||
"options": "calculate_total"
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"no_copy": 1,
|
"no_copy": 1,
|
||||||
@ -209,11 +209,11 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Company",
|
"label": "Company",
|
||||||
"oldfieldname": "company",
|
"oldfieldname": "company",
|
||||||
"permlevel": 0,
|
"options": "link:Company",
|
||||||
"fieldname": "company",
|
"fieldname": "company",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"options": "link:Company",
|
"permlevel": 0,
|
||||||
"in_filter": 1
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -221,11 +221,11 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Fiscal Year",
|
"label": "Fiscal Year",
|
||||||
"oldfieldname": "fiscal_year",
|
"oldfieldname": "fiscal_year",
|
||||||
"permlevel": 0,
|
"options": "link:Fiscal Year",
|
||||||
"fieldname": "fiscal_year",
|
"fieldname": "fiscal_year",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"options": "link:Fiscal Year",
|
"permlevel": 0,
|
||||||
"in_filter": 1
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -262,6 +262,7 @@
|
|||||||
"submit": 0,
|
"submit": 0,
|
||||||
"write": 1,
|
"write": 1,
|
||||||
"role": "Employee",
|
"role": "Employee",
|
||||||
|
"report": 1,
|
||||||
"permlevel": 0,
|
"permlevel": 0,
|
||||||
"match": "owner"
|
"match": "owner"
|
||||||
},
|
},
|
||||||
@ -271,6 +272,7 @@
|
|||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"submit": 1,
|
"submit": 1,
|
||||||
"write": 1,
|
"write": 1,
|
||||||
|
"report": 1,
|
||||||
"role": "System Manager",
|
"role": "System Manager",
|
||||||
"cancel": 1,
|
"cancel": 1,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
@ -281,6 +283,7 @@
|
|||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"submit": 1,
|
"submit": 1,
|
||||||
"write": 1,
|
"write": 1,
|
||||||
|
"report": 1,
|
||||||
"role": "HR User",
|
"role": "HR User",
|
||||||
"cancel": 1,
|
"cancel": 1,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
|
@ -7,10 +7,10 @@
|
|||||||
"modified": "2013-01-07 17:16:25"
|
"modified": "2013-01-07 17:16:25"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"autoname": "field:kra_title",
|
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
"doctype": "DocType",
|
"autoname": "field:kra_title",
|
||||||
"module": "HR",
|
"module": "HR",
|
||||||
|
"doctype": "DocType",
|
||||||
"document_type": "Master"
|
"document_type": "Master"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -24,6 +24,7 @@
|
|||||||
{
|
{
|
||||||
"parent": "Appraisal Template",
|
"parent": "Appraisal Template",
|
||||||
"read": 1,
|
"read": 1,
|
||||||
|
"report": 1,
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
"create": 1,
|
"create": 1,
|
||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
@ -67,9 +68,9 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Total Points",
|
|
||||||
"fieldname": "total_points",
|
"fieldname": "total_points",
|
||||||
"fieldtype": "Int"
|
"fieldtype": "Int",
|
||||||
|
"label": "Total Points"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocPerm"
|
"doctype": "DocPerm"
|
||||||
|
@ -7,13 +7,13 @@
|
|||||||
"modified": "2012-12-23 09:42:45"
|
"modified": "2012-12-23 09:42:45"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"document_type": "Master",
|
||||||
"is_submittable": 1,
|
"is_submittable": 1,
|
||||||
"autoname": "naming_series:",
|
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
"search_fields": "employee, employee_name, att_date, status",
|
"autoname": "naming_series:",
|
||||||
"module": "HR",
|
"module": "HR",
|
||||||
"doctype": "DocType",
|
"doctype": "DocType",
|
||||||
"document_type": "Master"
|
"search_fields": "employee, employee_name, att_date, status"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
@ -31,8 +31,9 @@
|
|||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"write": 1,
|
"write": 1,
|
||||||
"parenttype": "DocType",
|
"parenttype": "DocType",
|
||||||
"cancel": 1,
|
"report": 1,
|
||||||
"permlevel": 0,
|
"permlevel": 0,
|
||||||
|
"cancel": 1,
|
||||||
"parentfield": "permissions"
|
"parentfield": "permissions"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -43,10 +44,10 @@
|
|||||||
"oldfieldtype": "Section Break",
|
"oldfieldtype": "Section Break",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Attendance Details",
|
"label": "Attendance Details",
|
||||||
"options": "Simple",
|
"permlevel": 0,
|
||||||
"fieldname": "attendance_details",
|
"fieldname": "attendance_details",
|
||||||
"fieldtype": "Section Break",
|
"fieldtype": "Section Break",
|
||||||
"permlevel": 0
|
"options": "Simple"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"no_copy": 1,
|
"no_copy": 1,
|
||||||
@ -54,23 +55,23 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Naming Series",
|
"label": "Naming Series",
|
||||||
"oldfieldname": "naming_series",
|
"oldfieldname": "naming_series",
|
||||||
"options": "ATT",
|
"permlevel": 0,
|
||||||
"fieldname": "naming_series",
|
"fieldname": "naming_series",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"permlevel": 0
|
"options": "ATT"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"oldfieldtype": "Link",
|
"oldfieldtype": "Link",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Employee",
|
"label": "Employee",
|
||||||
"oldfieldname": "employee",
|
"oldfieldname": "employee",
|
||||||
"options": "Employee",
|
"permlevel": 0,
|
||||||
"fieldname": "employee",
|
"fieldname": "employee",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"search_index": 1,
|
"search_index": 1,
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"permlevel": 0,
|
"options": "Employee",
|
||||||
"in_filter": 1
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -88,12 +89,12 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Status",
|
"label": "Status",
|
||||||
"oldfieldname": "status",
|
"oldfieldname": "status",
|
||||||
"permlevel": 0,
|
"options": "\nPresent\nAbsent\nHalf Day",
|
||||||
"fieldname": "status",
|
"fieldname": "status",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"search_index": 1,
|
"search_index": 1,
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"options": "\nPresent\nAbsent\nHalf Day",
|
"permlevel": 0,
|
||||||
"in_filter": 1
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -102,11 +103,11 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Leave Type",
|
"label": "Leave Type",
|
||||||
"oldfieldname": "leave_type",
|
"oldfieldname": "leave_type",
|
||||||
"options": "Leave Type",
|
"permlevel": 0,
|
||||||
"fieldname": "leave_type",
|
"fieldname": "leave_type",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"hidden": 1,
|
"hidden": 1,
|
||||||
"permlevel": 0,
|
"options": "Leave Type",
|
||||||
"report_hide": 1
|
"report_hide": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -134,11 +135,11 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Fiscal Year",
|
"label": "Fiscal Year",
|
||||||
"oldfieldname": "fiscal_year",
|
"oldfieldname": "fiscal_year",
|
||||||
"options": "link:Fiscal Year",
|
"permlevel": 0,
|
||||||
"fieldname": "fiscal_year",
|
"fieldname": "fiscal_year",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"permlevel": 0,
|
"options": "link:Fiscal Year",
|
||||||
"in_filter": 1
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -146,11 +147,11 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Company",
|
"label": "Company",
|
||||||
"oldfieldname": "company",
|
"oldfieldname": "company",
|
||||||
"options": "link:Company",
|
"permlevel": 0,
|
||||||
"fieldname": "company",
|
"fieldname": "company",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"permlevel": 0,
|
"options": "link:Company",
|
||||||
"in_filter": 1
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -169,10 +170,10 @@
|
|||||||
"no_copy": 1,
|
"no_copy": 1,
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Amended From",
|
"label": "Amended From",
|
||||||
"options": "Attendance",
|
"permlevel": 1,
|
||||||
"fieldname": "amended_from",
|
"fieldname": "amended_from",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"permlevel": 1
|
"options": "Attendance"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"role": "System Manager",
|
"role": "System Manager",
|
||||||
|
@ -9,13 +9,13 @@
|
|||||||
{
|
{
|
||||||
"section_style": "Simple",
|
"section_style": "Simple",
|
||||||
"module": "HR",
|
"module": "HR",
|
||||||
"server_code_error": " ",
|
|
||||||
"allow_trash": 1,
|
|
||||||
"doctype": "DocType",
|
"doctype": "DocType",
|
||||||
"autoname": "field:branch",
|
"allow_trash": 1,
|
||||||
"document_type": "Master",
|
"document_type": "Master",
|
||||||
|
"autoname": "field:branch",
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
"colour": "White:FFF",
|
"colour": "White:FFF",
|
||||||
|
"server_code_error": " ",
|
||||||
"show_in_menu": 0,
|
"show_in_menu": 0,
|
||||||
"version": 11
|
"version": 11
|
||||||
},
|
},
|
||||||
@ -27,14 +27,15 @@
|
|||||||
"parentfield": "fields"
|
"parentfield": "fields"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"report": 1,
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
"parent": "Branch",
|
"parent": "Branch",
|
||||||
"read": 1,
|
"read": 1,
|
||||||
"create": 1,
|
"create": 1,
|
||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"write": 1,
|
"write": 1,
|
||||||
"parenttype": "DocType",
|
|
||||||
"cancel": 1,
|
"cancel": 1,
|
||||||
|
"parenttype": "DocType",
|
||||||
"permlevel": 0,
|
"permlevel": 0,
|
||||||
"parentfield": "permissions"
|
"parentfield": "permissions"
|
||||||
},
|
},
|
||||||
|
@ -9,13 +9,13 @@
|
|||||||
{
|
{
|
||||||
"section_style": "Simple",
|
"section_style": "Simple",
|
||||||
"module": "HR",
|
"module": "HR",
|
||||||
"server_code_error": " ",
|
|
||||||
"allow_trash": 1,
|
|
||||||
"doctype": "DocType",
|
"doctype": "DocType",
|
||||||
"autoname": "field:deduction_name",
|
"allow_trash": 1,
|
||||||
"document_type": "Master",
|
"document_type": "Master",
|
||||||
|
"autoname": "field:deduction_name",
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
"colour": "White:FFF",
|
"colour": "White:FFF",
|
||||||
|
"server_code_error": " ",
|
||||||
"show_in_menu": 0,
|
"show_in_menu": 0,
|
||||||
"version": 10
|
"version": 10
|
||||||
},
|
},
|
||||||
@ -27,14 +27,15 @@
|
|||||||
"parentfield": "fields"
|
"parentfield": "fields"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"report": 1,
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
"parent": "Deduction Type",
|
"parent": "Deduction Type",
|
||||||
"read": 1,
|
"read": 1,
|
||||||
"create": 1,
|
"create": 1,
|
||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"write": 1,
|
"write": 1,
|
||||||
"parenttype": "DocType",
|
|
||||||
"cancel": 1,
|
"cancel": 1,
|
||||||
|
"parenttype": "DocType",
|
||||||
"permlevel": 0,
|
"permlevel": 0,
|
||||||
"parentfield": "permissions"
|
"parentfield": "permissions"
|
||||||
},
|
},
|
||||||
|
@ -9,13 +9,13 @@
|
|||||||
{
|
{
|
||||||
"section_style": "Simple",
|
"section_style": "Simple",
|
||||||
"module": "HR",
|
"module": "HR",
|
||||||
"server_code_error": " ",
|
|
||||||
"allow_trash": 1,
|
|
||||||
"doctype": "DocType",
|
"doctype": "DocType",
|
||||||
"autoname": "field:department_name",
|
"allow_trash": 1,
|
||||||
"document_type": "Master",
|
"document_type": "Master",
|
||||||
|
"autoname": "field:department_name",
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
"colour": "White:FFF",
|
"colour": "White:FFF",
|
||||||
|
"server_code_error": " ",
|
||||||
"show_in_menu": 0,
|
"show_in_menu": 0,
|
||||||
"version": 7
|
"version": 7
|
||||||
},
|
},
|
||||||
@ -27,14 +27,15 @@
|
|||||||
"parentfield": "fields"
|
"parentfield": "fields"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"report": 1,
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
"parent": "Department",
|
"parent": "Department",
|
||||||
"read": 1,
|
"read": 1,
|
||||||
"create": 1,
|
"create": 1,
|
||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"write": 1,
|
"write": 1,
|
||||||
"parenttype": "DocType",
|
|
||||||
"cancel": 1,
|
"cancel": 1,
|
||||||
|
"parenttype": "DocType",
|
||||||
"permlevel": 0,
|
"permlevel": 0,
|
||||||
"parentfield": "permissions"
|
"parentfield": "permissions"
|
||||||
},
|
},
|
||||||
|
@ -9,13 +9,13 @@
|
|||||||
{
|
{
|
||||||
"section_style": "Simple",
|
"section_style": "Simple",
|
||||||
"module": "HR",
|
"module": "HR",
|
||||||
"server_code_error": " ",
|
|
||||||
"allow_trash": 1,
|
|
||||||
"doctype": "DocType",
|
"doctype": "DocType",
|
||||||
"autoname": "field:designation_name",
|
"allow_trash": 1,
|
||||||
"document_type": "Master",
|
"document_type": "Master",
|
||||||
|
"autoname": "field:designation_name",
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
"colour": "White:FFF",
|
"colour": "White:FFF",
|
||||||
|
"server_code_error": " ",
|
||||||
"show_in_menu": 0,
|
"show_in_menu": 0,
|
||||||
"version": 7
|
"version": 7
|
||||||
},
|
},
|
||||||
@ -27,14 +27,15 @@
|
|||||||
"parentfield": "fields"
|
"parentfield": "fields"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"report": 1,
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
"parent": "Designation",
|
"parent": "Designation",
|
||||||
"read": 1,
|
"read": 1,
|
||||||
"create": 1,
|
"create": 1,
|
||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"write": 1,
|
"write": 1,
|
||||||
"parenttype": "DocType",
|
|
||||||
"cancel": 1,
|
"cancel": 1,
|
||||||
|
"parenttype": "DocType",
|
||||||
"permlevel": 0,
|
"permlevel": 0,
|
||||||
"parentfield": "permissions"
|
"parentfield": "permissions"
|
||||||
},
|
},
|
||||||
|
@ -9,13 +9,13 @@
|
|||||||
{
|
{
|
||||||
"section_style": "Simple",
|
"section_style": "Simple",
|
||||||
"module": "HR",
|
"module": "HR",
|
||||||
"server_code_error": " ",
|
|
||||||
"allow_trash": 1,
|
|
||||||
"doctype": "DocType",
|
"doctype": "DocType",
|
||||||
"autoname": "field:earning_name",
|
"allow_trash": 1,
|
||||||
"document_type": "Master",
|
"document_type": "Master",
|
||||||
|
"autoname": "field:earning_name",
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
"colour": "White:FFF",
|
"colour": "White:FFF",
|
||||||
|
"server_code_error": " ",
|
||||||
"show_in_menu": 0,
|
"show_in_menu": 0,
|
||||||
"version": 13
|
"version": 13
|
||||||
},
|
},
|
||||||
@ -27,14 +27,15 @@
|
|||||||
"parentfield": "fields"
|
"parentfield": "fields"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"report": 1,
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
"parent": "Earning Type",
|
"parent": "Earning Type",
|
||||||
"read": 1,
|
"read": 1,
|
||||||
"create": 1,
|
"create": 1,
|
||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"write": 1,
|
"write": 1,
|
||||||
"parenttype": "DocType",
|
|
||||||
"cancel": 1,
|
"cancel": 1,
|
||||||
|
"parenttype": "DocType",
|
||||||
"permlevel": 0,
|
"permlevel": 0,
|
||||||
"parentfield": "permissions"
|
"parentfield": "permissions"
|
||||||
},
|
},
|
||||||
@ -90,12 +91,12 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Taxable",
|
"label": "Taxable",
|
||||||
"oldfieldname": "taxable",
|
"oldfieldname": "taxable",
|
||||||
|
"permlevel": 0,
|
||||||
"trigger": "Client",
|
"trigger": "Client",
|
||||||
"fieldname": "taxable",
|
"fieldname": "taxable",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"options": "\nYes\nNo",
|
"options": "\nYes\nNo"
|
||||||
"permlevel": 0
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"oldfieldtype": "Currency",
|
"oldfieldtype": "Currency",
|
||||||
|
@ -7,12 +7,12 @@
|
|||||||
"modified": "2013-01-09 14:46:42"
|
"modified": "2013-01-09 14:46:42"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"autoname": "naming_series:",
|
"document_type": "Master",
|
||||||
"allow_attach": 1,
|
"allow_attach": 1,
|
||||||
"search_fields": "employee_name",
|
"autoname": "naming_series:",
|
||||||
"module": "HR",
|
"module": "HR",
|
||||||
"doctype": "DocType",
|
"doctype": "DocType",
|
||||||
"document_type": "Master",
|
"search_fields": "employee_name",
|
||||||
"name": "__common__"
|
"name": "__common__"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -53,10 +53,10 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Image View",
|
|
||||||
"options": "image",
|
"options": "image",
|
||||||
"fieldname": "image_view",
|
"fieldname": "image_view",
|
||||||
"fieldtype": "Image",
|
"fieldtype": "Image",
|
||||||
|
"label": "Image View",
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -77,22 +77,22 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Naming Series",
|
"label": "Naming Series",
|
||||||
"oldfieldname": "naming_series",
|
"oldfieldname": "naming_series",
|
||||||
"options": "EMP/",
|
"permlevel": 0,
|
||||||
"fieldname": "naming_series",
|
"fieldname": "naming_series",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"reqd": 0,
|
"reqd": 0,
|
||||||
"permlevel": 0
|
"options": "EMP/"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"oldfieldtype": "Select",
|
"oldfieldtype": "Select",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Salutation",
|
"label": "Salutation",
|
||||||
"oldfieldname": "salutation",
|
"oldfieldname": "salutation",
|
||||||
"options": "\nMr\nMs",
|
"permlevel": 0,
|
||||||
"fieldname": "salutation",
|
"fieldname": "salutation",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"search_index": 0,
|
"search_index": 0,
|
||||||
"permlevel": 0
|
"options": "\nMr\nMs"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"oldfieldtype": "Data",
|
"oldfieldtype": "Data",
|
||||||
@ -106,10 +106,10 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Image",
|
|
||||||
"options": "attach_files:",
|
"options": "attach_files:",
|
||||||
"fieldname": "image",
|
"fieldname": "image",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
|
"label": "Image",
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -123,10 +123,10 @@
|
|||||||
"description": "System User (login) ID. If set, it will become default for all HR forms.",
|
"description": "System User (login) ID. If set, it will become default for all HR forms.",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "User ID",
|
"label": "User ID",
|
||||||
"options": "Profile",
|
"permlevel": 0,
|
||||||
"fieldname": "user_id",
|
"fieldname": "user_id",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"permlevel": 0
|
"options": "Profile"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"oldfieldtype": "Data",
|
"oldfieldtype": "Data",
|
||||||
@ -167,23 +167,23 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Gender",
|
"label": "Gender",
|
||||||
"oldfieldname": "gender",
|
"oldfieldname": "gender",
|
||||||
"options": "\nMale\nFemale",
|
"permlevel": 0,
|
||||||
"fieldname": "gender",
|
"fieldname": "gender",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"search_index": 0,
|
"search_index": 0,
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"permlevel": 0,
|
"options": "\nMale\nFemale",
|
||||||
"in_filter": 1
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Company",
|
"label": "Company",
|
||||||
"options": "link:Company",
|
"permlevel": 0,
|
||||||
"fieldname": "company",
|
"fieldname": "company",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"permlevel": 0,
|
"options": "link:Company",
|
||||||
"in_filter": 1
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -205,12 +205,12 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Status",
|
"label": "Status",
|
||||||
"oldfieldname": "status",
|
"oldfieldname": "status",
|
||||||
"permlevel": 0,
|
"options": "\nActive\nLeft",
|
||||||
"fieldname": "status",
|
"fieldname": "status",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"search_index": 1,
|
"search_index": 1,
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"options": "\nActive\nLeft",
|
"permlevel": 0,
|
||||||
"in_filter": 1
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -218,11 +218,11 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Employment Type",
|
"label": "Employment Type",
|
||||||
"oldfieldname": "employment_type",
|
"oldfieldname": "employment_type",
|
||||||
"options": "Employment Type",
|
"permlevel": 0,
|
||||||
"fieldname": "employment_type",
|
"fieldname": "employment_type",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"search_index": 0,
|
"search_index": 0,
|
||||||
"permlevel": 0,
|
"options": "Employment Type",
|
||||||
"in_filter": 1
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -231,10 +231,10 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Holiday List",
|
"label": "Holiday List",
|
||||||
"oldfieldname": "holiday_list",
|
"oldfieldname": "holiday_list",
|
||||||
"options": "Holiday List",
|
"permlevel": 0,
|
||||||
"fieldname": "holiday_list",
|
"fieldname": "holiday_list",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"permlevel": 0
|
"options": "Holiday List"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
@ -302,11 +302,11 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Branch",
|
"label": "Branch",
|
||||||
"oldfieldname": "branch",
|
"oldfieldname": "branch",
|
||||||
"options": "Branch",
|
"permlevel": 0,
|
||||||
"fieldname": "branch",
|
"fieldname": "branch",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"reqd": 0,
|
"reqd": 0,
|
||||||
"permlevel": 0,
|
"options": "Branch",
|
||||||
"in_filter": 1
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -314,11 +314,11 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Department",
|
"label": "Department",
|
||||||
"oldfieldname": "department",
|
"oldfieldname": "department",
|
||||||
"options": "Department",
|
"permlevel": 0,
|
||||||
"fieldname": "department",
|
"fieldname": "department",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"reqd": 0,
|
"reqd": 0,
|
||||||
"permlevel": 0,
|
"options": "Department",
|
||||||
"in_filter": 1
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -326,12 +326,12 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Designation",
|
"label": "Designation",
|
||||||
"oldfieldname": "designation",
|
"oldfieldname": "designation",
|
||||||
"options": "Designation",
|
"permlevel": 0,
|
||||||
"fieldname": "designation",
|
"fieldname": "designation",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"search_index": 1,
|
"search_index": 1,
|
||||||
"reqd": 0,
|
"reqd": 0,
|
||||||
"permlevel": 0,
|
"options": "Designation",
|
||||||
"in_filter": 1
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -339,11 +339,11 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Grade",
|
"label": "Grade",
|
||||||
"oldfieldname": "grade",
|
"oldfieldname": "grade",
|
||||||
"options": "Grade",
|
"permlevel": 0,
|
||||||
"fieldname": "grade",
|
"fieldname": "grade",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"reqd": 0,
|
"reqd": 0,
|
||||||
"permlevel": 0,
|
"options": "Grade",
|
||||||
"in_filter": 1
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -351,10 +351,10 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Reports to",
|
"label": "Reports to",
|
||||||
"oldfieldname": "reports_to",
|
"oldfieldname": "reports_to",
|
||||||
"options": "Employee",
|
"permlevel": 0,
|
||||||
"fieldname": "reports_to",
|
"fieldname": "reports_to",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"permlevel": 0
|
"options": "Employee"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "Provide email id registered in company",
|
"description": "Provide email id registered in company",
|
||||||
@ -382,22 +382,22 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Salary Mode",
|
"label": "Salary Mode",
|
||||||
"oldfieldname": "salary_mode",
|
"oldfieldname": "salary_mode",
|
||||||
"options": "\nBank\nCash\nCheque",
|
"permlevel": 0,
|
||||||
"fieldname": "salary_mode",
|
"fieldname": "salary_mode",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"permlevel": 0
|
"options": "\nBank\nCash\nCheque"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"oldfieldtype": "Link",
|
"oldfieldtype": "Link",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Bank Name",
|
"label": "Bank Name",
|
||||||
"oldfieldname": "bank_name",
|
"oldfieldname": "bank_name",
|
||||||
"options": "Suggest",
|
"permlevel": 0,
|
||||||
"fieldname": "bank_name",
|
"fieldname": "bank_name",
|
||||||
"fieldtype": "Data",
|
"fieldtype": "Data",
|
||||||
"depends_on": "eval:doc.salary_mode == 'Bank'",
|
"depends_on": "eval:doc.salary_mode == 'Bank'",
|
||||||
"hidden": 0,
|
"hidden": 0,
|
||||||
"permlevel": 0,
|
"options": "Suggest",
|
||||||
"in_filter": 1
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -477,10 +477,10 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Emergency Contact Details",
|
|
||||||
"options": "<b>Emergency Contact Details</b>",
|
"options": "<b>Emergency Contact Details</b>",
|
||||||
"fieldname": "emergency_contact_details",
|
"fieldname": "emergency_contact_details",
|
||||||
"fieldtype": "HTML",
|
"fieldtype": "HTML",
|
||||||
|
"label": "Emergency Contact Details",
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -513,10 +513,10 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Permanent Accommodation Type",
|
|
||||||
"options": "\nRented\nOwned",
|
"options": "\nRented\nOwned",
|
||||||
"fieldname": "permanent_accommodation_type",
|
"fieldname": "permanent_accommodation_type",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
|
"label": "Permanent Accommodation Type",
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -528,10 +528,10 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Current Accommodation Type",
|
|
||||||
"options": "\nRented\nOwned",
|
"options": "\nRented\nOwned",
|
||||||
"fieldname": "current_accommodation_type",
|
"fieldname": "current_accommodation_type",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
|
"label": "Current Accommodation Type",
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -616,18 +616,18 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Marital Status",
|
|
||||||
"options": "\nSingle\nMarried\nDivorced\nWidowed",
|
"options": "\nSingle\nMarried\nDivorced\nWidowed",
|
||||||
"fieldname": "marital_status",
|
"fieldname": "marital_status",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
|
"label": "Marital Status",
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Blood Group",
|
|
||||||
"options": "\nA+\nA-\nB+\nB-\nAB+\nAB-\nO+\nO-",
|
"options": "\nA+\nA-\nB+\nB-\nAB+\nAB-\nO+\nO-",
|
||||||
"fieldname": "blood_group",
|
"fieldname": "blood_group",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
|
"label": "Blood Group",
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -662,10 +662,10 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Educational Qualification Details",
|
|
||||||
"options": "Employee Education",
|
"options": "Employee Education",
|
||||||
"fieldname": "educational_qualification_details",
|
"fieldname": "educational_qualification_details",
|
||||||
"fieldtype": "Table",
|
"fieldtype": "Table",
|
||||||
|
"label": "Educational Qualification Details",
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -677,34 +677,34 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Previous Work Experience",
|
|
||||||
"options": "Simple",
|
"options": "Simple",
|
||||||
"fieldname": "previous_work_experience",
|
"fieldname": "previous_work_experience",
|
||||||
"fieldtype": "Section Break",
|
"fieldtype": "Section Break",
|
||||||
|
"label": "Previous Work Experience",
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Employee External Work History",
|
|
||||||
"options": "Employee External Work History",
|
"options": "Employee External Work History",
|
||||||
"fieldname": "previous_experience_details",
|
"fieldname": "previous_experience_details",
|
||||||
"fieldtype": "Table",
|
"fieldtype": "Table",
|
||||||
|
"label": "Employee External Work History",
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "History In Company",
|
|
||||||
"options": "Simple",
|
"options": "Simple",
|
||||||
"fieldname": "history_in_company",
|
"fieldname": "history_in_company",
|
||||||
"fieldtype": "Section Break",
|
"fieldtype": "Section Break",
|
||||||
|
"label": "History In Company",
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Employee Internal Work Historys",
|
|
||||||
"options": "Employee Internal Work History",
|
"options": "Employee Internal Work History",
|
||||||
"fieldname": "experience_in_company_details",
|
"fieldname": "experience_in_company_details",
|
||||||
"fieldtype": "Table",
|
"fieldtype": "Table",
|
||||||
|
"label": "Employee Internal Work Historys",
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -755,10 +755,10 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Leave Encashed?",
|
"label": "Leave Encashed?",
|
||||||
"oldfieldname": "leave_encashed",
|
"oldfieldname": "leave_encashed",
|
||||||
"options": "\nYes\nNo",
|
"permlevel": 0,
|
||||||
"fieldname": "leave_encashed",
|
"fieldname": "leave_encashed",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"permlevel": 0
|
"options": "\nYes\nNo"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"oldfieldtype": "Date",
|
"oldfieldtype": "Date",
|
||||||
@ -793,10 +793,10 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Reason for Resignation",
|
"label": "Reason for Resignation",
|
||||||
"oldfieldname": "reason_for_resignation",
|
"oldfieldname": "reason_for_resignation",
|
||||||
"options": "\nBetter Prospects\nHealth Concerns",
|
"permlevel": 0,
|
||||||
"fieldname": "reason_for_resignation",
|
"fieldname": "reason_for_resignation",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"permlevel": 0
|
"options": "\nBetter Prospects\nHealth Concerns"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"oldfieldtype": "Data",
|
"oldfieldtype": "Data",
|
||||||
@ -838,8 +838,9 @@
|
|||||||
"create": 0,
|
"create": 0,
|
||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"write": 0,
|
"write": 0,
|
||||||
"role": "Employee",
|
|
||||||
"cancel": 0,
|
"cancel": 0,
|
||||||
|
"role": "Employee",
|
||||||
|
"report": 1,
|
||||||
"permlevel": 0,
|
"permlevel": 0,
|
||||||
"match": "employee"
|
"match": "employee"
|
||||||
},
|
},
|
||||||
@ -855,8 +856,9 @@
|
|||||||
"create": 1,
|
"create": 1,
|
||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"write": 1,
|
"write": 1,
|
||||||
"role": "HR User",
|
|
||||||
"cancel": 1,
|
"cancel": 1,
|
||||||
|
"role": "HR User",
|
||||||
|
"report": 1,
|
||||||
"permlevel": 0,
|
"permlevel": 0,
|
||||||
"match": "company"
|
"match": "company"
|
||||||
},
|
},
|
||||||
@ -864,6 +866,7 @@
|
|||||||
"create": 1,
|
"create": 1,
|
||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"write": 1,
|
"write": 1,
|
||||||
|
"report": 1,
|
||||||
"role": "HR Manager",
|
"role": "HR Manager",
|
||||||
"cancel": 1,
|
"cancel": 1,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
|
@ -9,13 +9,13 @@
|
|||||||
{
|
{
|
||||||
"section_style": "Simple",
|
"section_style": "Simple",
|
||||||
"module": "HR",
|
"module": "HR",
|
||||||
"server_code_error": " ",
|
|
||||||
"allow_trash": 1,
|
|
||||||
"doctype": "DocType",
|
"doctype": "DocType",
|
||||||
"autoname": "field:employee_type_name",
|
"allow_trash": 1,
|
||||||
"document_type": "Master",
|
"document_type": "Master",
|
||||||
|
"autoname": "field:employee_type_name",
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
"colour": "White:FFF",
|
"colour": "White:FFF",
|
||||||
|
"server_code_error": " ",
|
||||||
"show_in_menu": 0,
|
"show_in_menu": 0,
|
||||||
"version": 16
|
"version": 16
|
||||||
},
|
},
|
||||||
@ -27,14 +27,15 @@
|
|||||||
"parentfield": "fields"
|
"parentfield": "fields"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"report": 1,
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
"parent": "Employment Type",
|
"parent": "Employment Type",
|
||||||
"read": 1,
|
"read": 1,
|
||||||
"create": 1,
|
"create": 1,
|
||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"write": 1,
|
"write": 1,
|
||||||
"parenttype": "DocType",
|
|
||||||
"cancel": 1,
|
"cancel": 1,
|
||||||
|
"parenttype": "DocType",
|
||||||
"permlevel": 0,
|
"permlevel": 0,
|
||||||
"parentfield": "permissions"
|
"parentfield": "permissions"
|
||||||
},
|
},
|
||||||
|
@ -8,11 +8,11 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"is_submittable": 1,
|
"is_submittable": 1,
|
||||||
"autoname": "EXP.######",
|
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
"search_fields": "approval_status,employee,employee_name",
|
"autoname": "EXP.######",
|
||||||
"module": "HR",
|
"module": "HR",
|
||||||
"doctype": "DocType"
|
"doctype": "DocType",
|
||||||
|
"search_fields": "approval_status,employee,employee_name"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
@ -67,7 +67,6 @@
|
|||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"reqd": 0,
|
|
||||||
"no_copy": 1,
|
"no_copy": 1,
|
||||||
"oldfieldtype": "Currency",
|
"oldfieldtype": "Currency",
|
||||||
"colour": "White:FFF",
|
"colour": "White:FFF",
|
||||||
@ -77,6 +76,7 @@
|
|||||||
"width": "160px",
|
"width": "160px",
|
||||||
"fieldname": "total_claimed_amount",
|
"fieldname": "total_claimed_amount",
|
||||||
"fieldtype": "Currency",
|
"fieldtype": "Currency",
|
||||||
|
"reqd": 0,
|
||||||
"permlevel": 1,
|
"permlevel": 1,
|
||||||
"in_filter": 0
|
"in_filter": 0
|
||||||
},
|
},
|
||||||
@ -107,30 +107,30 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Expense Claim Details",
|
"label": "Expense Claim Details",
|
||||||
"oldfieldname": "expense_voucher_details",
|
"oldfieldname": "expense_voucher_details",
|
||||||
"options": "Expense Claim Detail",
|
"permlevel": 0,
|
||||||
"fieldname": "expense_voucher_details",
|
"fieldname": "expense_voucher_details",
|
||||||
"fieldtype": "Table",
|
"fieldtype": "Table",
|
||||||
"permlevel": 0
|
"options": "Expense Claim Detail"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"options": "Simple",
|
"permlevel": 0,
|
||||||
"fieldname": "sb1",
|
"fieldname": "sb1",
|
||||||
"fieldtype": "Section Break",
|
"fieldtype": "Section Break",
|
||||||
"permlevel": 0
|
"options": "Simple"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"permlevel": 0,
|
|
||||||
"oldfieldtype": "Link",
|
"oldfieldtype": "Link",
|
||||||
"colour": "White:FFF",
|
"colour": "White:FFF",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "From Employee",
|
"label": "From Employee",
|
||||||
"oldfieldname": "employee",
|
"oldfieldname": "employee",
|
||||||
"reqd": 1,
|
"permlevel": 0,
|
||||||
"trigger": "Client",
|
"trigger": "Client",
|
||||||
"fieldname": "employee",
|
"fieldname": "employee",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"search_index": 1,
|
"search_index": 1,
|
||||||
|
"reqd": 1,
|
||||||
"options": "Employee",
|
"options": "Employee",
|
||||||
"in_filter": 1
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
@ -151,11 +151,11 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Fiscal Year",
|
"label": "Fiscal Year",
|
||||||
"oldfieldname": "fiscal_year",
|
"oldfieldname": "fiscal_year",
|
||||||
"options": "link:Fiscal Year",
|
"permlevel": 0,
|
||||||
"fieldname": "fiscal_year",
|
"fieldname": "fiscal_year",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"permlevel": 0,
|
"options": "link:Fiscal Year",
|
||||||
"in_filter": 1
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -163,11 +163,11 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Company",
|
"label": "Company",
|
||||||
"oldfieldname": "company",
|
"oldfieldname": "company",
|
||||||
"options": "link:Company",
|
"permlevel": 0,
|
||||||
"fieldname": "company",
|
"fieldname": "company",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"permlevel": 0,
|
"options": "link:Company",
|
||||||
"in_filter": 1
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -188,10 +188,10 @@
|
|||||||
"in_filter": 1
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"allow_on_submit": 0,
|
|
||||||
"no_copy": 1,
|
"no_copy": 1,
|
||||||
"oldfieldtype": "Small Text",
|
"oldfieldtype": "Small Text",
|
||||||
"colour": "White:FFF",
|
"colour": "White:FFF",
|
||||||
|
"allow_on_submit": 0,
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Remark",
|
"label": "Remark",
|
||||||
"oldfieldname": "remark",
|
"oldfieldname": "remark",
|
||||||
@ -243,6 +243,7 @@
|
|||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"write": 1,
|
"write": 1,
|
||||||
"role": "Employee",
|
"role": "Employee",
|
||||||
|
"report": 1,
|
||||||
"permlevel": 0,
|
"permlevel": 0,
|
||||||
"match": "owner"
|
"match": "owner"
|
||||||
},
|
},
|
||||||
@ -252,8 +253,9 @@
|
|||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"submit": 1,
|
"submit": 1,
|
||||||
"write": 1,
|
"write": 1,
|
||||||
"role": "Expense Approver",
|
|
||||||
"cancel": 1,
|
"cancel": 1,
|
||||||
|
"role": "Expense Approver",
|
||||||
|
"report": 1,
|
||||||
"permlevel": 0,
|
"permlevel": 0,
|
||||||
"match": "exp_approver:user"
|
"match": "exp_approver:user"
|
||||||
},
|
},
|
||||||
@ -263,13 +265,14 @@
|
|||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"submit": 1,
|
"submit": 1,
|
||||||
"write": 1,
|
"write": 1,
|
||||||
|
"report": 1,
|
||||||
"role": "HR User",
|
"role": "HR User",
|
||||||
"cancel": 1,
|
"cancel": 1,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocPerm",
|
|
||||||
"role": "All",
|
"role": "All",
|
||||||
"permlevel": 1
|
"permlevel": 1,
|
||||||
|
"doctype": "DocPerm"
|
||||||
}
|
}
|
||||||
]
|
]
|
@ -9,12 +9,12 @@
|
|||||||
{
|
{
|
||||||
"section_style": "Simple",
|
"section_style": "Simple",
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
|
"autoname": "field:expense_type",
|
||||||
"colour": "White:FFF",
|
"colour": "White:FFF",
|
||||||
"module": "HR",
|
"module": "HR",
|
||||||
"server_code_error": " ",
|
"server_code_error": " ",
|
||||||
"version": 5,
|
"version": 5,
|
||||||
"doctype": "DocType",
|
"doctype": "DocType",
|
||||||
"autoname": "field:expense_type",
|
|
||||||
"document_type": "Master"
|
"document_type": "Master"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -32,6 +32,7 @@
|
|||||||
"create": 1,
|
"create": 1,
|
||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"write": 1,
|
"write": 1,
|
||||||
|
"report": 1,
|
||||||
"parenttype": "DocType",
|
"parenttype": "DocType",
|
||||||
"permlevel": 0,
|
"permlevel": 0,
|
||||||
"parentfield": "permissions"
|
"parentfield": "permissions"
|
||||||
|
@ -9,13 +9,13 @@
|
|||||||
{
|
{
|
||||||
"section_style": "Simple",
|
"section_style": "Simple",
|
||||||
"module": "HR",
|
"module": "HR",
|
||||||
"server_code_error": " ",
|
|
||||||
"allow_trash": 1,
|
|
||||||
"doctype": "DocType",
|
"doctype": "DocType",
|
||||||
"autoname": "field:grade_name",
|
"allow_trash": 1,
|
||||||
"document_type": "Master",
|
"document_type": "Master",
|
||||||
|
"autoname": "field:grade_name",
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
"colour": "White:FFF",
|
"colour": "White:FFF",
|
||||||
|
"server_code_error": " ",
|
||||||
"show_in_menu": 0,
|
"show_in_menu": 0,
|
||||||
"version": 7
|
"version": 7
|
||||||
},
|
},
|
||||||
@ -27,14 +27,15 @@
|
|||||||
"parentfield": "fields"
|
"parentfield": "fields"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"report": 1,
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
"parent": "Grade",
|
"parent": "Grade",
|
||||||
"read": 1,
|
"read": 1,
|
||||||
"create": 1,
|
"create": 1,
|
||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"write": 1,
|
"write": 1,
|
||||||
"parenttype": "DocType",
|
|
||||||
"cancel": 1,
|
"cancel": 1,
|
||||||
|
"parenttype": "DocType",
|
||||||
"permlevel": 0,
|
"permlevel": 0,
|
||||||
"parentfield": "permissions"
|
"parentfield": "permissions"
|
||||||
},
|
},
|
||||||
|
@ -9,12 +9,12 @@
|
|||||||
{
|
{
|
||||||
"section_style": "Simple",
|
"section_style": "Simple",
|
||||||
"module": "HR",
|
"module": "HR",
|
||||||
"server_code_error": " ",
|
|
||||||
"allow_trash": 1,
|
|
||||||
"doctype": "DocType",
|
"doctype": "DocType",
|
||||||
|
"allow_trash": 1,
|
||||||
"document_type": "Master",
|
"document_type": "Master",
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
"colour": "White:FFF",
|
"colour": "White:FFF",
|
||||||
|
"server_code_error": " ",
|
||||||
"show_in_menu": 0,
|
"show_in_menu": 0,
|
||||||
"version": 17
|
"version": 17
|
||||||
},
|
},
|
||||||
@ -28,10 +28,11 @@
|
|||||||
{
|
{
|
||||||
"parent": "Holiday List",
|
"parent": "Holiday List",
|
||||||
"read": 1,
|
"read": 1,
|
||||||
"doctype": "DocPerm",
|
"report": 1,
|
||||||
"cancel": 1,
|
"cancel": 1,
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
"create": 1,
|
"create": 1,
|
||||||
|
"doctype": "DocPerm",
|
||||||
"write": 1,
|
"write": 1,
|
||||||
"parenttype": "DocType",
|
"parenttype": "DocType",
|
||||||
"role": "HR Manager",
|
"role": "HR Manager",
|
||||||
@ -76,11 +77,11 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Fiscal Year",
|
"label": "Fiscal Year",
|
||||||
"oldfieldname": "fiscal_year",
|
"oldfieldname": "fiscal_year",
|
||||||
"permlevel": 0,
|
"options": "link:Fiscal Year",
|
||||||
"fieldname": "fiscal_year",
|
"fieldname": "fiscal_year",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"options": "link:Fiscal Year",
|
"permlevel": 0,
|
||||||
"in_filter": 1
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -88,10 +89,10 @@
|
|||||||
"no_copy": 1,
|
"no_copy": 1,
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Weekly Off",
|
"label": "Weekly Off",
|
||||||
"permlevel": 0,
|
"options": "\nSunday\nMonday\nTuesday\nWednesday\nThursday\nFriday\nSaturday",
|
||||||
"fieldname": "weekly_off",
|
"fieldname": "weekly_off",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"options": "\nSunday\nMonday\nTuesday\nWednesday\nThursday\nFriday\nSaturday",
|
"permlevel": 0,
|
||||||
"report_hide": 1
|
"report_hide": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -107,11 +108,11 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Holidays",
|
"label": "Holidays",
|
||||||
"oldfieldname": "holiday_list_details",
|
"oldfieldname": "holiday_list_details",
|
||||||
"permlevel": 0,
|
"options": "Holiday",
|
||||||
"fieldname": "holiday_list_details",
|
"fieldname": "holiday_list_details",
|
||||||
"fieldtype": "Table",
|
"fieldtype": "Table",
|
||||||
"reqd": 0,
|
"reqd": 0,
|
||||||
"options": "Holiday"
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
|
@ -11,12 +11,12 @@
|
|||||||
"is_submittable": 1,
|
"is_submittable": 1,
|
||||||
"search_fields": "employee,employee_name,leave_type,total_leaves_allocated,fiscal_year",
|
"search_fields": "employee,employee_name,leave_type,total_leaves_allocated,fiscal_year",
|
||||||
"module": "HR",
|
"module": "HR",
|
||||||
"doctype": "DocType",
|
|
||||||
"server_code_error": " ",
|
"server_code_error": " ",
|
||||||
"autoname": "LAL/.#####",
|
"autoname": "LAL/.#####",
|
||||||
|
"_last_update": "1317365120",
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
"colour": "White:FFF",
|
"colour": "White:FFF",
|
||||||
"_last_update": "1317365120",
|
"doctype": "DocType",
|
||||||
"show_in_menu": 0,
|
"show_in_menu": 0,
|
||||||
"version": 1
|
"version": 1
|
||||||
},
|
},
|
||||||
@ -198,8 +198,9 @@
|
|||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"submit": 1,
|
"submit": 1,
|
||||||
"write": 1,
|
"write": 1,
|
||||||
"role": "HR User",
|
|
||||||
"cancel": 1,
|
"cancel": 1,
|
||||||
|
"role": "HR User",
|
||||||
|
"report": 1,
|
||||||
"permlevel": 0,
|
"permlevel": 0,
|
||||||
"match": "owner"
|
"match": "owner"
|
||||||
},
|
},
|
||||||
@ -209,6 +210,7 @@
|
|||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"submit": 1,
|
"submit": 1,
|
||||||
"write": 1,
|
"write": 1,
|
||||||
|
"report": 1,
|
||||||
"role": "HR Manager",
|
"role": "HR Manager",
|
||||||
"cancel": 1,
|
"cancel": 1,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
|
@ -7,13 +7,13 @@
|
|||||||
"modified": "2013-01-01 15:13:51"
|
"modified": "2013-01-01 15:13:51"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"document_type": "Transaction",
|
||||||
"is_submittable": 1,
|
"is_submittable": 1,
|
||||||
"autoname": "LAP/.#####",
|
|
||||||
"description": "Apply / Approve Leaves",
|
"description": "Apply / Approve Leaves",
|
||||||
"search_fields": "employee,employee_name,leave_type,from_date,to_date,total_leave_days,fiscal_year",
|
"autoname": "LAP/.#####",
|
||||||
"module": "HR",
|
"module": "HR",
|
||||||
"doctype": "DocType",
|
"doctype": "DocType",
|
||||||
"document_type": "Transaction",
|
"search_fields": "employee,employee_name,leave_type,from_date,to_date,total_leave_days,fiscal_year",
|
||||||
"name": "__common__"
|
"name": "__common__"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -37,33 +37,33 @@
|
|||||||
"doctype": "DocType"
|
"doctype": "DocType"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"permlevel": 2,
|
||||||
"default": "Open",
|
"default": "Open",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Status",
|
"label": "Status",
|
||||||
"no_copy": 1,
|
"no_copy": 1,
|
||||||
"options": "Open\nApproved\nRejected",
|
|
||||||
"fieldname": "status",
|
"fieldname": "status",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"permlevel": 2
|
"options": "Open\nApproved\nRejected"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "Leave can be approved by users with Role, \"Leave Approver\"",
|
"description": "Leave can be approved by users with Role, \"Leave Approver\"",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Leave Approver",
|
"label": "Leave Approver",
|
||||||
"options": "link:Profile",
|
"permlevel": 0,
|
||||||
"fieldname": "leave_approver",
|
"fieldname": "leave_approver",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"permlevel": 0
|
"options": "link:Profile"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"search_index": 1,
|
"search_index": 1,
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Leave Type",
|
"label": "Leave Type",
|
||||||
"options": "link:Leave Type",
|
"permlevel": 0,
|
||||||
"fieldname": "leave_type",
|
"fieldname": "leave_type",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"permlevel": 0,
|
"options": "link:Leave Type",
|
||||||
"in_filter": 1
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -110,11 +110,11 @@
|
|||||||
"search_index": 1,
|
"search_index": 1,
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Employee",
|
"label": "Employee",
|
||||||
"options": "Employee",
|
"permlevel": 0,
|
||||||
"fieldname": "employee",
|
"fieldname": "employee",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"permlevel": 0,
|
"options": "Employee",
|
||||||
"in_filter": 1
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -167,11 +167,11 @@
|
|||||||
"search_index": 0,
|
"search_index": 0,
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Fiscal Year",
|
"label": "Fiscal Year",
|
||||||
"options": "link:Fiscal Year",
|
"permlevel": 2,
|
||||||
"fieldname": "fiscal_year",
|
"fieldname": "fiscal_year",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"permlevel": 2,
|
"options": "link:Fiscal Year",
|
||||||
"in_filter": 1
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -179,25 +179,26 @@
|
|||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Letter Head",
|
"label": "Letter Head",
|
||||||
"options": "Letter Head",
|
"permlevel": 2,
|
||||||
"fieldname": "letter_head",
|
"fieldname": "letter_head",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"permlevel": 2
|
"options": "Letter Head"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
"no_copy": 1,
|
"no_copy": 1,
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Amended From",
|
"label": "Amended From",
|
||||||
"options": "Sales Invoice",
|
"permlevel": 1,
|
||||||
"fieldname": "amended_from",
|
"fieldname": "amended_from",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"permlevel": 1
|
"options": "Sales Invoice"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"create": 1,
|
"create": 1,
|
||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"role": "Employee",
|
"role": "Employee",
|
||||||
|
"report": 1,
|
||||||
"permlevel": 0,
|
"permlevel": 0,
|
||||||
"match": "employee"
|
"match": "employee"
|
||||||
},
|
},
|
||||||
@ -206,6 +207,7 @@
|
|||||||
"create": 1,
|
"create": 1,
|
||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"submit": 1,
|
"submit": 1,
|
||||||
|
"report": 1,
|
||||||
"role": "HR User",
|
"role": "HR User",
|
||||||
"cancel": 1,
|
"cancel": 1,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
@ -215,15 +217,16 @@
|
|||||||
"create": 1,
|
"create": 1,
|
||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"submit": 1,
|
"submit": 1,
|
||||||
"role": "Leave Approver",
|
|
||||||
"cancel": 1,
|
"cancel": 1,
|
||||||
|
"role": "Leave Approver",
|
||||||
|
"report": 1,
|
||||||
"permlevel": 0,
|
"permlevel": 0,
|
||||||
"match": "leave_approver:user"
|
"match": "leave_approver:user"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocPerm",
|
|
||||||
"role": "HR User",
|
"role": "HR User",
|
||||||
"permlevel": 2
|
"permlevel": 2,
|
||||||
|
"doctype": "DocPerm"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"amend": 0,
|
"amend": 0,
|
||||||
|
@ -9,13 +9,13 @@
|
|||||||
{
|
{
|
||||||
"section_style": "Simple",
|
"section_style": "Simple",
|
||||||
"module": "HR",
|
"module": "HR",
|
||||||
"server_code_error": " ",
|
|
||||||
"allow_trash": 1,
|
|
||||||
"doctype": "DocType",
|
"doctype": "DocType",
|
||||||
"autoname": "field:leave_type_name",
|
"allow_trash": 1,
|
||||||
"document_type": "Master",
|
"document_type": "Master",
|
||||||
|
"autoname": "field:leave_type_name",
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
"colour": "White:FFF",
|
"colour": "White:FFF",
|
||||||
|
"server_code_error": " ",
|
||||||
"show_in_menu": 0,
|
"show_in_menu": 0,
|
||||||
"version": 23
|
"version": 23
|
||||||
},
|
},
|
||||||
@ -27,14 +27,15 @@
|
|||||||
"parentfield": "fields"
|
"parentfield": "fields"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"report": 1,
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
"parent": "Leave Type",
|
"parent": "Leave Type",
|
||||||
"read": 1,
|
"read": 1,
|
||||||
"create": 1,
|
"create": 1,
|
||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"write": 1,
|
"write": 1,
|
||||||
"parenttype": "DocType",
|
|
||||||
"cancel": 1,
|
"cancel": 1,
|
||||||
|
"parenttype": "DocType",
|
||||||
"permlevel": 0,
|
"permlevel": 0,
|
||||||
"parentfield": "permissions"
|
"parentfield": "permissions"
|
||||||
},
|
},
|
||||||
|
@ -12,10 +12,10 @@
|
|||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
"colour": "White:FFF",
|
"colour": "White:FFF",
|
||||||
"module": "HR",
|
"module": "HR",
|
||||||
"show_in_menu": 0,
|
|
||||||
"version": 6,
|
|
||||||
"server_code_error": " ",
|
"server_code_error": " ",
|
||||||
"doctype": "DocType"
|
"version": 6,
|
||||||
|
"doctype": "DocType",
|
||||||
|
"show_in_menu": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
@ -39,6 +39,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"write": 1,
|
"write": 1,
|
||||||
|
"report": 1,
|
||||||
"permlevel": 0,
|
"permlevel": 0,
|
||||||
"doctype": "DocPerm"
|
"doctype": "DocPerm"
|
||||||
},
|
},
|
||||||
|
@ -18,11 +18,11 @@ from __future__ import unicode_literals
|
|||||||
import webnotes
|
import webnotes
|
||||||
|
|
||||||
from webnotes.utils import add_days, cint, cstr, flt, getdate
|
from webnotes.utils import add_days, cint, cstr, flt, getdate
|
||||||
from webnotes.model import db_exists
|
|
||||||
from webnotes.model.doc import make_autoname
|
from webnotes.model.doc import make_autoname
|
||||||
from webnotes.model.wrapper import getlist, copy_doclist
|
from webnotes.model.wrapper import getlist
|
||||||
from webnotes.model.code import get_obj
|
from webnotes.model.code import get_obj
|
||||||
from webnotes import msgprint
|
from webnotes import msgprint
|
||||||
|
from setup.utils import get_company_currency
|
||||||
|
|
||||||
sql = webnotes.conn.sql
|
sql = webnotes.conn.sql
|
||||||
|
|
||||||
@ -137,7 +137,7 @@ class DocType(TransactionBase):
|
|||||||
|
|
||||||
def validate(self):
|
def validate(self):
|
||||||
self.check_existing()
|
self.check_existing()
|
||||||
dcc = TransactionBase().get_company_currency(self.doc.company)
|
dcc = get_company_currency(self.doc.company)
|
||||||
self.doc.total_in_words = get_obj('Sales Common').get_total_in_words(dcc, self.doc.rounded_total)
|
self.doc.total_in_words = get_obj('Sales Common').get_total_in_words(dcc, self.doc.rounded_total)
|
||||||
|
|
||||||
|
|
||||||
|
@ -9,8 +9,8 @@
|
|||||||
{
|
{
|
||||||
"is_submittable": 1,
|
"is_submittable": 1,
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
"doctype": "DocType",
|
"module": "HR",
|
||||||
"module": "HR"
|
"doctype": "DocType"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
@ -45,12 +45,12 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Employee",
|
"label": "Employee",
|
||||||
"oldfieldname": "employee",
|
"oldfieldname": "employee",
|
||||||
"permlevel": 0,
|
"options": "Employee",
|
||||||
"fieldname": "employee",
|
"fieldname": "employee",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"search_index": 1,
|
"search_index": 1,
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"options": "Employee",
|
"permlevel": 0,
|
||||||
"in_filter": 1
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -69,12 +69,12 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Department",
|
"label": "Department",
|
||||||
"oldfieldname": "department",
|
"oldfieldname": "department",
|
||||||
"options": "Department",
|
"permlevel": 1,
|
||||||
"fieldname": "department",
|
"fieldname": "department",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"search_index": 0,
|
"search_index": 0,
|
||||||
"reqd": 0,
|
"reqd": 0,
|
||||||
"permlevel": 1,
|
"options": "Department",
|
||||||
"in_filter": 1
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -82,11 +82,11 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Designation",
|
"label": "Designation",
|
||||||
"oldfieldname": "designation",
|
"oldfieldname": "designation",
|
||||||
"options": "Designation",
|
"permlevel": 1,
|
||||||
"fieldname": "designation",
|
"fieldname": "designation",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"search_index": 0,
|
"search_index": 0,
|
||||||
"permlevel": 1,
|
"options": "Designation",
|
||||||
"in_filter": 1
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -94,11 +94,11 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Branch",
|
"label": "Branch",
|
||||||
"oldfieldname": "branch",
|
"oldfieldname": "branch",
|
||||||
"options": "Branch",
|
"permlevel": 1,
|
||||||
"fieldname": "branch",
|
"fieldname": "branch",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"search_index": 0,
|
"search_index": 0,
|
||||||
"permlevel": 1,
|
"options": "Branch",
|
||||||
"in_filter": 1
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -106,11 +106,11 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Grade",
|
"label": "Grade",
|
||||||
"oldfieldname": "grade",
|
"oldfieldname": "grade",
|
||||||
"options": "Grade",
|
"permlevel": 1,
|
||||||
"fieldname": "grade",
|
"fieldname": "grade",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"search_index": 0,
|
"search_index": 0,
|
||||||
"permlevel": 1,
|
"options": "Grade",
|
||||||
"in_filter": 1
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -133,10 +133,10 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Letter Head",
|
|
||||||
"options": "Letter Head",
|
"options": "Letter Head",
|
||||||
"fieldname": "letter_head",
|
"fieldname": "letter_head",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
|
"label": "Letter Head",
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -153,22 +153,22 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Fiscal Year",
|
"label": "Fiscal Year",
|
||||||
"oldfieldname": "fiscal_year",
|
"oldfieldname": "fiscal_year",
|
||||||
"permlevel": 0,
|
"options": "Fiscal Year",
|
||||||
"fieldname": "fiscal_year",
|
"fieldname": "fiscal_year",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"search_index": 0,
|
"search_index": 0,
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"options": "Fiscal Year",
|
"permlevel": 0,
|
||||||
"in_filter": 1
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Company",
|
"label": "Company",
|
||||||
"options": "link:Company",
|
"permlevel": 0,
|
||||||
"fieldname": "company",
|
"fieldname": "company",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"permlevel": 0,
|
"options": "link:Company",
|
||||||
"in_filter": 1
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -300,10 +300,10 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Salary Structure Earnings",
|
"label": "Salary Structure Earnings",
|
||||||
"oldfieldname": "earning_details",
|
"oldfieldname": "earning_details",
|
||||||
"options": "Salary Slip Earning",
|
"permlevel": 0,
|
||||||
"fieldname": "earning_details",
|
"fieldname": "earning_details",
|
||||||
"fieldtype": "Table",
|
"fieldtype": "Table",
|
||||||
"permlevel": 0
|
"options": "Salary Slip Earning"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"oldfieldtype": "Column Break",
|
"oldfieldtype": "Column Break",
|
||||||
@ -320,10 +320,10 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Deductions",
|
"label": "Deductions",
|
||||||
"oldfieldname": "deduction_details",
|
"oldfieldname": "deduction_details",
|
||||||
"options": "Salary Slip Deduction",
|
"permlevel": 0,
|
||||||
"fieldname": "deduction_details",
|
"fieldname": "deduction_details",
|
||||||
"fieldtype": "Table",
|
"fieldtype": "Table",
|
||||||
"permlevel": 0
|
"options": "Salary Slip Deduction"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"oldfieldtype": "Section Break",
|
"oldfieldtype": "Section Break",
|
||||||
@ -421,6 +421,7 @@
|
|||||||
"submit": 1,
|
"submit": 1,
|
||||||
"write": 1,
|
"write": 1,
|
||||||
"role": "HR User",
|
"role": "HR User",
|
||||||
|
"report": 1,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -429,18 +430,19 @@
|
|||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"submit": 1,
|
"submit": 1,
|
||||||
"write": 1,
|
"write": 1,
|
||||||
|
"report": 1,
|
||||||
"role": "HR Manager",
|
"role": "HR Manager",
|
||||||
"cancel": 1,
|
"cancel": 1,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocPerm",
|
|
||||||
"role": "HR User",
|
"role": "HR User",
|
||||||
"permlevel": 1
|
"permlevel": 1,
|
||||||
|
"doctype": "DocPerm"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocPerm",
|
|
||||||
"role": "HR Manager",
|
"role": "HR Manager",
|
||||||
"permlevel": 1
|
"permlevel": 1,
|
||||||
|
"doctype": "DocPerm"
|
||||||
}
|
}
|
||||||
]
|
]
|
@ -12,10 +12,10 @@
|
|||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
"colour": "White:FFF",
|
"colour": "White:FFF",
|
||||||
"module": "HR",
|
"module": "HR",
|
||||||
"show_in_menu": 0,
|
|
||||||
"version": 9,
|
|
||||||
"server_code_error": " ",
|
"server_code_error": " ",
|
||||||
"doctype": "DocType"
|
"version": 9,
|
||||||
|
"doctype": "DocType",
|
||||||
|
"show_in_menu": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
@ -28,6 +28,7 @@
|
|||||||
{
|
{
|
||||||
"parent": "Salary Slip Deduction",
|
"parent": "Salary Slip Deduction",
|
||||||
"read": 1,
|
"read": 1,
|
||||||
|
"report": 1,
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
"create": 1,
|
"create": 1,
|
||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
@ -45,15 +46,15 @@
|
|||||||
"doctype": "DocPerm"
|
"doctype": "DocPerm"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"permlevel": 0,
|
|
||||||
"oldfieldtype": "Data",
|
"oldfieldtype": "Data",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Type",
|
"label": "Type",
|
||||||
"oldfieldname": "d_type",
|
"oldfieldname": "d_type",
|
||||||
"width": "200px",
|
"width": "200px",
|
||||||
|
"options": "Deduction Type",
|
||||||
"fieldname": "d_type",
|
"fieldname": "d_type",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"options": "Deduction Type"
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"oldfieldtype": "Currency",
|
"oldfieldtype": "Currency",
|
||||||
|
@ -12,10 +12,10 @@
|
|||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
"colour": "White:FFF",
|
"colour": "White:FFF",
|
||||||
"module": "HR",
|
"module": "HR",
|
||||||
"show_in_menu": 0,
|
|
||||||
"version": 7,
|
|
||||||
"server_code_error": " ",
|
"server_code_error": " ",
|
||||||
"doctype": "DocType"
|
"version": 7,
|
||||||
|
"doctype": "DocType",
|
||||||
|
"show_in_menu": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
@ -27,6 +27,7 @@
|
|||||||
{
|
{
|
||||||
"parent": "Salary Slip Earning",
|
"parent": "Salary Slip Earning",
|
||||||
"read": 1,
|
"read": 1,
|
||||||
|
"report": 1,
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
"create": 1,
|
"create": 1,
|
||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
@ -44,15 +45,15 @@
|
|||||||
"doctype": "DocPerm"
|
"doctype": "DocPerm"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"permlevel": 0,
|
|
||||||
"oldfieldtype": "Data",
|
"oldfieldtype": "Data",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Type",
|
"label": "Type",
|
||||||
"oldfieldname": "e_type",
|
"oldfieldname": "e_type",
|
||||||
"width": "200px",
|
"width": "200px",
|
||||||
|
"options": "Earning Type",
|
||||||
"fieldname": "e_type",
|
"fieldname": "e_type",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"options": "Earning Type"
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"oldfieldtype": "Currency",
|
"oldfieldtype": "Currency",
|
||||||
|
@ -8,8 +8,8 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
"doctype": "DocType",
|
"module": "HR",
|
||||||
"module": "HR"
|
"doctype": "DocType"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
@ -44,12 +44,12 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Employee",
|
"label": "Employee",
|
||||||
"oldfieldname": "employee",
|
"oldfieldname": "employee",
|
||||||
"permlevel": 0,
|
|
||||||
"trigger": "Client",
|
"trigger": "Client",
|
||||||
"fieldname": "employee",
|
"fieldname": "employee",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"options": "Employee",
|
"options": "Employee",
|
||||||
|
"permlevel": 0,
|
||||||
"in_filter": 1
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -67,11 +67,11 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Branch",
|
"label": "Branch",
|
||||||
"oldfieldname": "branch",
|
"oldfieldname": "branch",
|
||||||
"options": "link:Branch",
|
"permlevel": 1,
|
||||||
"fieldname": "branch",
|
"fieldname": "branch",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"reqd": 0,
|
"reqd": 0,
|
||||||
"permlevel": 1,
|
"options": "link:Branch",
|
||||||
"in_filter": 1
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -80,11 +80,11 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Designation",
|
"label": "Designation",
|
||||||
"oldfieldname": "designation",
|
"oldfieldname": "designation",
|
||||||
"options": "link:Designation",
|
"permlevel": 1,
|
||||||
"fieldname": "designation",
|
"fieldname": "designation",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"reqd": 0,
|
"reqd": 0,
|
||||||
"permlevel": 1,
|
"options": "link:Designation",
|
||||||
"in_filter": 1
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -93,11 +93,11 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Department",
|
"label": "Department",
|
||||||
"oldfieldname": "department",
|
"oldfieldname": "department",
|
||||||
"options": "link:Department",
|
"permlevel": 1,
|
||||||
"fieldname": "department",
|
"fieldname": "department",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"reqd": 0,
|
"reqd": 0,
|
||||||
"permlevel": 1,
|
"options": "link:Department",
|
||||||
"in_filter": 1
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -106,11 +106,11 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Grade",
|
"label": "Grade",
|
||||||
"oldfieldname": "grade",
|
"oldfieldname": "grade",
|
||||||
"options": "link:Grade",
|
"permlevel": 1,
|
||||||
"fieldname": "grade",
|
"fieldname": "grade",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"reqd": 0,
|
"reqd": 0,
|
||||||
"permlevel": 1,
|
"options": "link:Grade",
|
||||||
"in_filter": 1
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -127,11 +127,11 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Is Active",
|
"label": "Is Active",
|
||||||
"oldfieldname": "is_active",
|
"oldfieldname": "is_active",
|
||||||
"permlevel": 0,
|
"options": "\nYes\nNo",
|
||||||
"fieldname": "is_active",
|
"fieldname": "is_active",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"options": "\nYes\nNo",
|
"permlevel": 0,
|
||||||
"in_filter": 1
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -169,11 +169,11 @@
|
|||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Company",
|
"label": "Company",
|
||||||
"options": "link:Company",
|
"permlevel": 0,
|
||||||
"fieldname": "company",
|
"fieldname": "company",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"permlevel": 0,
|
"options": "link:Company",
|
||||||
"in_filter": 1
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -204,11 +204,11 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Earning1",
|
"label": "Earning1",
|
||||||
"oldfieldname": "earning_details",
|
"oldfieldname": "earning_details",
|
||||||
"options": "Salary Structure Earning",
|
"permlevel": 0,
|
||||||
"fieldname": "earning_details",
|
"fieldname": "earning_details",
|
||||||
"fieldtype": "Table",
|
"fieldtype": "Table",
|
||||||
"hidden": 0,
|
"hidden": 0,
|
||||||
"permlevel": 0
|
"options": "Salary Structure Earning"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"oldfieldtype": "Column Break",
|
"oldfieldtype": "Column Break",
|
||||||
@ -228,18 +228,18 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Deduction1",
|
"label": "Deduction1",
|
||||||
"oldfieldname": "deduction_details",
|
"oldfieldname": "deduction_details",
|
||||||
"options": "Salary Structure Deduction",
|
"permlevel": 0,
|
||||||
"fieldname": "deduction_details",
|
"fieldname": "deduction_details",
|
||||||
"fieldtype": "Table",
|
"fieldtype": "Table",
|
||||||
"hidden": 0,
|
"hidden": 0,
|
||||||
"permlevel": 0
|
"options": "Salary Structure Deduction"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"options": "Simple",
|
"permlevel": 0,
|
||||||
"fieldname": "section_break0",
|
"fieldname": "section_break0",
|
||||||
"fieldtype": "Section Break",
|
"fieldtype": "Section Break",
|
||||||
"permlevel": 0
|
"options": "Simple"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
@ -281,16 +281,17 @@
|
|||||||
"permlevel": 1
|
"permlevel": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocPerm",
|
|
||||||
"write": 0,
|
"write": 0,
|
||||||
"role": "All",
|
"role": "All",
|
||||||
"permlevel": 1
|
"permlevel": 1,
|
||||||
|
"doctype": "DocPerm"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"create": 1,
|
"create": 1,
|
||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"write": 1,
|
"write": 1,
|
||||||
"role": "HR User",
|
"role": "HR User",
|
||||||
|
"report": 1,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -298,16 +299,17 @@
|
|||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"write": 1,
|
"write": 1,
|
||||||
"role": "HR Manager",
|
"role": "HR Manager",
|
||||||
|
"report": 1,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocPerm",
|
|
||||||
"role": "HR Manager",
|
"role": "HR Manager",
|
||||||
"permlevel": 1
|
"permlevel": 1,
|
||||||
|
"doctype": "DocPerm"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocPerm",
|
|
||||||
"role": "HR User",
|
"role": "HR User",
|
||||||
"permlevel": 1
|
"permlevel": 1,
|
||||||
|
"doctype": "DocPerm"
|
||||||
}
|
}
|
||||||
]
|
]
|
@ -12,15 +12,15 @@
|
|||||||
"allow_print": 0,
|
"allow_print": 0,
|
||||||
"search_fields": "item",
|
"search_fields": "item",
|
||||||
"module": "Manufacturing",
|
"module": "Manufacturing",
|
||||||
|
"doctype": "DocType",
|
||||||
|
"issingle": 0,
|
||||||
"document_type": "Master",
|
"document_type": "Master",
|
||||||
"allow_attach": 0,
|
"allow_attach": 0,
|
||||||
"read_only": 0,
|
"read_only": 0,
|
||||||
"allow_email": 0,
|
"allow_email": 0,
|
||||||
"hide_heading": 0,
|
"hide_heading": 0,
|
||||||
"issingle": 0,
|
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
"allow_rename": 0,
|
"allow_rename": 0,
|
||||||
"doctype": "DocType",
|
|
||||||
"is_submittable": 1,
|
"is_submittable": 1,
|
||||||
"hide_toolbar": 0,
|
"hide_toolbar": 0,
|
||||||
"allow_copy": 0
|
"allow_copy": 0
|
||||||
@ -50,13 +50,13 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Item",
|
"label": "Item",
|
||||||
"oldfieldname": "item",
|
"oldfieldname": "item",
|
||||||
"permlevel": 0,
|
"options": "Item",
|
||||||
"fieldname": "item",
|
"fieldname": "item",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"search_index": 1,
|
"search_index": 1,
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"in_filter": 1,
|
"permlevel": 0,
|
||||||
"options": "Item"
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
@ -101,21 +101,21 @@
|
|||||||
"oldfieldtype": "Section Break",
|
"oldfieldtype": "Section Break",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Operations",
|
"label": "Operations",
|
||||||
"options": "Specify the operations, operating cost and give a unique Operation no to your operations.",
|
"permlevel": 0,
|
||||||
"fieldname": "operations",
|
"fieldname": "operations",
|
||||||
"fieldtype": "Section Break",
|
"fieldtype": "Section Break",
|
||||||
"depends_on": "with_operations",
|
"depends_on": "with_operations",
|
||||||
"permlevel": 0
|
"options": "Specify the operations, operating cost and give a unique Operation no to your operations."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"oldfieldtype": "Table",
|
"oldfieldtype": "Table",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "BOM Operations",
|
"label": "BOM Operations",
|
||||||
"oldfieldname": "bom_operations",
|
"oldfieldname": "bom_operations",
|
||||||
"options": "BOM Operation",
|
"permlevel": 0,
|
||||||
"fieldname": "bom_operations",
|
"fieldname": "bom_operations",
|
||||||
"fieldtype": "Table",
|
"fieldtype": "Table",
|
||||||
"permlevel": 0
|
"options": "BOM Operation"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"oldfieldtype": "Section Break",
|
"oldfieldtype": "Section Break",
|
||||||
@ -130,10 +130,10 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "BOM Item",
|
"label": "BOM Item",
|
||||||
"oldfieldname": "bom_materials",
|
"oldfieldname": "bom_materials",
|
||||||
"options": "BOM Item",
|
"permlevel": 0,
|
||||||
"fieldname": "bom_materials",
|
"fieldname": "bom_materials",
|
||||||
"fieldtype": "Table",
|
"fieldtype": "Table",
|
||||||
"permlevel": 0
|
"options": "BOM Item"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"oldfieldtype": "Section Break",
|
"oldfieldtype": "Section Break",
|
||||||
@ -145,10 +145,10 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Rate Of Materials Based On",
|
|
||||||
"options": "Valuation Rate\nLast Purchase Rate",
|
"options": "Valuation Rate\nLast Purchase Rate",
|
||||||
"fieldname": "rm_cost_as_per",
|
"fieldname": "rm_cost_as_per",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
|
"label": "Rate Of Materials Based On",
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -199,10 +199,10 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Item UOM",
|
|
||||||
"options": "link:UOM",
|
"options": "link:UOM",
|
||||||
"fieldname": "uom",
|
"fieldname": "uom",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
|
"label": "Item UOM",
|
||||||
"permlevel": 1
|
"permlevel": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -216,10 +216,10 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Project Name",
|
"label": "Project Name",
|
||||||
"oldfieldname": "project_name",
|
"oldfieldname": "project_name",
|
||||||
"options": "Project",
|
"permlevel": 0,
|
||||||
"fieldname": "project_name",
|
"fieldname": "project_name",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"permlevel": 0,
|
"options": "Project",
|
||||||
"in_filter": 1
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -234,10 +234,10 @@
|
|||||||
"no_copy": 1,
|
"no_copy": 1,
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Amended From",
|
"label": "Amended From",
|
||||||
"options": "BOM",
|
"permlevel": 1,
|
||||||
"fieldname": "amended_from",
|
"fieldname": "amended_from",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"permlevel": 1
|
"options": "BOM"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 0,
|
"print_hide": 0,
|
||||||
@ -251,58 +251,61 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
"permlevel": 1,
|
|
||||||
"no_copy": 1,
|
"no_copy": 1,
|
||||||
"oldfieldtype": "Table",
|
"oldfieldtype": "Table",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Materials Required (Exploded)",
|
"label": "Materials Required (Exploded)",
|
||||||
"oldfieldname": "flat_bom_details",
|
"oldfieldname": "flat_bom_details",
|
||||||
"default": "No Toolbar",
|
"default": "No Toolbar",
|
||||||
|
"options": "BOM Explosion Item",
|
||||||
"fieldname": "flat_bom_details",
|
"fieldname": "flat_bom_details",
|
||||||
"fieldtype": "Table",
|
"fieldtype": "Table",
|
||||||
"hidden": 0,
|
"hidden": 0,
|
||||||
"options": "BOM Explosion Item"
|
"permlevel": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"create": 1,
|
"create": 1,
|
||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"submit": 1,
|
"submit": 1,
|
||||||
"write": 1,
|
"write": 1,
|
||||||
|
"cancel": 1,
|
||||||
"role": "System Manager",
|
"role": "System Manager",
|
||||||
"cancel": 1,
|
"report": 1,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocPerm",
|
|
||||||
"role": "System Manager",
|
"role": "System Manager",
|
||||||
"permlevel": 1
|
"permlevel": 1,
|
||||||
|
"doctype": "DocPerm"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"create": 1,
|
"create": 1,
|
||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"submit": 1,
|
"submit": 1,
|
||||||
"write": 1,
|
"write": 1,
|
||||||
"role": "Manufacturing Manager",
|
|
||||||
"cancel": 1,
|
"cancel": 1,
|
||||||
|
"role": "Manufacturing Manager",
|
||||||
|
"report": 1,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocPerm",
|
|
||||||
"role": "Manufacturing Manager",
|
"role": "Manufacturing Manager",
|
||||||
"permlevel": 1
|
"permlevel": 1,
|
||||||
|
"doctype": "DocPerm"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"create": 1,
|
"create": 1,
|
||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"submit": 1,
|
"submit": 1,
|
||||||
"write": 1,
|
"write": 1,
|
||||||
"role": "Manufacturing User",
|
|
||||||
"cancel": 1,
|
"cancel": 1,
|
||||||
|
"role": "Manufacturing User",
|
||||||
|
"report": 1,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocPerm",
|
|
||||||
"role": "Manufacturing User",
|
"role": "Manufacturing User",
|
||||||
"permlevel": 1
|
"permlevel": 1,
|
||||||
|
"doctype": "DocPerm"
|
||||||
}
|
}
|
||||||
]
|
]
|
@ -9,8 +9,8 @@
|
|||||||
{
|
{
|
||||||
"istable": 1,
|
"istable": 1,
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
"doctype": "DocType",
|
"module": "Manufacturing",
|
||||||
"module": "Manufacturing"
|
"doctype": "DocType"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
@ -47,26 +47,26 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Item Code",
|
"label": "Item Code",
|
||||||
"oldfieldname": "item_code",
|
"oldfieldname": "item_code",
|
||||||
"options": "Item",
|
"permlevel": 0,
|
||||||
"fieldname": "item_code",
|
"fieldname": "item_code",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"search_index": 1,
|
"search_index": 1,
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"permlevel": 0,
|
"options": "Item",
|
||||||
"in_filter": 1
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"permlevel": 0,
|
|
||||||
"oldfieldtype": "Link",
|
"oldfieldtype": "Link",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "BOM No",
|
"label": "BOM No",
|
||||||
"oldfieldname": "bom_no",
|
"oldfieldname": "bom_no",
|
||||||
"width": "150px",
|
"width": "150px",
|
||||||
|
"options": "BOM",
|
||||||
"fieldname": "bom_no",
|
"fieldname": "bom_no",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"search_index": 1,
|
"search_index": 1,
|
||||||
"reqd": 0,
|
"reqd": 0,
|
||||||
"options": "BOM",
|
"permlevel": 0,
|
||||||
"in_filter": 1
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -140,11 +140,12 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"write": 1,
|
"write": 1,
|
||||||
"doctype": "DocPerm",
|
"report": 1,
|
||||||
"permlevel": 0
|
"permlevel": 0,
|
||||||
|
"doctype": "DocPerm"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocPerm",
|
"permlevel": 1,
|
||||||
"permlevel": 1
|
"doctype": "DocPerm"
|
||||||
}
|
}
|
||||||
]
|
]
|
@ -9,8 +9,8 @@
|
|||||||
{
|
{
|
||||||
"istable": 1,
|
"istable": 1,
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
"doctype": "DocType",
|
"module": "Manufacturing",
|
||||||
"module": "Manufacturing"
|
"doctype": "DocType"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
@ -91,11 +91,12 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"write": 1,
|
"write": 1,
|
||||||
"doctype": "DocPerm",
|
"report": 1,
|
||||||
"permlevel": 0
|
"permlevel": 0,
|
||||||
|
"doctype": "DocPerm"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocPerm",
|
"permlevel": 1,
|
||||||
"permlevel": 1
|
"doctype": "DocPerm"
|
||||||
}
|
}
|
||||||
]
|
]
|
@ -8,10 +8,10 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"is_submittable": 1,
|
"is_submittable": 1,
|
||||||
"autoname": "naming_series:",
|
|
||||||
"in_create": 0,
|
"in_create": 0,
|
||||||
"doctype": "DocType",
|
"autoname": "naming_series:",
|
||||||
"module": "Manufacturing",
|
"module": "Manufacturing",
|
||||||
|
"doctype": "DocType",
|
||||||
"name": "__common__"
|
"name": "__common__"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -25,15 +25,16 @@
|
|||||||
{
|
{
|
||||||
"parent": "Production Order",
|
"parent": "Production Order",
|
||||||
"read": 1,
|
"read": 1,
|
||||||
|
"doctype": "DocPerm",
|
||||||
"cancel": 1,
|
"cancel": 1,
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
"amend": 1,
|
"amend": 1,
|
||||||
"create": 1,
|
"create": 1,
|
||||||
"doctype": "DocPerm",
|
|
||||||
"submit": 1,
|
"submit": 1,
|
||||||
"write": 1,
|
"write": 1,
|
||||||
"parenttype": "DocType",
|
"parenttype": "DocType",
|
||||||
"role": "Manufacturing User",
|
"role": "Manufacturing User",
|
||||||
|
"report": 1,
|
||||||
"permlevel": 0,
|
"permlevel": 0,
|
||||||
"parentfield": "permissions"
|
"parentfield": "permissions"
|
||||||
},
|
},
|
||||||
@ -52,15 +53,15 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"read_only": 1,
|
"read_only": 1,
|
||||||
"depends_on": "eval:!doc.__islocal",
|
"doctype": "DocField",
|
||||||
"no_copy": 1,
|
"no_copy": 1,
|
||||||
"search_index": 1,
|
"search_index": 1,
|
||||||
"doctype": "DocField",
|
"oldfieldtype": "Select",
|
||||||
"label": "Status",
|
"label": "Status",
|
||||||
"oldfieldname": "status",
|
"oldfieldname": "status",
|
||||||
"fieldname": "status",
|
"fieldname": "status",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"oldfieldtype": "Select",
|
"depends_on": "eval:!doc.__islocal",
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"options": "\nDraft\nSubmitted\nStopped\nIn Process\nCompleted\nCancelled",
|
"options": "\nDraft\nSubmitted\nStopped\nIn Process\nCompleted\nCancelled",
|
||||||
"in_filter": 1
|
"in_filter": 1
|
||||||
|
@ -8,10 +8,10 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"istable": 1,
|
"istable": 1,
|
||||||
"autoname": "PP/.SO/.#####",
|
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
"doctype": "DocType",
|
"autoname": "PP/.SO/.#####",
|
||||||
"module": "Manufacturing"
|
"module": "Manufacturing",
|
||||||
|
"doctype": "DocType"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
@ -73,11 +73,12 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"write": 1,
|
"write": 1,
|
||||||
"doctype": "DocPerm",
|
"report": 1,
|
||||||
"permlevel": 0
|
"permlevel": 0,
|
||||||
|
"doctype": "DocPerm"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocPerm",
|
"permlevel": 1,
|
||||||
"permlevel": 1
|
"doctype": "DocPerm"
|
||||||
}
|
}
|
||||||
]
|
]
|
@ -8,13 +8,13 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"section_style": "Simple",
|
"section_style": "Simple",
|
||||||
"module": "Manufacturing",
|
|
||||||
"doctype": "DocType",
|
"doctype": "DocType",
|
||||||
"allow_trash": 1,
|
"module": "Manufacturing",
|
||||||
"server_code_error": " ",
|
"server_code_error": " ",
|
||||||
|
"allow_trash": 1,
|
||||||
|
"autoname": "field:workstation_name",
|
||||||
"document_type": "Master",
|
"document_type": "Master",
|
||||||
"allow_email": 0,
|
"allow_email": 0,
|
||||||
"autoname": "field:workstation_name",
|
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
"colour": "White:FFF",
|
"colour": "White:FFF",
|
||||||
"_last_update": "1322125389",
|
"_last_update": "1322125389",
|
||||||
@ -44,8 +44,9 @@
|
|||||||
"create": 1,
|
"create": 1,
|
||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"write": 1,
|
"write": 1,
|
||||||
"role": "System Manager",
|
|
||||||
"cancel": 1,
|
"cancel": 1,
|
||||||
|
"role": "System Manager",
|
||||||
|
"report": 1,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -57,16 +58,18 @@
|
|||||||
"create": 1,
|
"create": 1,
|
||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"write": 1,
|
"write": 1,
|
||||||
"role": "Manufacturing User",
|
|
||||||
"cancel": 1,
|
"cancel": 1,
|
||||||
|
"role": "Manufacturing User",
|
||||||
|
"report": 1,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"create": 1,
|
"create": 1,
|
||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"write": 1,
|
"write": 1,
|
||||||
"role": "Manufacturing User",
|
|
||||||
"cancel": 1,
|
"cancel": 1,
|
||||||
|
"role": "Manufacturing User",
|
||||||
|
"report": 1,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -103,11 +106,11 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Warehouse",
|
"label": "Warehouse",
|
||||||
"oldfieldname": "warehouse",
|
"oldfieldname": "warehouse",
|
||||||
"permlevel": 0,
|
"options": "Warehouse",
|
||||||
"fieldname": "warehouse",
|
"fieldname": "warehouse",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"options": "Warehouse"
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"oldfieldtype": "Text",
|
"oldfieldtype": "Text",
|
||||||
@ -135,12 +138,12 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Capacity Units",
|
"label": "Capacity Units",
|
||||||
"oldfieldname": "capacity_units",
|
"oldfieldname": "capacity_units",
|
||||||
"permlevel": 0,
|
"options": "\nUnits/Shifts\nUnits/Hour",
|
||||||
"fieldname": "capacity_units",
|
"fieldname": "capacity_units",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"reqd": 0,
|
"reqd": 0,
|
||||||
"hidden": 1,
|
"hidden": 1,
|
||||||
"options": "\nUnits/Shifts\nUnits/Hour"
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"oldfieldtype": "Currency",
|
"oldfieldtype": "Currency",
|
||||||
|
9
patches/january_2013/purchase_price_list.py
Normal file
9
patches/january_2013/purchase_price_list.py
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
import webnotes
|
||||||
|
|
||||||
|
def execute():
|
||||||
|
webnotes.reload_doc("stock", "doctype", "item_price")
|
||||||
|
|
||||||
|
# check for selling
|
||||||
|
webnotes.conn.sql("""update `tabItem Price` set selling=1
|
||||||
|
where ifnull(selling, 0)=0 and ifnull(buying, 0)=0""")
|
||||||
|
|
@ -152,4 +152,5 @@ patch_list = [
|
|||||||
"patches.january_2013.update_country_info",
|
"patches.january_2013.update_country_info",
|
||||||
"patches.january_2013.remove_tds_entry_from_gl_mapper",
|
"patches.january_2013.remove_tds_entry_from_gl_mapper",
|
||||||
"patches.january_2013.update_number_format",
|
"patches.january_2013.update_number_format",
|
||||||
|
"patches.january_2013.purchase_price_list",
|
||||||
]
|
]
|
@ -9,23 +9,23 @@
|
|||||||
{
|
{
|
||||||
"section_style": "Simple",
|
"section_style": "Simple",
|
||||||
"module": "Projects",
|
"module": "Projects",
|
||||||
|
"server_code_error": " ",
|
||||||
"in_dialog": 1,
|
"in_dialog": 1,
|
||||||
"autoname": "field:activity_type",
|
|
||||||
"document_type": "Master",
|
"document_type": "Master",
|
||||||
|
"autoname": "field:activity_type",
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
"colour": "White:FFF",
|
"colour": "White:FFF",
|
||||||
"doctype": "DocType",
|
"doctype": "DocType",
|
||||||
"server_code_error": " ",
|
|
||||||
"version": 1
|
"version": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"parent": "Activity Type",
|
"parent": "Activity Type",
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
|
"reqd": 1,
|
||||||
"parenttype": "DocType",
|
"parenttype": "DocType",
|
||||||
"fieldname": "activity_type",
|
"fieldname": "activity_type",
|
||||||
"fieldtype": "Data",
|
"fieldtype": "Data",
|
||||||
"reqd": 1,
|
|
||||||
"label": "Activity Type",
|
"label": "Activity Type",
|
||||||
"permlevel": 0,
|
"permlevel": 0,
|
||||||
"parentfield": "fields"
|
"parentfield": "fields"
|
||||||
@ -38,6 +38,7 @@
|
|||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"write": 1,
|
"write": 1,
|
||||||
"parenttype": "DocType",
|
"parenttype": "DocType",
|
||||||
|
"report": 1,
|
||||||
"permlevel": 0,
|
"permlevel": 0,
|
||||||
"parentfield": "permissions"
|
"parentfield": "permissions"
|
||||||
},
|
},
|
||||||
|
@ -7,13 +7,13 @@
|
|||||||
"modified": "2012-12-03 17:10:41"
|
"modified": "2012-12-03 17:10:41"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"autoname": "field:project_name",
|
"document_type": "Master",
|
||||||
"allow_attach": 1,
|
"allow_attach": 1,
|
||||||
"search_fields": "customer, status, priority, is_active",
|
"autoname": "field:project_name",
|
||||||
"module": "Projects",
|
"module": "Projects",
|
||||||
"doctype": "DocType",
|
"doctype": "DocType",
|
||||||
"max_attachments": 4,
|
"max_attachments": 4,
|
||||||
"document_type": "Master",
|
"search_fields": "customer, status, priority, is_active",
|
||||||
"name": "__common__"
|
"name": "__common__"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -76,11 +76,11 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Is Active",
|
"label": "Is Active",
|
||||||
"oldfieldname": "is_active",
|
"oldfieldname": "is_active",
|
||||||
"options": "Yes\nNo",
|
"permlevel": 0,
|
||||||
"fieldname": "is_active",
|
"fieldname": "is_active",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"search_index": 0,
|
"search_index": 0,
|
||||||
"permlevel": 0
|
"options": "Yes\nNo"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"no_copy": 0,
|
"no_copy": 0,
|
||||||
@ -88,11 +88,11 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Priority",
|
"label": "Priority",
|
||||||
"oldfieldname": "priority",
|
"oldfieldname": "priority",
|
||||||
"options": "Medium\nLow\nHigh",
|
"permlevel": 0,
|
||||||
"fieldname": "priority",
|
"fieldname": "priority",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"search_index": 0,
|
"search_index": 0,
|
||||||
"permlevel": 0
|
"options": "Medium\nLow\nHigh"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
@ -141,11 +141,11 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Project Type",
|
"label": "Project Type",
|
||||||
"oldfieldname": "project_type",
|
"oldfieldname": "project_type",
|
||||||
"options": "Internal\nExternal\nOther",
|
"permlevel": 0,
|
||||||
"fieldname": "project_type",
|
"fieldname": "project_type",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"search_index": 0,
|
"search_index": 0,
|
||||||
"permlevel": 0
|
"options": "Internal\nExternal\nOther"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "Important dates and commitments in your project life cycle",
|
"description": "Important dates and commitments in your project life cycle",
|
||||||
@ -165,11 +165,11 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Project Milestones",
|
"label": "Project Milestones",
|
||||||
"oldfieldname": "project_milestones",
|
"oldfieldname": "project_milestones",
|
||||||
"permlevel": 0,
|
"options": "Project Milestone",
|
||||||
"fieldname": "project_milestones",
|
"fieldname": "project_milestones",
|
||||||
"fieldtype": "Table",
|
"fieldtype": "Table",
|
||||||
"search_index": 0,
|
"search_index": 0,
|
||||||
"options": "Project Milestone"
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "Tasks belonging to this Project.",
|
"description": "Tasks belonging to this Project.",
|
||||||
@ -191,10 +191,10 @@
|
|||||||
"oldfieldtype": "Section Break",
|
"oldfieldtype": "Section Break",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Project Details",
|
"label": "Project Details",
|
||||||
"options": "Simple",
|
"permlevel": 0,
|
||||||
"fieldname": "section_break0",
|
"fieldname": "section_break0",
|
||||||
"fieldtype": "Section Break",
|
"fieldtype": "Section Break",
|
||||||
"permlevel": 0
|
"options": "Simple"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"no_copy": 0,
|
"no_copy": 0,
|
||||||
@ -211,10 +211,10 @@
|
|||||||
"oldfieldtype": "Section Break",
|
"oldfieldtype": "Section Break",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Project Costing",
|
"label": "Project Costing",
|
||||||
"options": "Simple",
|
"permlevel": 0,
|
||||||
"fieldname": "project_details",
|
"fieldname": "project_details",
|
||||||
"fieldtype": "Section Break",
|
"fieldtype": "Section Break",
|
||||||
"permlevel": 0
|
"options": "Simple"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"no_copy": 0,
|
"no_copy": 0,
|
||||||
@ -297,8 +297,8 @@
|
|||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"search_index": 1,
|
"search_index": 1,
|
||||||
"reqd": 0,
|
"reqd": 0,
|
||||||
"in_filter": 1,
|
"options": "Customer",
|
||||||
"options": "Customer"
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"no_copy": 0,
|
"no_copy": 0,
|
||||||
@ -382,11 +382,11 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Customer Group",
|
"label": "Customer Group",
|
||||||
"oldfieldname": "customer_group",
|
"oldfieldname": "customer_group",
|
||||||
"options": "Customer Group",
|
"permlevel": 1,
|
||||||
"fieldname": "customer_group",
|
"fieldname": "customer_group",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"search_index": 0,
|
"search_index": 0,
|
||||||
"permlevel": 1
|
"options": "Customer Group"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
@ -419,13 +419,14 @@
|
|||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"submit": 0,
|
"submit": 0,
|
||||||
"write": 1,
|
"write": 1,
|
||||||
|
"report": 1,
|
||||||
"role": "Projects User",
|
"role": "Projects User",
|
||||||
"cancel": 1,
|
"cancel": 1,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocPerm",
|
|
||||||
"role": "All",
|
"role": "All",
|
||||||
"permlevel": 1
|
"permlevel": 1,
|
||||||
|
"doctype": "DocPerm"
|
||||||
}
|
}
|
||||||
]
|
]
|
@ -11,13 +11,13 @@
|
|||||||
"is_submittable": 1,
|
"is_submittable": 1,
|
||||||
"search_fields": "status, owner, timesheet_date",
|
"search_fields": "status, owner, timesheet_date",
|
||||||
"module": "Projects",
|
"module": "Projects",
|
||||||
"server_code_error": " ",
|
|
||||||
"subject": "%(owner)s",
|
|
||||||
"autoname": "TimeSheet.#####",
|
"autoname": "TimeSheet.#####",
|
||||||
|
"show_in_menu": 0,
|
||||||
|
"subject": "%(owner)s",
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
"colour": "White:FFF",
|
"colour": "White:FFF",
|
||||||
"doctype": "DocType",
|
"doctype": "DocType",
|
||||||
"show_in_menu": 0,
|
"server_code_error": " ",
|
||||||
"version": 69
|
"version": 69
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -45,6 +45,7 @@
|
|||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"submit": 1,
|
"submit": 1,
|
||||||
"write": 1,
|
"write": 1,
|
||||||
|
"report": 1,
|
||||||
"role": "Projects User",
|
"role": "Projects User",
|
||||||
"cancel": 1,
|
"cancel": 1,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
@ -60,6 +61,7 @@
|
|||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"submit": 1,
|
"submit": 1,
|
||||||
"write": 1,
|
"write": 1,
|
||||||
|
"report": 1,
|
||||||
"role": "System Manager",
|
"role": "System Manager",
|
||||||
"cancel": 1,
|
"cancel": 1,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
@ -110,12 +112,12 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Timesheet By",
|
"label": "Timesheet By",
|
||||||
"oldfieldname": "owner",
|
"oldfieldname": "owner",
|
||||||
"options": "Profile",
|
"permlevel": 0,
|
||||||
"fieldname": "owner",
|
"fieldname": "owner",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"oldfieldtype": "Link",
|
"oldfieldtype": "Link",
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"permlevel": 0,
|
"options": "Profile",
|
||||||
"in_filter": 1
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -155,19 +157,19 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"permlevel": 0,
|
"options": "Simple",
|
||||||
"fieldname": "section_break0",
|
"fieldname": "section_break0",
|
||||||
"fieldtype": "Section Break",
|
"fieldtype": "Section Break",
|
||||||
"options": "Simple"
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"oldfieldtype": "Table",
|
"oldfieldtype": "Table",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Timesheet Details",
|
"label": "Timesheet Details",
|
||||||
"oldfieldname": "timesheet_details",
|
"oldfieldname": "timesheet_details",
|
||||||
"permlevel": 0,
|
"options": "Timesheet Detail",
|
||||||
"fieldname": "timesheet_details",
|
"fieldname": "timesheet_details",
|
||||||
"fieldtype": "Table",
|
"fieldtype": "Table",
|
||||||
"options": "Timesheet Detail"
|
"permlevel": 0
|
||||||
}
|
}
|
||||||
]
|
]
|
@ -10,14 +10,14 @@
|
|||||||
"section_style": "Simple",
|
"section_style": "Simple",
|
||||||
"description": "Keep Track of Sales Campaigns. Keep track of Leads, Quotations, Sales Order etc from Campaigns to gauge Return on Investment. ",
|
"description": "Keep Track of Sales Campaigns. Keep track of Leads, Quotations, Sales Order etc from Campaigns to gauge Return on Investment. ",
|
||||||
"module": "Selling",
|
"module": "Selling",
|
||||||
"doctype": "DocType",
|
|
||||||
"allow_trash": 1,
|
|
||||||
"server_code_error": " ",
|
"server_code_error": " ",
|
||||||
"document_type": "Master",
|
"allow_trash": 1,
|
||||||
"autoname": "field:campaign_name",
|
"autoname": "field:campaign_name",
|
||||||
|
"document_type": "Master",
|
||||||
|
"_last_update": "1326102553",
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
"colour": "White:FFF",
|
"colour": "White:FFF",
|
||||||
"_last_update": "1326102553",
|
"doctype": "DocType",
|
||||||
"show_in_menu": 0,
|
"show_in_menu": 0,
|
||||||
"version": 1
|
"version": 1
|
||||||
},
|
},
|
||||||
@ -32,8 +32,8 @@
|
|||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
"parent": "Campaign",
|
"parent": "Campaign",
|
||||||
"amend": 0,
|
"amend": 0,
|
||||||
"doctype": "DocPerm",
|
|
||||||
"submit": 0,
|
"submit": 0,
|
||||||
|
"doctype": "DocPerm",
|
||||||
"read": 1,
|
"read": 1,
|
||||||
"parenttype": "DocType",
|
"parenttype": "DocType",
|
||||||
"parentfield": "permissions"
|
"parentfield": "permissions"
|
||||||
@ -54,6 +54,7 @@
|
|||||||
"create": 0,
|
"create": 0,
|
||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"write": 0,
|
"write": 0,
|
||||||
|
"report": 1,
|
||||||
"role": "Sales Manager",
|
"role": "Sales Manager",
|
||||||
"cancel": 0,
|
"cancel": 0,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
@ -78,6 +79,7 @@
|
|||||||
"create": 0,
|
"create": 0,
|
||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"write": 0,
|
"write": 0,
|
||||||
|
"report": 1,
|
||||||
"role": "Sales User",
|
"role": "Sales User",
|
||||||
"cancel": 0,
|
"cancel": 0,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
@ -86,6 +88,7 @@
|
|||||||
"create": 1,
|
"create": 1,
|
||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"write": 1,
|
"write": 1,
|
||||||
|
"report": 1,
|
||||||
"role": "Sales Master Manager",
|
"role": "Sales Master Manager",
|
||||||
"cancel": 1,
|
"cancel": 1,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
|
@ -7,14 +7,14 @@
|
|||||||
"modified": "2012-12-27 14:02:01"
|
"modified": "2012-12-27 14:02:01"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"autoname": "naming_series:",
|
"document_type": "Master",
|
||||||
"description": "Buyer of Goods and Services.",
|
"description": "Buyer of Goods and Services.",
|
||||||
|
"autoname": "naming_series:",
|
||||||
"allow_rename": 1,
|
"allow_rename": 1,
|
||||||
"allow_print": 0,
|
"allow_print": 0,
|
||||||
"search_fields": "customer_name,customer_group,country,territory",
|
|
||||||
"module": "Selling",
|
"module": "Selling",
|
||||||
"doctype": "DocType",
|
"doctype": "DocType",
|
||||||
"document_type": "Master",
|
"search_fields": "customer_name,customer_group,country,territory",
|
||||||
"name": "__common__"
|
"name": "__common__"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -67,21 +67,21 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Customer Type",
|
"label": "Customer Type",
|
||||||
"oldfieldname": "customer_type",
|
"oldfieldname": "customer_type",
|
||||||
"options": "\nCompany\nIndividual",
|
"permlevel": 0,
|
||||||
"fieldname": "customer_type",
|
"fieldname": "customer_type",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"permlevel": 0
|
"options": "\nCompany\nIndividual"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 0,
|
"print_hide": 0,
|
||||||
"no_copy": 1,
|
"no_copy": 1,
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Series",
|
"label": "Series",
|
||||||
"options": "\nCUST\nCUSTMUM",
|
"permlevel": 0,
|
||||||
"fieldname": "naming_series",
|
"fieldname": "naming_series",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"permlevel": 0
|
"options": "\nCUST\nCUSTMUM"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
@ -95,9 +95,9 @@
|
|||||||
"fieldname": "lead_name",
|
"fieldname": "lead_name",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"hidden": 0,
|
"hidden": 0,
|
||||||
"in_filter": 1,
|
|
||||||
"options": "Lead",
|
"options": "Lead",
|
||||||
"report_hide": 1
|
"report_hide": 1,
|
||||||
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
@ -119,8 +119,8 @@
|
|||||||
"search_index": 1,
|
"search_index": 1,
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"hidden": 0,
|
"hidden": 0,
|
||||||
"in_filter": 1,
|
"options": "Customer Group",
|
||||||
"options": "Customer Group"
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
@ -129,11 +129,11 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Territory",
|
"label": "Territory",
|
||||||
"oldfieldname": "territory",
|
"oldfieldname": "territory",
|
||||||
"options": "Territory",
|
"permlevel": 0,
|
||||||
"fieldname": "territory",
|
"fieldname": "territory",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"permlevel": 0
|
"options": "Territory"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
@ -146,10 +146,10 @@
|
|||||||
"depends_on": "eval:doc.__islocal",
|
"depends_on": "eval:doc.__islocal",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Address Desc",
|
"label": "Address Desc",
|
||||||
"options": "<em>Addresses will appear only when you save the customer</em>",
|
"permlevel": 0,
|
||||||
"fieldname": "address_desc",
|
"fieldname": "address_desc",
|
||||||
"fieldtype": "HTML",
|
"fieldtype": "HTML",
|
||||||
"permlevel": 0
|
"options": "<em>Addresses will appear only when you save the customer</em>"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
@ -169,10 +169,10 @@
|
|||||||
"depends_on": "eval:doc.__islocal",
|
"depends_on": "eval:doc.__islocal",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Contact Desc",
|
"label": "Contact Desc",
|
||||||
"options": "<em>Contact Details will appear only when you save the customer</em>",
|
"permlevel": 0,
|
||||||
"fieldname": "contact_desc",
|
"fieldname": "contact_desc",
|
||||||
"fieldtype": "HTML",
|
"fieldtype": "HTML",
|
||||||
"permlevel": 0
|
"options": "<em>Contact Details will appear only when you save the customer</em>"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"oldfieldtype": "HTML",
|
"oldfieldtype": "HTML",
|
||||||
@ -216,20 +216,20 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Company",
|
"label": "Company",
|
||||||
"oldfieldname": "company",
|
"oldfieldname": "company",
|
||||||
"permlevel": 0,
|
"options": "Company",
|
||||||
"fieldname": "company",
|
"fieldname": "company",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"search_index": 1,
|
"search_index": 1,
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"in_filter": 1,
|
"permlevel": 0,
|
||||||
"options": "Company"
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Default Price List",
|
|
||||||
"options": "Price List",
|
"options": "Price List",
|
||||||
"fieldname": "default_price_list",
|
"fieldname": "default_price_list",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
|
"label": "Default Price List",
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -237,10 +237,10 @@
|
|||||||
"no_copy": 1,
|
"no_copy": 1,
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Default Currency",
|
"label": "Default Currency",
|
||||||
"options": "link:Currency",
|
"permlevel": 0,
|
||||||
"fieldname": "default_currency",
|
"fieldname": "default_currency",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"permlevel": 0
|
"options": "link:Currency"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "Your Customer's TAX registration numbers (if applicable) or any general information",
|
"description": "Your Customer's TAX registration numbers (if applicable) or any general information",
|
||||||
@ -297,10 +297,10 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Default Sales Partner",
|
"label": "Default Sales Partner",
|
||||||
"oldfieldname": "default_sales_partner",
|
"oldfieldname": "default_sales_partner",
|
||||||
"options": "Sales Partner",
|
"permlevel": 0,
|
||||||
"fieldname": "default_sales_partner",
|
"fieldname": "default_sales_partner",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"permlevel": 0
|
"options": "Sales Partner"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"oldfieldtype": "Currency",
|
"oldfieldtype": "Currency",
|
||||||
@ -316,10 +316,10 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Sales Team Details",
|
"label": "Sales Team Details",
|
||||||
"oldfieldname": "sales_team",
|
"oldfieldname": "sales_team",
|
||||||
"options": "Sales Team",
|
"permlevel": 0,
|
||||||
"fieldname": "sales_team",
|
"fieldname": "sales_team",
|
||||||
"fieldtype": "Table",
|
"fieldtype": "Table",
|
||||||
"permlevel": 0
|
"options": "Sales Team"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"amend": 0,
|
"amend": 0,
|
||||||
@ -327,8 +327,8 @@
|
|||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"submit": 0,
|
"submit": 0,
|
||||||
"write": 0,
|
"write": 0,
|
||||||
"cancel": 0,
|
|
||||||
"role": "Sales Manager",
|
"role": "Sales Manager",
|
||||||
|
"cancel": 0,
|
||||||
"permlevel": 1
|
"permlevel": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -337,8 +337,9 @@
|
|||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"submit": 0,
|
"submit": 0,
|
||||||
"write": 0,
|
"write": 0,
|
||||||
"cancel": 0,
|
"report": 1,
|
||||||
"role": "Sales Manager",
|
"role": "Sales Manager",
|
||||||
|
"cancel": 0,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -347,8 +348,8 @@
|
|||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"submit": 0,
|
"submit": 0,
|
||||||
"write": 0,
|
"write": 0,
|
||||||
"cancel": 0,
|
|
||||||
"role": "Sales User",
|
"role": "Sales User",
|
||||||
|
"cancel": 0,
|
||||||
"permlevel": 1
|
"permlevel": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -357,8 +358,9 @@
|
|||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"submit": 0,
|
"submit": 0,
|
||||||
"write": 0,
|
"write": 0,
|
||||||
"cancel": 0,
|
"report": 1,
|
||||||
"role": "Sales User",
|
"role": "Sales User",
|
||||||
|
"cancel": 0,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -367,8 +369,9 @@
|
|||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"submit": 0,
|
"submit": 0,
|
||||||
"write": 1,
|
"write": 1,
|
||||||
|
"report": 1,
|
||||||
|
"role": "Sales Master Manager",
|
||||||
"cancel": 1,
|
"cancel": 1,
|
||||||
"role": "Sales Master Manager",
|
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -377,8 +380,8 @@
|
|||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"submit": 0,
|
"submit": 0,
|
||||||
"write": 0,
|
"write": 0,
|
||||||
"cancel": 0,
|
|
||||||
"role": "Sales Master Manager",
|
"role": "Sales Master Manager",
|
||||||
|
"cancel": 0,
|
||||||
"permlevel": 1
|
"permlevel": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -387,8 +390,9 @@
|
|||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"submit": 0,
|
"submit": 0,
|
||||||
"write": 1,
|
"write": 1,
|
||||||
"cancel": 0,
|
"report": 1,
|
||||||
"role": "Purchase User",
|
"role": "Purchase User",
|
||||||
|
"cancel": 0,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -419,8 +423,9 @@
|
|||||||
"create": 1,
|
"create": 1,
|
||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"write": 1,
|
"write": 1,
|
||||||
"role": "Accounts Manager",
|
|
||||||
"cancel": 1,
|
"cancel": 1,
|
||||||
|
"role": "Accounts Manager",
|
||||||
|
"report": 1,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -9,21 +9,21 @@
|
|||||||
{
|
{
|
||||||
"section_style": "Simple",
|
"section_style": "Simple",
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
|
"autoname": "field:industry",
|
||||||
"colour": "White:FFF",
|
"colour": "White:FFF",
|
||||||
"module": "Selling",
|
"module": "Selling",
|
||||||
"server_code_error": " ",
|
"server_code_error": " ",
|
||||||
"version": 4,
|
"version": 4,
|
||||||
"doctype": "DocType",
|
"doctype": "DocType",
|
||||||
"autoname": "field:industry",
|
|
||||||
"document_type": "Master"
|
"document_type": "Master"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"parent": "Industry Type",
|
"parent": "Industry Type",
|
||||||
"oldfieldtype": "Data",
|
"oldfieldtype": "Data",
|
||||||
|
"doctype": "DocField",
|
||||||
"oldfieldname": "industry",
|
"oldfieldname": "industry",
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
"doctype": "DocField",
|
|
||||||
"label": "Industry",
|
"label": "Industry",
|
||||||
"parenttype": "DocType",
|
"parenttype": "DocType",
|
||||||
"fieldname": "industry",
|
"fieldname": "industry",
|
||||||
@ -36,6 +36,7 @@
|
|||||||
"parent": "Industry Type",
|
"parent": "Industry Type",
|
||||||
"read": 1,
|
"read": 1,
|
||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
|
"report": 1,
|
||||||
"parenttype": "DocType",
|
"parenttype": "DocType",
|
||||||
"permlevel": 0,
|
"permlevel": 0,
|
||||||
"parentfield": "permissions"
|
"parentfield": "permissions"
|
||||||
|
@ -10,13 +10,13 @@
|
|||||||
"section_style": "Simple",
|
"section_style": "Simple",
|
||||||
"is_submittable": 1,
|
"is_submittable": 1,
|
||||||
"module": "Selling",
|
"module": "Selling",
|
||||||
"doctype": "DocType",
|
|
||||||
"server_code_error": " ",
|
"server_code_error": " ",
|
||||||
"subject": "At %(customer_name)s on %(inst_date)s",
|
|
||||||
"autoname": "IN/.####",
|
"autoname": "IN/.####",
|
||||||
|
"subject": "At %(customer_name)s on %(inst_date)s",
|
||||||
|
"_last_update": "1306480044",
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
"colour": "White:FFF",
|
"colour": "White:FFF",
|
||||||
"_last_update": "1306480044",
|
"doctype": "DocType",
|
||||||
"show_in_menu": 0,
|
"show_in_menu": 0,
|
||||||
"version": 98
|
"version": 98
|
||||||
},
|
},
|
||||||
@ -45,6 +45,7 @@
|
|||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"submit": 1,
|
"submit": 1,
|
||||||
"write": 1,
|
"write": 1,
|
||||||
|
"report": 1,
|
||||||
"role": "System Manager",
|
"role": "System Manager",
|
||||||
"cancel": 1,
|
"cancel": 1,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
@ -60,6 +61,7 @@
|
|||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"submit": 1,
|
"submit": 1,
|
||||||
"write": 1,
|
"write": 1,
|
||||||
|
"report": 1,
|
||||||
"role": "Sales User",
|
"role": "Sales User",
|
||||||
"cancel": 1,
|
"cancel": 1,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
@ -70,6 +72,7 @@
|
|||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"submit": 1,
|
"submit": 1,
|
||||||
"write": 1,
|
"write": 1,
|
||||||
|
"report": 1,
|
||||||
"role": "Sales Manager",
|
"role": "Sales Manager",
|
||||||
"cancel": 1,
|
"cancel": 1,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
@ -106,11 +109,11 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Series",
|
"label": "Series",
|
||||||
"oldfieldname": "naming_series",
|
"oldfieldname": "naming_series",
|
||||||
"permlevel": 0,
|
"options": "\nIN",
|
||||||
"fieldname": "naming_series",
|
"fieldname": "naming_series",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"options": "\nIN"
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
@ -118,31 +121,31 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Customer",
|
"label": "Customer",
|
||||||
"oldfieldname": "customer",
|
"oldfieldname": "customer",
|
||||||
|
"permlevel": 0,
|
||||||
"trigger": "Client",
|
"trigger": "Client",
|
||||||
"fieldname": "customer",
|
"fieldname": "customer",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"oldfieldtype": "Link",
|
"oldfieldtype": "Link",
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"options": "Customer",
|
"options": "Customer"
|
||||||
"permlevel": 0
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Customer Address",
|
"label": "Customer Address",
|
||||||
"options": "Address",
|
"permlevel": 0,
|
||||||
"fieldname": "customer_address",
|
"fieldname": "customer_address",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"permlevel": 0
|
"options": "Address"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Contact Person",
|
"label": "Contact Person",
|
||||||
"options": "Contact",
|
"permlevel": 0,
|
||||||
"fieldname": "contact_person",
|
"fieldname": "contact_person",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"permlevel": 0
|
"options": "Contact"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"search_index": 0,
|
"search_index": 0,
|
||||||
@ -190,21 +193,21 @@
|
|||||||
"search_index": 1,
|
"search_index": 1,
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Territory",
|
"label": "Territory",
|
||||||
"permlevel": 0,
|
"options": "Territory",
|
||||||
"fieldname": "territory",
|
"fieldname": "territory",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"options": "Territory",
|
"permlevel": 0,
|
||||||
"in_filter": 1
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Customer Group",
|
"label": "Customer Group",
|
||||||
"options": "Customer Group",
|
"permlevel": 0,
|
||||||
"fieldname": "customer_group",
|
"fieldname": "customer_group",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"permlevel": 0
|
"options": "Customer Group"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"oldfieldtype": "Column Break",
|
"oldfieldtype": "Column Break",
|
||||||
@ -236,17 +239,17 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
|
"permlevel": 1,
|
||||||
"default": "Draft",
|
"default": "Draft",
|
||||||
"oldfieldtype": "Select",
|
"oldfieldtype": "Select",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Status",
|
"label": "Status",
|
||||||
"oldfieldname": "status",
|
"oldfieldname": "status",
|
||||||
"no_copy": 1,
|
"no_copy": 1,
|
||||||
"options": "Draft\nSubmitted\nCancelled",
|
|
||||||
"fieldname": "status",
|
"fieldname": "status",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"permlevel": 1
|
"options": "Draft\nSubmitted\nCancelled"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
@ -271,11 +274,11 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Fiscal Year",
|
"label": "Fiscal Year",
|
||||||
"oldfieldname": "fiscal_year",
|
"oldfieldname": "fiscal_year",
|
||||||
"options": "link:Fiscal Year",
|
"permlevel": 0,
|
||||||
"fieldname": "fiscal_year",
|
"fieldname": "fiscal_year",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"permlevel": 0,
|
"options": "link:Fiscal Year",
|
||||||
"in_filter": 1
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -330,10 +333,10 @@
|
|||||||
"oldfieldtype": "Section Break",
|
"oldfieldtype": "Section Break",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Item Details",
|
"label": "Item Details",
|
||||||
"permlevel": 0,
|
"options": "Simple",
|
||||||
"fieldname": "item_details",
|
"fieldname": "item_details",
|
||||||
"fieldtype": "Section Break",
|
"fieldtype": "Section Break",
|
||||||
"options": "Simple"
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 0,
|
"print_hide": 0,
|
||||||
@ -356,20 +359,20 @@
|
|||||||
"oldfieldtype": "Button",
|
"oldfieldtype": "Button",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Get Items",
|
"label": "Get Items",
|
||||||
"permlevel": 0,
|
"options": "pull_delivery_note_details",
|
||||||
"fieldname": "get_items",
|
"fieldname": "get_items",
|
||||||
"fieldtype": "Button",
|
"fieldtype": "Button",
|
||||||
"hidden": 0,
|
"hidden": 0,
|
||||||
"options": "pull_delivery_note_details"
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"oldfieldtype": "Table",
|
"oldfieldtype": "Table",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Installation Note Item",
|
"label": "Installation Note Item",
|
||||||
"oldfieldname": "installed_item_details",
|
"oldfieldname": "installed_item_details",
|
||||||
"permlevel": 0,
|
"options": "Installation Note Item",
|
||||||
"fieldname": "installed_item_details",
|
"fieldname": "installed_item_details",
|
||||||
"fieldtype": "Table",
|
"fieldtype": "Table",
|
||||||
"options": "Installation Note Item"
|
"permlevel": 0
|
||||||
}
|
}
|
||||||
]
|
]
|
@ -7,13 +7,13 @@
|
|||||||
"modified": "2012-12-03 17:10:41"
|
"modified": "2012-12-03 17:10:41"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"document_type": "Transaction",
|
||||||
"is_submittable": 1,
|
"is_submittable": 1,
|
||||||
"autoname": "naming_series:",
|
|
||||||
"description": "Potential Sales Deal",
|
"description": "Potential Sales Deal",
|
||||||
"search_fields": "status,transaction_date,customer,lead,enquiry_type,territory,company",
|
"autoname": "naming_series:",
|
||||||
"module": "Selling",
|
"module": "Selling",
|
||||||
"doctype": "DocType",
|
"doctype": "DocType",
|
||||||
"document_type": "Transaction",
|
"search_fields": "status,transaction_date,customer,lead,enquiry_type,territory,company",
|
||||||
"name": "__common__"
|
"name": "__common__"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -43,11 +43,11 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Naming Series",
|
"label": "Naming Series",
|
||||||
"oldfieldname": "naming_series",
|
"oldfieldname": "naming_series",
|
||||||
"permlevel": 0,
|
"options": "ENQUIRY\nENQ",
|
||||||
"fieldname": "naming_series",
|
"fieldname": "naming_series",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"options": "ENQUIRY\nENQ"
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
@ -87,12 +87,12 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Lead",
|
"label": "Lead",
|
||||||
"oldfieldname": "lead",
|
"oldfieldname": "lead",
|
||||||
"permlevel": 0,
|
|
||||||
"trigger": "Client",
|
"trigger": "Client",
|
||||||
"fieldname": "lead",
|
"fieldname": "lead",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"hidden": 0,
|
"hidden": 0,
|
||||||
"options": "Lead",
|
"options": "Lead",
|
||||||
|
"permlevel": 0,
|
||||||
"in_filter": 1
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -104,7 +104,6 @@
|
|||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"permlevel": 1,
|
|
||||||
"no_copy": 1,
|
"no_copy": 1,
|
||||||
"oldfieldtype": "Select",
|
"oldfieldtype": "Select",
|
||||||
"colour": "White:FFF",
|
"colour": "White:FFF",
|
||||||
@ -112,10 +111,11 @@
|
|||||||
"label": "Status",
|
"label": "Status",
|
||||||
"oldfieldname": "status",
|
"oldfieldname": "status",
|
||||||
"default": "Draft",
|
"default": "Draft",
|
||||||
|
"options": "\nDraft\nSubmitted\nQuotation Sent\nOrder Confirmed\nOpportunity Lost\nCancelled",
|
||||||
"fieldname": "status",
|
"fieldname": "status",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"options": "\nDraft\nSubmitted\nQuotation Sent\nOrder Confirmed\nOpportunity Lost\nCancelled"
|
"permlevel": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"oldfieldtype": "Select",
|
"oldfieldtype": "Select",
|
||||||
@ -123,11 +123,11 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Opportunity Type",
|
"label": "Opportunity Type",
|
||||||
"oldfieldname": "enquiry_type",
|
"oldfieldname": "enquiry_type",
|
||||||
"options": "\nSales\nMaintenance",
|
"permlevel": 0,
|
||||||
"fieldname": "enquiry_type",
|
"fieldname": "enquiry_type",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"permlevel": 0
|
"options": "\nSales\nMaintenance"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"oldfieldtype": "Section Break",
|
"oldfieldtype": "Section Break",
|
||||||
@ -145,10 +145,10 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Opportunity Items",
|
"label": "Opportunity Items",
|
||||||
"oldfieldname": "enquiry_details",
|
"oldfieldname": "enquiry_details",
|
||||||
"options": "Opportunity Item",
|
"permlevel": 0,
|
||||||
"fieldname": "enquiry_details",
|
"fieldname": "enquiry_details",
|
||||||
"fieldtype": "Table",
|
"fieldtype": "Table",
|
||||||
"permlevel": 0
|
"options": "Opportunity Item"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "Keep a track of communication related to this enquiry which will help for future reference.",
|
"description": "Keep a track of communication related to this enquiry which will help for future reference.",
|
||||||
@ -181,22 +181,22 @@
|
|||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Contact Person",
|
"label": "Contact Person",
|
||||||
|
"permlevel": 0,
|
||||||
"trigger": "Client",
|
"trigger": "Client",
|
||||||
"fieldname": "contact_person",
|
"fieldname": "contact_person",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"options": "Contact",
|
"options": "Contact",
|
||||||
"permlevel": 0,
|
|
||||||
"in_filter": 1
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Customer Address",
|
"label": "Customer Address",
|
||||||
|
"permlevel": 0,
|
||||||
"trigger": "Client",
|
"trigger": "Client",
|
||||||
"fieldname": "customer_address",
|
"fieldname": "customer_address",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"options": "Address",
|
"options": "Address",
|
||||||
"permlevel": 0,
|
|
||||||
"in_filter": 1
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -256,22 +256,22 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
"depends_on": "eval:doc.enquiry_from==\"Customer\"",
|
"doctype": "DocField",
|
||||||
"description": "<a href=\"#Sales Browser/Customer Group\">To manage Territory, click here</a>",
|
"description": "<a href=\"#Sales Browser/Customer Group\">To manage Territory, click here</a>",
|
||||||
"search_index": 1,
|
"search_index": 1,
|
||||||
"colour": "White:FFF",
|
"colour": "White:FFF",
|
||||||
"doctype": "DocField",
|
"oldfieldtype": "Link",
|
||||||
"label": "Customer Group",
|
"label": "Customer Group",
|
||||||
"oldfieldname": "customer_group",
|
"oldfieldname": "customer_group",
|
||||||
"permlevel": 0,
|
"permlevel": 0,
|
||||||
"trigger": "Client",
|
"trigger": "Client",
|
||||||
"fieldname": "customer_group",
|
"fieldname": "customer_group",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"oldfieldtype": "Link",
|
"depends_on": "eval:doc.enquiry_from==\"Customer\"",
|
||||||
"reqd": 0,
|
"reqd": 0,
|
||||||
"hidden": 0,
|
"hidden": 0,
|
||||||
"in_filter": 1,
|
"options": "Customer Group",
|
||||||
"options": "Customer Group"
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
@ -285,8 +285,8 @@
|
|||||||
"fieldname": "territory",
|
"fieldname": "territory",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"reqd": 0,
|
"reqd": 0,
|
||||||
"in_filter": 1,
|
"options": "Territory",
|
||||||
"options": "Territory"
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "Filing in Additional Information about the Opportunity will help you analyze your data better.",
|
"description": "Filing in Additional Information about the Opportunity will help you analyze your data better.",
|
||||||
@ -325,12 +325,12 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Fiscal Year",
|
"label": "Fiscal Year",
|
||||||
"oldfieldname": "fiscal_year",
|
"oldfieldname": "fiscal_year",
|
||||||
"permlevel": 0,
|
"options": "link:Fiscal Year",
|
||||||
"fieldname": "fiscal_year",
|
"fieldname": "fiscal_year",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"search_index": 1,
|
"search_index": 1,
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"options": "link:Fiscal Year",
|
"permlevel": 0,
|
||||||
"in_filter": 1
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -338,10 +338,10 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Source",
|
"label": "Source",
|
||||||
"oldfieldname": "source",
|
"oldfieldname": "source",
|
||||||
"options": "\nExisting Customer\nReference\nAdvertisement\nCold Calling\nExhibition\nSupplier Reference\nMass Mailing\nCustomer's Vendor\nCampaign\nWalk In",
|
"permlevel": 0,
|
||||||
"fieldname": "source",
|
"fieldname": "source",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"permlevel": 0
|
"options": "\nExisting Customer\nReference\nAdvertisement\nCold Calling\nExhibition\nSupplier Reference\nMass Mailing\nCustomer's Vendor\nCampaign\nWalk In"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "Enter name of campaign if source of enquiry is campaign",
|
"description": "Enter name of campaign if source of enquiry is campaign",
|
||||||
@ -350,10 +350,10 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Campaign",
|
"label": "Campaign",
|
||||||
"oldfieldname": "campaign",
|
"oldfieldname": "campaign",
|
||||||
"options": "Campaign",
|
"permlevel": 0,
|
||||||
"fieldname": "campaign",
|
"fieldname": "campaign",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"permlevel": 0
|
"options": "Campaign"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"no_copy": 1,
|
"no_copy": 1,
|
||||||
@ -374,12 +374,12 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Company",
|
"label": "Company",
|
||||||
"oldfieldname": "company",
|
"oldfieldname": "company",
|
||||||
"permlevel": 0,
|
"options": "Company",
|
||||||
"fieldname": "company",
|
"fieldname": "company",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"search_index": 1,
|
"search_index": 1,
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"options": "Company",
|
"permlevel": 0,
|
||||||
"in_filter": 1
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -392,17 +392,17 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "Your sales person who will contact the customer in future",
|
"description": "Your sales person who will contact the customer in future",
|
||||||
"permlevel": 0,
|
|
||||||
"oldfieldtype": "Link",
|
"oldfieldtype": "Link",
|
||||||
"colour": "White:FFF",
|
"colour": "White:FFF",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Next Contact By",
|
"label": "Next Contact By",
|
||||||
"oldfieldname": "contact_by",
|
"oldfieldname": "contact_by",
|
||||||
"width": "75px",
|
"width": "75px",
|
||||||
|
"options": "Profile",
|
||||||
"fieldname": "contact_by",
|
"fieldname": "contact_by",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"in_filter": 1,
|
"permlevel": 0,
|
||||||
"options": "Profile"
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "Your sales person will get a reminder on this date to contact the customer",
|
"description": "Your sales person will get a reminder on this date to contact the customer",
|
||||||
@ -470,8 +470,8 @@
|
|||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"submit": 0,
|
"submit": 0,
|
||||||
"write": 0,
|
"write": 0,
|
||||||
"cancel": 0,
|
|
||||||
"role": "Sales Manager",
|
"role": "Sales Manager",
|
||||||
|
"cancel": 0,
|
||||||
"permlevel": 1
|
"permlevel": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -480,14 +480,15 @@
|
|||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"submit": 1,
|
"submit": 1,
|
||||||
"write": 1,
|
"write": 1,
|
||||||
"cancel": 1,
|
"report": 1,
|
||||||
"role": "System Manager",
|
"role": "System Manager",
|
||||||
|
"cancel": 1,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocPerm",
|
|
||||||
"role": "System Manager",
|
"role": "System Manager",
|
||||||
"permlevel": 1
|
"permlevel": 1,
|
||||||
|
"doctype": "DocPerm"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"amend": 1,
|
"amend": 1,
|
||||||
@ -495,8 +496,9 @@
|
|||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"submit": 1,
|
"submit": 1,
|
||||||
"write": 1,
|
"write": 1,
|
||||||
"cancel": 1,
|
"report": 1,
|
||||||
"role": "Sales User",
|
"role": "Sales User",
|
||||||
|
"cancel": 1,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -505,8 +507,8 @@
|
|||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"submit": 0,
|
"submit": 0,
|
||||||
"write": 0,
|
"write": 0,
|
||||||
"cancel": 0,
|
|
||||||
"role": "Sales User",
|
"role": "Sales User",
|
||||||
|
"cancel": 0,
|
||||||
"permlevel": 1
|
"permlevel": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -515,8 +517,9 @@
|
|||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"submit": 1,
|
"submit": 1,
|
||||||
"write": 1,
|
"write": 1,
|
||||||
"cancel": 1,
|
"report": 1,
|
||||||
"role": "Sales Manager",
|
"role": "Sales Manager",
|
||||||
|
"cancel": 1,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
}
|
}
|
||||||
]
|
]
|
@ -17,12 +17,11 @@
|
|||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
import webnotes
|
import webnotes
|
||||||
|
|
||||||
from webnotes.utils import cstr, load_json
|
from webnotes.utils import cstr, getdate
|
||||||
from webnotes.model import db_exists
|
from webnotes.model.wrapper import getlist
|
||||||
from webnotes.model.doc import Document
|
|
||||||
from webnotes.model.wrapper import getlist, copy_doclist
|
|
||||||
from webnotes.model.code import get_obj
|
from webnotes.model.code import get_obj
|
||||||
from webnotes import msgprint
|
from webnotes import msgprint
|
||||||
|
from setup.utils import get_company_currency
|
||||||
|
|
||||||
sql = webnotes.conn.sql
|
sql = webnotes.conn.sql
|
||||||
|
|
||||||
@ -194,7 +193,7 @@ class DocType(TransactionBase):
|
|||||||
sales_com_obj.check_conversion_rate(self)
|
sales_com_obj.check_conversion_rate(self)
|
||||||
|
|
||||||
# Get total in words
|
# Get total in words
|
||||||
dcc = TransactionBase().get_company_currency(self.doc.company)
|
dcc = get_company_currency(self.doc.company)
|
||||||
self.doc.in_words = sales_com_obj.get_total_in_words(dcc, self.doc.rounded_total)
|
self.doc.in_words = sales_com_obj.get_total_in_words(dcc, self.doc.rounded_total)
|
||||||
self.doc.in_words_export = sales_com_obj.get_total_in_words(self.doc.currency, self.doc.rounded_total_export)
|
self.doc.in_words_export = sales_com_obj.get_total_in_words(self.doc.currency, self.doc.rounded_total_export)
|
||||||
|
|
||||||
|
@ -11,12 +11,12 @@
|
|||||||
"allow_attach": 1,
|
"allow_attach": 1,
|
||||||
"search_fields": "status,transaction_date,customer,lead,order_type",
|
"search_fields": "status,transaction_date,customer,lead,order_type",
|
||||||
"module": "Selling",
|
"module": "Selling",
|
||||||
|
"doctype": "DocType",
|
||||||
"read_only_onload": 1,
|
"read_only_onload": 1,
|
||||||
|
"autoname": "naming_series:",
|
||||||
"document_type": "Transaction",
|
"document_type": "Transaction",
|
||||||
"allow_email": 0,
|
"allow_email": 0,
|
||||||
"autoname": "naming_series:",
|
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
"doctype": "DocType",
|
|
||||||
"max_attachments": 1,
|
"max_attachments": 1,
|
||||||
"hide_toolbar": 0
|
"hide_toolbar": 0
|
||||||
},
|
},
|
||||||
@ -54,11 +54,11 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Naming Series",
|
"label": "Naming Series",
|
||||||
"oldfieldname": "naming_series",
|
"oldfieldname": "naming_series",
|
||||||
"permlevel": 0,
|
"options": "QTN",
|
||||||
"fieldname": "naming_series",
|
"fieldname": "naming_series",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"options": "QTN"
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
@ -66,11 +66,11 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Quotation To",
|
"label": "Quotation To",
|
||||||
"oldfieldname": "quotation_to",
|
"oldfieldname": "quotation_to",
|
||||||
"permlevel": 0,
|
"options": "\nLead\nCustomer",
|
||||||
"fieldname": "quotation_to",
|
"fieldname": "quotation_to",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"options": "\nLead\nCustomer",
|
"permlevel": 0,
|
||||||
"report_hide": 0,
|
"report_hide": 0,
|
||||||
"in_filter": 1
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
@ -80,12 +80,12 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Customer",
|
"label": "Customer",
|
||||||
"oldfieldname": "customer",
|
"oldfieldname": "customer",
|
||||||
"permlevel": 0,
|
"options": "Customer",
|
||||||
"fieldname": "customer",
|
"fieldname": "customer",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"search_index": 1,
|
"search_index": 1,
|
||||||
"hidden": 0,
|
"hidden": 0,
|
||||||
"options": "Customer",
|
"permlevel": 0,
|
||||||
"in_filter": 1
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -94,11 +94,11 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Lead",
|
"label": "Lead",
|
||||||
"oldfieldname": "lead",
|
"oldfieldname": "lead",
|
||||||
"options": "Lead",
|
"permlevel": 0,
|
||||||
"fieldname": "lead",
|
"fieldname": "lead",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"hidden": 0,
|
"hidden": 0,
|
||||||
"permlevel": 0,
|
"options": "Lead",
|
||||||
"in_filter": 1
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -189,8 +189,8 @@
|
|||||||
"fieldtype": "Date",
|
"fieldtype": "Date",
|
||||||
"search_index": 1,
|
"search_index": 1,
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"in_filter": 1,
|
"permlevel": 0,
|
||||||
"permlevel": 0
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
@ -218,23 +218,23 @@
|
|||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"permlevel": 0,
|
||||||
"oldfieldtype": "Table",
|
"oldfieldtype": "Table",
|
||||||
"allow_on_submit": 1,
|
"allow_on_submit": 1,
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Quotation Items",
|
"label": "Quotation Items",
|
||||||
"oldfieldname": "quotation_details",
|
"oldfieldname": "quotation_details",
|
||||||
"width": "40px",
|
"width": "40px",
|
||||||
"options": "Quotation Item",
|
|
||||||
"fieldname": "quotation_details",
|
"fieldname": "quotation_details",
|
||||||
"fieldtype": "Table",
|
"fieldtype": "Table",
|
||||||
"permlevel": 0
|
"options": "Quotation Item"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"options": "Simple",
|
"permlevel": 0,
|
||||||
"fieldname": "sec_break23",
|
"fieldname": "sec_break23",
|
||||||
"fieldtype": "Section Break",
|
"fieldtype": "Section Break",
|
||||||
"permlevel": 0
|
"options": "Simple"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
@ -285,9 +285,9 @@
|
|||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"search_index": 0,
|
"search_index": 0,
|
||||||
"hidden": 0,
|
"hidden": 0,
|
||||||
"in_filter": 1,
|
|
||||||
"options": "Opportunity",
|
"options": "Opportunity",
|
||||||
"report_hide": 0
|
"report_hide": 0,
|
||||||
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 0,
|
"print_hide": 0,
|
||||||
@ -321,19 +321,19 @@
|
|||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"search_index": 0,
|
"search_index": 0,
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"in_filter": 1,
|
"options": "link:Price List",
|
||||||
"options": "link:Price List"
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
"description": "Select the currency in which price list is maintained",
|
"description": "Select the currency in which price list is maintained",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Price List Currency",
|
"label": "Price List Currency",
|
||||||
"options": "link:Currency",
|
"permlevel": 0,
|
||||||
"fieldname": "price_list_currency",
|
"fieldname": "price_list_currency",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"permlevel": 0
|
"options": "link:Currency"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
@ -365,8 +365,8 @@
|
|||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"search_index": 0,
|
"search_index": 0,
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"in_filter": 1,
|
"options": "link:Currency",
|
||||||
"options": "link:Currency"
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
@ -396,11 +396,11 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Sales Taxes and Charges",
|
"label": "Sales Taxes and Charges",
|
||||||
"oldfieldname": "charge",
|
"oldfieldname": "charge",
|
||||||
"options": "Sales Taxes and Charges Master",
|
"permlevel": 0,
|
||||||
"fieldname": "charge",
|
"fieldname": "charge",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"hidden": 0,
|
"hidden": 0,
|
||||||
"permlevel": 0
|
"options": "Sales Taxes and Charges Master"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
@ -417,10 +417,10 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Sales Taxes and Charges",
|
"label": "Sales Taxes and Charges",
|
||||||
"oldfieldname": "other_charges",
|
"oldfieldname": "other_charges",
|
||||||
"options": "Sales Taxes and Charges",
|
"permlevel": 0,
|
||||||
"fieldname": "other_charges",
|
"fieldname": "other_charges",
|
||||||
"fieldtype": "Table",
|
"fieldtype": "Table",
|
||||||
"permlevel": 0
|
"options": "Sales Taxes and Charges"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
@ -560,30 +560,30 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Select Terms and Conditions",
|
"label": "Select Terms and Conditions",
|
||||||
"oldfieldname": "tc_name",
|
"oldfieldname": "tc_name",
|
||||||
"options": "Terms and Conditions",
|
"permlevel": 0,
|
||||||
"fieldname": "tc_name",
|
"fieldname": "tc_name",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"permlevel": 0,
|
"options": "Terms and Conditions",
|
||||||
"report_hide": 1
|
"report_hide": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"oldfieldtype": "Button",
|
"oldfieldtype": "Button",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Get Terms and Conditions",
|
"label": "Get Terms and Conditions",
|
||||||
"options": "get_tc_details",
|
"permlevel": 0,
|
||||||
"fieldname": "get_terms",
|
"fieldname": "get_terms",
|
||||||
"fieldtype": "Button",
|
"fieldtype": "Button",
|
||||||
"permlevel": 0
|
"options": "get_tc_details"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
"oldfieldtype": "HTML",
|
"oldfieldtype": "HTML",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Terms and Conditions HTML",
|
"label": "Terms and Conditions HTML",
|
||||||
"options": "You can add Terms and Notes that will be printed in the Transaction",
|
"permlevel": 0,
|
||||||
"fieldname": "terms_html",
|
"fieldname": "terms_html",
|
||||||
"fieldtype": "HTML",
|
"fieldtype": "HTML",
|
||||||
"permlevel": 0
|
"options": "You can add Terms and Notes that will be printed in the Transaction"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"oldfieldtype": "Text Editor",
|
"oldfieldtype": "Text Editor",
|
||||||
@ -612,11 +612,11 @@
|
|||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Customer Address",
|
"label": "Customer Address",
|
||||||
"options": "Address",
|
"permlevel": 0,
|
||||||
"fieldname": "customer_address",
|
"fieldname": "customer_address",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"hidden": 0,
|
"hidden": 0,
|
||||||
"permlevel": 0,
|
"options": "Address",
|
||||||
"in_filter": 1
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -625,12 +625,12 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Contact Person",
|
"label": "Contact Person",
|
||||||
"oldfieldname": "contact_person",
|
"oldfieldname": "contact_person",
|
||||||
"permlevel": 0,
|
"options": "Contact",
|
||||||
"fieldname": "contact_person",
|
"fieldname": "contact_person",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"reqd": 0,
|
"reqd": 0,
|
||||||
"hidden": 0,
|
"hidden": 0,
|
||||||
"options": "Contact",
|
"permlevel": 0,
|
||||||
"in_filter": 1
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -646,13 +646,13 @@
|
|||||||
"search_index": 0,
|
"search_index": 0,
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Territory",
|
"label": "Territory",
|
||||||
"permlevel": 0,
|
"options": "Territory",
|
||||||
"fieldname": "territory",
|
"fieldname": "territory",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"hidden": 0,
|
"hidden": 0,
|
||||||
"in_filter": 1,
|
"permlevel": 0,
|
||||||
"options": "Territory"
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
@ -660,12 +660,12 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Customer Group",
|
"label": "Customer Group",
|
||||||
"oldfieldname": "customer_group",
|
"oldfieldname": "customer_group",
|
||||||
"permlevel": 0,
|
"options": "Customer Group",
|
||||||
"fieldname": "customer_group",
|
"fieldname": "customer_group",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"search_index": 0,
|
"search_index": 0,
|
||||||
"reqd": 0,
|
"reqd": 0,
|
||||||
"options": "Customer Group",
|
"permlevel": 0,
|
||||||
"in_filter": 1
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -685,10 +685,10 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Letter Head",
|
"label": "Letter Head",
|
||||||
"oldfieldname": "letter_head",
|
"oldfieldname": "letter_head",
|
||||||
"options": "link:Letter Head",
|
"permlevel": 0,
|
||||||
"fieldname": "letter_head",
|
"fieldname": "letter_head",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"permlevel": 0
|
"options": "link:Letter Head"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
@ -703,8 +703,8 @@
|
|||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"search_index": 0,
|
"search_index": 0,
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"in_filter": 1,
|
"options": "Company",
|
||||||
"options": "Company"
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
@ -713,11 +713,11 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Source",
|
"label": "Source",
|
||||||
"oldfieldname": "source",
|
"oldfieldname": "source",
|
||||||
"permlevel": 0,
|
"options": "\nExisting Customer\nReference\nAdvertisement\nCold Calling\nExhibition\nSupplier Reference\nMass Mailing\nCustomer's Vendor\nCampaign",
|
||||||
"fieldname": "source",
|
"fieldname": "source",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"hidden": 0,
|
"hidden": 0,
|
||||||
"options": "\nExisting Customer\nReference\nAdvertisement\nCold Calling\nExhibition\nSupplier Reference\nMass Mailing\nCustomer's Vendor\nCampaign",
|
"permlevel": 0,
|
||||||
"report_hide": 0
|
"report_hide": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -726,12 +726,12 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Fiscal Year",
|
"label": "Fiscal Year",
|
||||||
"oldfieldname": "fiscal_year",
|
"oldfieldname": "fiscal_year",
|
||||||
"permlevel": 0,
|
"options": "link:Fiscal Year",
|
||||||
"fieldname": "fiscal_year",
|
"fieldname": "fiscal_year",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"search_index": 0,
|
"search_index": 0,
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"options": "link:Fiscal Year",
|
"permlevel": 0,
|
||||||
"in_filter": 1
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -780,11 +780,11 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Campaign",
|
"label": "Campaign",
|
||||||
"oldfieldname": "campaign",
|
"oldfieldname": "campaign",
|
||||||
"permlevel": 0,
|
"options": "Campaign",
|
||||||
"fieldname": "campaign",
|
"fieldname": "campaign",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"hidden": 0,
|
"hidden": 0,
|
||||||
"options": "Campaign",
|
"permlevel": 0,
|
||||||
"report_hide": 0
|
"report_hide": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -807,10 +807,10 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Select Print Heading",
|
"label": "Select Print Heading",
|
||||||
"oldfieldname": "select_print_heading",
|
"oldfieldname": "select_print_heading",
|
||||||
"permlevel": 0,
|
"options": "Print Heading",
|
||||||
"fieldname": "select_print_heading",
|
"fieldname": "select_print_heading",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"options": "Print Heading",
|
"permlevel": 0,
|
||||||
"report_hide": 1
|
"report_hide": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -876,8 +876,8 @@
|
|||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"submit": 0,
|
"submit": 0,
|
||||||
"write": 0,
|
"write": 0,
|
||||||
"cancel": 0,
|
|
||||||
"role": "Sales Manager",
|
"role": "Sales Manager",
|
||||||
|
"cancel": 0,
|
||||||
"permlevel": 1
|
"permlevel": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -886,8 +886,9 @@
|
|||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"submit": 1,
|
"submit": 1,
|
||||||
"write": 1,
|
"write": 1,
|
||||||
"cancel": 1,
|
"report": 1,
|
||||||
"role": "Sales Manager",
|
"role": "Sales Manager",
|
||||||
|
"cancel": 1,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -896,8 +897,9 @@
|
|||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"submit": 1,
|
"submit": 1,
|
||||||
"write": 1,
|
"write": 1,
|
||||||
"cancel": 1,
|
"report": 1,
|
||||||
"role": "Sales User",
|
"role": "Sales User",
|
||||||
|
"cancel": 1,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -906,8 +908,8 @@
|
|||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"submit": 0,
|
"submit": 0,
|
||||||
"write": 0,
|
"write": 0,
|
||||||
"cancel": 0,
|
|
||||||
"role": "Sales User",
|
"role": "Sales User",
|
||||||
|
"cancel": 0,
|
||||||
"permlevel": 1
|
"permlevel": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -916,8 +918,9 @@
|
|||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"submit": 0,
|
"submit": 0,
|
||||||
"write": 0,
|
"write": 0,
|
||||||
"cancel": 0,
|
"report": 1,
|
||||||
"role": "Customer",
|
"role": "Customer",
|
||||||
|
"cancel": 0,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -926,8 +929,9 @@
|
|||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"submit": 1,
|
"submit": 1,
|
||||||
"write": 1,
|
"write": 1,
|
||||||
"cancel": 1,
|
"report": 1,
|
||||||
"role": "Maintenance Manager",
|
"role": "Maintenance Manager",
|
||||||
|
"cancel": 1,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -936,8 +940,8 @@
|
|||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"submit": 0,
|
"submit": 0,
|
||||||
"write": 0,
|
"write": 0,
|
||||||
"cancel": 0,
|
|
||||||
"role": "Maintenance Manager",
|
"role": "Maintenance Manager",
|
||||||
|
"cancel": 0,
|
||||||
"permlevel": 1
|
"permlevel": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -946,8 +950,9 @@
|
|||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"submit": 1,
|
"submit": 1,
|
||||||
"write": 1,
|
"write": 1,
|
||||||
"cancel": 1,
|
"report": 1,
|
||||||
"role": "Maintenance User",
|
"role": "Maintenance User",
|
||||||
|
"cancel": 1,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -956,8 +961,8 @@
|
|||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"submit": 0,
|
"submit": 0,
|
||||||
"write": 0,
|
"write": 0,
|
||||||
"cancel": 0,
|
|
||||||
"role": "Maintenance User",
|
"role": "Maintenance User",
|
||||||
|
"cancel": 0,
|
||||||
"permlevel": 1
|
"permlevel": 1
|
||||||
}
|
}
|
||||||
]
|
]
|
@ -23,6 +23,7 @@ from webnotes.model.doc import addchild
|
|||||||
from webnotes.model.wrapper import getlist, copy_doclist
|
from webnotes.model.wrapper import getlist, copy_doclist
|
||||||
from webnotes.model.code import get_obj
|
from webnotes.model.code import get_obj
|
||||||
from webnotes import form, msgprint, _
|
from webnotes import form, msgprint, _
|
||||||
|
from setup.utils import get_company_currency
|
||||||
|
|
||||||
get_value = webnotes.conn.get_value
|
get_value = webnotes.conn.get_value
|
||||||
|
|
||||||
@ -351,7 +352,7 @@ class DocType(TransactionBase):
|
|||||||
# Check Conversion Rate (i.e. it will not allow conversion rate to be 1 for Currency other than default currency set in Global Defaults)
|
# Check Conversion Rate (i.e. it will not allow conversion rate to be 1 for Currency other than default currency set in Global Defaults)
|
||||||
# ===========================================================================
|
# ===========================================================================
|
||||||
def check_conversion_rate(self, obj):
|
def check_conversion_rate(self, obj):
|
||||||
default_currency = TransactionBase().get_company_currency(obj.doc.company)
|
default_currency = get_company_currency(obj.doc.company)
|
||||||
if not default_currency:
|
if not default_currency:
|
||||||
msgprint('Message: Please enter default currency in Company Master')
|
msgprint('Message: Please enter default currency in Company Master')
|
||||||
raise Exception
|
raise Exception
|
||||||
|
@ -17,11 +17,11 @@
|
|||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
import webnotes
|
import webnotes
|
||||||
|
|
||||||
from webnotes.utils import cstr, date_diff, flt, getdate
|
from webnotes.utils import cstr, flt, getdate
|
||||||
from webnotes.model import db_exists
|
from webnotes.model.wrapper import getlist
|
||||||
from webnotes.model.wrapper import getlist, copy_doclist
|
|
||||||
from webnotes.model.code import get_obj
|
from webnotes.model.code import get_obj
|
||||||
from webnotes import msgprint
|
from webnotes import msgprint
|
||||||
|
from setup.utils import get_company_currency
|
||||||
|
|
||||||
sql = webnotes.conn.sql
|
sql = webnotes.conn.sql
|
||||||
|
|
||||||
@ -222,7 +222,7 @@ class DocType(TransactionBase):
|
|||||||
self.doclist = sales_com_obj.make_packing_list(self,'sales_order_details')
|
self.doclist = sales_com_obj.make_packing_list(self,'sales_order_details')
|
||||||
|
|
||||||
# get total in words
|
# get total in words
|
||||||
dcc = TransactionBase().get_company_currency(self.doc.company)
|
dcc = get_company_currency(self.doc.company)
|
||||||
self.doc.in_words = sales_com_obj.get_total_in_words(dcc, self.doc.rounded_total)
|
self.doc.in_words = sales_com_obj.get_total_in_words(dcc, self.doc.rounded_total)
|
||||||
self.doc.in_words_export = sales_com_obj.get_total_in_words(self.doc.currency, self.doc.rounded_total_export)
|
self.doc.in_words_export = sales_com_obj.get_total_in_words(self.doc.currency, self.doc.rounded_total_export)
|
||||||
|
|
||||||
|
@ -12,9 +12,9 @@
|
|||||||
"search_fields": "status,transaction_date,customer,customer_name, territory,order_type,company",
|
"search_fields": "status,transaction_date,customer,customer_name, territory,order_type,company",
|
||||||
"module": "Selling",
|
"module": "Selling",
|
||||||
"read_only_onload": 1,
|
"read_only_onload": 1,
|
||||||
"autoname": "naming_series:",
|
|
||||||
"document_type": "Transaction",
|
"document_type": "Transaction",
|
||||||
"issingle": 0,
|
"issingle": 0,
|
||||||
|
"autoname": "naming_series:",
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
"doctype": "DocType"
|
"doctype": "DocType"
|
||||||
},
|
},
|
||||||
@ -76,8 +76,8 @@
|
|||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"search_index": 1,
|
"search_index": 1,
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"in_filter": 1,
|
"options": "Customer",
|
||||||
"options": "Customer"
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
@ -128,11 +128,11 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Order Type",
|
"label": "Order Type",
|
||||||
"oldfieldname": "order_type",
|
"oldfieldname": "order_type",
|
||||||
"permlevel": 0,
|
"options": "\nSales\nMaintenance",
|
||||||
"fieldname": "order_type",
|
"fieldname": "order_type",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"options": "\nSales\nMaintenance"
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"oldfieldtype": "Column Break",
|
"oldfieldtype": "Column Break",
|
||||||
@ -156,21 +156,21 @@
|
|||||||
"fieldtype": "Date",
|
"fieldtype": "Date",
|
||||||
"search_index": 1,
|
"search_index": 1,
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"in_filter": 1,
|
"permlevel": 0,
|
||||||
"permlevel": 0
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
"depends_on": "eval:doc.order_type == 'Sales'",
|
"doctype": "DocField",
|
||||||
"search_index": 1,
|
"search_index": 1,
|
||||||
"colour": "White:FFF",
|
"colour": "White:FFF",
|
||||||
"doctype": "DocField",
|
"oldfieldtype": "Date",
|
||||||
"label": "Expected Delivery Date",
|
"label": "Expected Delivery Date",
|
||||||
"oldfieldname": "delivery_date",
|
"oldfieldname": "delivery_date",
|
||||||
"width": "160px",
|
"width": "160px",
|
||||||
"fieldname": "delivery_date",
|
"fieldname": "delivery_date",
|
||||||
"fieldtype": "Date",
|
"fieldtype": "Date",
|
||||||
"oldfieldtype": "Date",
|
"depends_on": "eval:doc.order_type == 'Sales'",
|
||||||
"reqd": 0,
|
"reqd": 0,
|
||||||
"hidden": 0,
|
"hidden": 0,
|
||||||
"permlevel": 0,
|
"permlevel": 0,
|
||||||
@ -211,11 +211,11 @@
|
|||||||
"colour": "White:FFF",
|
"colour": "White:FFF",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Shipping Address Name",
|
"label": "Shipping Address Name",
|
||||||
"options": "Address",
|
"permlevel": 1,
|
||||||
"fieldname": "shipping_address_name",
|
"fieldname": "shipping_address_name",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"hidden": 1,
|
"hidden": 1,
|
||||||
"permlevel": 1,
|
"options": "Address",
|
||||||
"in_filter": 1
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -246,10 +246,10 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Sales Order Items",
|
"label": "Sales Order Items",
|
||||||
"oldfieldname": "sales_order_details",
|
"oldfieldname": "sales_order_details",
|
||||||
"options": "Sales Order Item",
|
"permlevel": 0,
|
||||||
"fieldname": "sales_order_details",
|
"fieldname": "sales_order_details",
|
||||||
"fieldtype": "Table",
|
"fieldtype": "Table",
|
||||||
"permlevel": 0
|
"options": "Sales Order Item"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
@ -309,8 +309,8 @@
|
|||||||
"fieldname": "quotation_no",
|
"fieldname": "quotation_no",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"search_index": 1,
|
"search_index": 1,
|
||||||
"in_filter": 1,
|
"options": "Quotation",
|
||||||
"options": "Quotation"
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
@ -333,10 +333,10 @@
|
|||||||
"oldfieldtype": "Button",
|
"oldfieldtype": "Button",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Pull Quotation Items",
|
"label": "Pull Quotation Items",
|
||||||
"options": "pull_quotation_details",
|
"permlevel": 0,
|
||||||
"fieldname": "pull_quotation_details",
|
"fieldname": "pull_quotation_details",
|
||||||
"fieldtype": "Button",
|
"fieldtype": "Button",
|
||||||
"permlevel": 0
|
"options": "pull_quotation_details"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
@ -366,11 +366,11 @@
|
|||||||
"description": "Select the currency in which price list is maintained",
|
"description": "Select the currency in which price list is maintained",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Price List Currency",
|
"label": "Price List Currency",
|
||||||
"options": "link:Currency",
|
"permlevel": 0,
|
||||||
"fieldname": "price_list_currency",
|
"fieldname": "price_list_currency",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"permlevel": 0
|
"options": "link:Currency"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
@ -437,10 +437,10 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Sales Taxes and Charges",
|
"label": "Sales Taxes and Charges",
|
||||||
"oldfieldname": "charge",
|
"oldfieldname": "charge",
|
||||||
"options": "Sales Taxes and Charges Master",
|
"permlevel": 0,
|
||||||
"fieldname": "charge",
|
"fieldname": "charge",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"permlevel": 0
|
"options": "Sales Taxes and Charges Master"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"oldfieldtype": "Button",
|
"oldfieldtype": "Button",
|
||||||
@ -456,10 +456,10 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Sales Taxes and Charges",
|
"label": "Sales Taxes and Charges",
|
||||||
"oldfieldname": "other_charges",
|
"oldfieldname": "other_charges",
|
||||||
"options": "Sales Taxes and Charges",
|
"permlevel": 0,
|
||||||
"fieldname": "other_charges",
|
"fieldname": "other_charges",
|
||||||
"fieldtype": "Table",
|
"fieldtype": "Table",
|
||||||
"permlevel": 0
|
"options": "Sales Taxes and Charges"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 0,
|
"print_hide": 0,
|
||||||
@ -597,31 +597,31 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Select Terms and Conditions",
|
"label": "Select Terms and Conditions",
|
||||||
"oldfieldname": "tc_name",
|
"oldfieldname": "tc_name",
|
||||||
"options": "Terms and Conditions",
|
"permlevel": 0,
|
||||||
"fieldname": "tc_name",
|
"fieldname": "tc_name",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"search_index": 0,
|
"search_index": 0,
|
||||||
"permlevel": 0
|
"options": "Terms and Conditions"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
"oldfieldtype": "Button",
|
"oldfieldtype": "Button",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Get Terms and Conditions",
|
"label": "Get Terms and Conditions",
|
||||||
"options": "get_tc_details",
|
"permlevel": 0,
|
||||||
"fieldname": "get_terms",
|
"fieldname": "get_terms",
|
||||||
"fieldtype": "Button",
|
"fieldtype": "Button",
|
||||||
"permlevel": 0
|
"options": "get_tc_details"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
"oldfieldtype": "HTML",
|
"oldfieldtype": "HTML",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Terms and Conditions HTML",
|
"label": "Terms and Conditions HTML",
|
||||||
"options": "You can add Terms and Notes that will be printed in the Transaction",
|
"permlevel": 0,
|
||||||
"fieldname": "terms_html",
|
"fieldname": "terms_html",
|
||||||
"fieldtype": "HTML",
|
"fieldtype": "HTML",
|
||||||
"permlevel": 0
|
"options": "You can add Terms and Notes that will be printed in the Transaction"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 0,
|
"print_hide": 0,
|
||||||
@ -651,21 +651,21 @@
|
|||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Customer Address",
|
"label": "Customer Address",
|
||||||
"options": "Address",
|
"permlevel": 0,
|
||||||
"fieldname": "customer_address",
|
"fieldname": "customer_address",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"hidden": 0,
|
"hidden": 0,
|
||||||
"permlevel": 0,
|
"options": "Address",
|
||||||
"in_filter": 1
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Contact Person",
|
"label": "Contact Person",
|
||||||
"options": "Contact",
|
"permlevel": 0,
|
||||||
"fieldname": "contact_person",
|
"fieldname": "contact_person",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"permlevel": 0,
|
"options": "Contact",
|
||||||
"in_filter": 1
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -673,11 +673,11 @@
|
|||||||
"search_index": 1,
|
"search_index": 1,
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Territory",
|
"label": "Territory",
|
||||||
"options": "Territory",
|
"permlevel": 0,
|
||||||
"fieldname": "territory",
|
"fieldname": "territory",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"permlevel": 0,
|
"options": "Territory",
|
||||||
"in_filter": 1
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -694,12 +694,12 @@
|
|||||||
"colour": "White:FFF",
|
"colour": "White:FFF",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Customer Group",
|
"label": "Customer Group",
|
||||||
"permlevel": 0,
|
"options": "Customer Group",
|
||||||
"fieldname": "customer_group",
|
"fieldname": "customer_group",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"in_filter": 1,
|
"permlevel": 0,
|
||||||
"options": "Customer Group"
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
@ -723,15 +723,15 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
"allow_on_submit": 1,
|
|
||||||
"oldfieldtype": "Select",
|
"oldfieldtype": "Select",
|
||||||
|
"allow_on_submit": 1,
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Letter Head",
|
"label": "Letter Head",
|
||||||
"oldfieldname": "letter_head",
|
"oldfieldname": "letter_head",
|
||||||
"options": "link:Letter Head",
|
"permlevel": 0,
|
||||||
"fieldname": "letter_head",
|
"fieldname": "letter_head",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"permlevel": 0
|
"options": "link:Letter Head"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
@ -755,11 +755,11 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Campaign",
|
"label": "Campaign",
|
||||||
"oldfieldname": "campaign",
|
"oldfieldname": "campaign",
|
||||||
"options": "Campaign",
|
"permlevel": 0,
|
||||||
"fieldname": "campaign",
|
"fieldname": "campaign",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"depends_on": "eval:doc.source == 'Campaign'",
|
"depends_on": "eval:doc.source == 'Campaign'",
|
||||||
"permlevel": 0
|
"options": "Campaign"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
@ -804,8 +804,8 @@
|
|||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"search_index": 1,
|
"search_index": 1,
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"in_filter": 1,
|
"options": "Company",
|
||||||
"options": "Company"
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
@ -827,14 +827,14 @@
|
|||||||
"no_copy": 1,
|
"no_copy": 1,
|
||||||
"depends_on": "eval:!doc.__islocal",
|
"depends_on": "eval:!doc.__islocal",
|
||||||
"colour": "White:FFF",
|
"colour": "White:FFF",
|
||||||
|
"no_column": 0,
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Cancel Reason",
|
"label": "Cancel Reason",
|
||||||
"oldfieldname": "cancel_reason",
|
"oldfieldname": "cancel_reason",
|
||||||
"permlevel": 1,
|
|
||||||
"fieldname": "cancel_reason",
|
"fieldname": "cancel_reason",
|
||||||
"fieldtype": "Data",
|
"fieldtype": "Data",
|
||||||
"no_column": 0,
|
"oldfieldtype": "Data",
|
||||||
"oldfieldtype": "Data"
|
"permlevel": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
@ -852,10 +852,10 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Source",
|
"label": "Source",
|
||||||
"oldfieldname": "source",
|
"oldfieldname": "source",
|
||||||
"options": "\nExisting Customer\nReference\nAdvertisement\nCold Calling\nExhibition\nSupplier Reference\nMass Mailing\nCustomer's Vendor\nCampaign",
|
"permlevel": 0,
|
||||||
"fieldname": "source",
|
"fieldname": "source",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"permlevel": 0
|
"options": "\nExisting Customer\nReference\nAdvertisement\nCold Calling\nExhibition\nSupplier Reference\nMass Mailing\nCustomer's Vendor\nCampaign"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "Track this Sales Order against any Project",
|
"description": "Track this Sales Order against any Project",
|
||||||
@ -869,8 +869,8 @@
|
|||||||
"fieldname": "project_name",
|
"fieldname": "project_name",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"search_index": 1,
|
"search_index": 1,
|
||||||
"in_filter": 1,
|
"options": "Project",
|
||||||
"options": "Project"
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
@ -902,8 +902,8 @@
|
|||||||
"fieldname": "per_delivered",
|
"fieldname": "per_delivered",
|
||||||
"fieldtype": "Currency",
|
"fieldtype": "Currency",
|
||||||
"depends_on": "eval:!doc.__islocal",
|
"depends_on": "eval:!doc.__islocal",
|
||||||
"in_filter": 1,
|
"permlevel": 1,
|
||||||
"permlevel": 1
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
@ -918,32 +918,32 @@
|
|||||||
"fieldname": "per_billed",
|
"fieldname": "per_billed",
|
||||||
"fieldtype": "Currency",
|
"fieldtype": "Currency",
|
||||||
"depends_on": "eval:!doc.__islocal",
|
"depends_on": "eval:!doc.__islocal",
|
||||||
"in_filter": 1,
|
"permlevel": 1,
|
||||||
"permlevel": 1
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
"no_copy": 1,
|
"no_copy": 1,
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Delivery Status",
|
"label": "Delivery Status",
|
||||||
"options": "Delivered\nNot Delivered\nPartly Delivered\nClosed\nNot Applicable",
|
"permlevel": 0,
|
||||||
"fieldname": "delivery_status",
|
"fieldname": "delivery_status",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"no_column": 0,
|
"no_column": 0,
|
||||||
"hidden": 1,
|
"hidden": 1,
|
||||||
"permlevel": 0
|
"options": "Delivered\nNot Delivered\nPartly Delivered\nClosed\nNot Applicable"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
"no_copy": 1,
|
"no_copy": 1,
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Billing Status",
|
"label": "Billing Status",
|
||||||
"options": "Billed\nNot Billed\nPartly Billed\nClosed",
|
"permlevel": 0,
|
||||||
"fieldname": "billing_status",
|
"fieldname": "billing_status",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"no_column": 0,
|
"no_column": 0,
|
||||||
"hidden": 1,
|
"hidden": 1,
|
||||||
"permlevel": 0
|
"options": "Billed\nNot Billed\nPartly Billed\nClosed"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
@ -964,10 +964,10 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Packing Details",
|
"label": "Packing Details",
|
||||||
"oldfieldname": "packing_details",
|
"oldfieldname": "packing_details",
|
||||||
"options": "Delivery Note Packing Item",
|
"permlevel": 1,
|
||||||
"fieldname": "packing_details",
|
"fieldname": "packing_details",
|
||||||
"fieldtype": "Table",
|
"fieldtype": "Table",
|
||||||
"permlevel": 1
|
"options": "Delivery Note Packing Item"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
@ -1000,8 +1000,8 @@
|
|||||||
"fieldname": "sales_partner",
|
"fieldname": "sales_partner",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"search_index": 1,
|
"search_index": 1,
|
||||||
"in_filter": 1,
|
"options": "Sales Partner",
|
||||||
"options": "Sales Partner"
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
@ -1048,10 +1048,10 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Sales Team1",
|
"label": "Sales Team1",
|
||||||
"oldfieldname": "sales_team",
|
"oldfieldname": "sales_team",
|
||||||
"options": "Sales Team",
|
"permlevel": 0,
|
||||||
"fieldname": "sales_team",
|
"fieldname": "sales_team",
|
||||||
"fieldtype": "Table",
|
"fieldtype": "Table",
|
||||||
"permlevel": 0
|
"options": "Sales Team"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
@ -1069,6 +1069,7 @@
|
|||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"submit": 1,
|
"submit": 1,
|
||||||
"write": 1,
|
"write": 1,
|
||||||
|
"report": 1,
|
||||||
"role": "Sales User",
|
"role": "Sales User",
|
||||||
"cancel": 1,
|
"cancel": 1,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
@ -1079,6 +1080,7 @@
|
|||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"submit": 1,
|
"submit": 1,
|
||||||
"write": 1,
|
"write": 1,
|
||||||
|
"report": 1,
|
||||||
"role": "Maintenance User",
|
"role": "Maintenance User",
|
||||||
"cancel": 1,
|
"cancel": 1,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
@ -1099,6 +1101,7 @@
|
|||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"submit": 1,
|
"submit": 1,
|
||||||
"write": 1,
|
"write": 1,
|
||||||
|
"report": 1,
|
||||||
"role": "Maintenance Manager",
|
"role": "Maintenance Manager",
|
||||||
"cancel": 1,
|
"cancel": 1,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
@ -1109,6 +1112,7 @@
|
|||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"submit": 1,
|
"submit": 1,
|
||||||
"write": 1,
|
"write": 1,
|
||||||
|
"report": 1,
|
||||||
"role": "Sales Manager",
|
"role": "Sales Manager",
|
||||||
"cancel": 1,
|
"cancel": 1,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
@ -1139,8 +1143,9 @@
|
|||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"submit": 0,
|
"submit": 0,
|
||||||
"write": 0,
|
"write": 0,
|
||||||
"role": "Customer",
|
|
||||||
"cancel": 0,
|
"cancel": 0,
|
||||||
|
"role": "Customer",
|
||||||
|
"report": 1,
|
||||||
"permlevel": 0,
|
"permlevel": 0,
|
||||||
"match": "customer"
|
"match": "customer"
|
||||||
},
|
},
|
||||||
|
@ -10,12 +10,12 @@
|
|||||||
"section_style": "Simple",
|
"section_style": "Simple",
|
||||||
"search_fields": "customer, ship_to, shipping_address",
|
"search_fields": "customer, ship_to, shipping_address",
|
||||||
"module": "Selling",
|
"module": "Selling",
|
||||||
"doctype": "DocType",
|
|
||||||
"allow_trash": 1,
|
"allow_trash": 1,
|
||||||
"autoname": "SA.#####",
|
|
||||||
"document_type": "Master",
|
"document_type": "Master",
|
||||||
|
"autoname": "SA.#####",
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
"colour": "White:FFF",
|
"colour": "White:FFF",
|
||||||
|
"doctype": "DocType",
|
||||||
"show_in_menu": 0,
|
"show_in_menu": 0,
|
||||||
"version": 8
|
"version": 8
|
||||||
},
|
},
|
||||||
@ -42,8 +42,9 @@
|
|||||||
"create": 1,
|
"create": 1,
|
||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"write": 1,
|
"write": 1,
|
||||||
"role": "Sales Master Manager",
|
|
||||||
"cancel": 1,
|
"cancel": 1,
|
||||||
|
"role": "Sales Master Manager",
|
||||||
|
"report": 1,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -55,8 +56,9 @@
|
|||||||
"create": 1,
|
"create": 1,
|
||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"write": 1,
|
"write": 1,
|
||||||
"role": "Sales Manager",
|
|
||||||
"cancel": 1,
|
"cancel": 1,
|
||||||
|
"role": "Sales Manager",
|
||||||
|
"report": 1,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -74,11 +76,11 @@
|
|||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Customer",
|
"label": "Customer",
|
||||||
"options": "Customer",
|
"permlevel": 0,
|
||||||
"fieldname": "customer",
|
"fieldname": "customer",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"permlevel": 0
|
"options": "Customer"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
|
@ -18,9 +18,9 @@ from __future__ import unicode_literals
|
|||||||
import webnotes
|
import webnotes
|
||||||
|
|
||||||
from webnotes.utils import cstr, flt, has_common, make_esc
|
from webnotes.utils import cstr, flt, has_common, make_esc
|
||||||
from webnotes.model import db_exists
|
from webnotes.model.wrapper import getlist
|
||||||
from webnotes.model.wrapper import getlist, copy_doclist
|
|
||||||
from webnotes import session, msgprint
|
from webnotes import session, msgprint
|
||||||
|
from setup.utils import get_company_currency
|
||||||
|
|
||||||
sql = webnotes.conn.sql
|
sql = webnotes.conn.sql
|
||||||
|
|
||||||
@ -52,7 +52,7 @@ class DocType(TransactionBase):
|
|||||||
if not has_common(appr_roles, webnotes.user.get_roles()) and not has_common(appr_users, [session['user']]):
|
if not has_common(appr_roles, webnotes.user.get_roles()) and not has_common(appr_users, [session['user']]):
|
||||||
msg, add_msg = '',''
|
msg, add_msg = '',''
|
||||||
if max_amount:
|
if max_amount:
|
||||||
dcc = TransactionBase().get_company_currency(self.doc.company)
|
dcc = get_company_currency(self.doc.company)
|
||||||
if based_on == 'Grand Total': msg = "since Grand Total exceeds %s. %s" % (dcc, flt(max_amount))
|
if based_on == 'Grand Total': msg = "since Grand Total exceeds %s. %s" % (dcc, flt(max_amount))
|
||||||
elif based_on == 'Itemwise Discount': msg = "since Discount exceeds %s for Item Code : %s" % (cstr(max_amount)+'%', item)
|
elif based_on == 'Itemwise Discount': msg = "since Discount exceeds %s for Item Code : %s" % (cstr(max_amount)+'%', item)
|
||||||
elif based_on == 'Average Discount' or based_on == 'Customerwise Discount': msg = "since Discount exceeds %s" % (cstr(max_amount)+'%')
|
elif based_on == 'Average Discount' or based_on == 'Customerwise Discount': msg = "since Discount exceeds %s" % (cstr(max_amount)+'%')
|
||||||
|
@ -7,12 +7,12 @@
|
|||||||
"modified": "2012-12-17 17:59:54"
|
"modified": "2012-12-17 17:59:54"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"autoname": "AR.####",
|
"document_type": "Master",
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
"search_fields": "transaction,based_on,system_user,system_role,approving_user,approving_role",
|
"autoname": "AR.####",
|
||||||
"module": "Setup",
|
"module": "Setup",
|
||||||
"doctype": "DocType",
|
"doctype": "DocType",
|
||||||
"document_type": "Master"
|
"search_fields": "transaction,based_on,system_user,system_role,approving_user,approving_role"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
@ -32,6 +32,7 @@
|
|||||||
"cancel": 1,
|
"cancel": 1,
|
||||||
"parenttype": "DocType",
|
"parenttype": "DocType",
|
||||||
"role": "System Manager",
|
"role": "System Manager",
|
||||||
|
"report": 1,
|
||||||
"permlevel": 0,
|
"permlevel": 0,
|
||||||
"parentfield": "permissions"
|
"parentfield": "permissions"
|
||||||
},
|
},
|
||||||
|
@ -7,10 +7,10 @@
|
|||||||
"modified": "2012-12-25 13:20:51"
|
"modified": "2012-12-25 13:20:51"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"autoname": "field:brand",
|
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
"doctype": "DocType",
|
"autoname": "field:brand",
|
||||||
"module": "Setup",
|
"module": "Setup",
|
||||||
|
"doctype": "DocType",
|
||||||
"in_dialog": 1,
|
"in_dialog": 1,
|
||||||
"document_type": "Master"
|
"document_type": "Master"
|
||||||
},
|
},
|
||||||
@ -29,6 +29,7 @@
|
|||||||
"read": 1,
|
"read": 1,
|
||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"parenttype": "DocType",
|
"parenttype": "DocType",
|
||||||
|
"report": 1,
|
||||||
"permlevel": 0,
|
"permlevel": 0,
|
||||||
"parentfield": "permissions"
|
"parentfield": "permissions"
|
||||||
},
|
},
|
||||||
|
@ -7,11 +7,11 @@
|
|||||||
"modified": "2012-12-03 11:26:05"
|
"modified": "2012-12-03 11:26:05"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"autoname": "field:company_name",
|
|
||||||
"description": "Legal Entity / Subsidiary with a separate Chart of Accounts belonging to the Organization.",
|
"description": "Legal Entity / Subsidiary with a separate Chart of Accounts belonging to the Organization.",
|
||||||
|
"autoname": "field:company_name",
|
||||||
"allow_rename": 1,
|
"allow_rename": 1,
|
||||||
"doctype": "DocType",
|
|
||||||
"module": "Setup",
|
"module": "Setup",
|
||||||
|
"doctype": "DocType",
|
||||||
"document_type": "Master",
|
"document_type": "Master",
|
||||||
"name": "__common__"
|
"name": "__common__"
|
||||||
},
|
},
|
||||||
@ -85,11 +85,11 @@
|
|||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Default Currency",
|
"label": "Default Currency",
|
||||||
"options": "link:Currency",
|
"permlevel": 0,
|
||||||
"fieldname": "default_currency",
|
"fieldname": "default_currency",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"permlevel": 0
|
"options": "link:Currency"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"no_copy": 1,
|
"no_copy": 1,
|
||||||
@ -97,12 +97,12 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Default Bank Account",
|
"label": "Default Bank Account",
|
||||||
"oldfieldname": "default_bank_account",
|
"oldfieldname": "default_bank_account",
|
||||||
|
"permlevel": 0,
|
||||||
"trigger": "Client",
|
"trigger": "Client",
|
||||||
"fieldname": "default_bank_account",
|
"fieldname": "default_bank_account",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"depends_on": "eval:!doc.__islocal",
|
"depends_on": "eval:!doc.__islocal",
|
||||||
"options": "Account",
|
"options": "Account"
|
||||||
"permlevel": 0
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"no_copy": 1,
|
"no_copy": 1,
|
||||||
@ -110,12 +110,12 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Receivables Group",
|
"label": "Receivables Group",
|
||||||
"oldfieldname": "receivables_group",
|
"oldfieldname": "receivables_group",
|
||||||
|
"permlevel": 0,
|
||||||
"trigger": "Client",
|
"trigger": "Client",
|
||||||
"fieldname": "receivables_group",
|
"fieldname": "receivables_group",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"depends_on": "eval:!doc.__islocal",
|
"depends_on": "eval:!doc.__islocal",
|
||||||
"options": "Account",
|
"options": "Account"
|
||||||
"permlevel": 0
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"no_copy": 1,
|
"no_copy": 1,
|
||||||
@ -123,12 +123,12 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Payables Group",
|
"label": "Payables Group",
|
||||||
"oldfieldname": "payables_group",
|
"oldfieldname": "payables_group",
|
||||||
|
"permlevel": 0,
|
||||||
"trigger": "Client",
|
"trigger": "Client",
|
||||||
"fieldname": "payables_group",
|
"fieldname": "payables_group",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"depends_on": "eval:!doc.__islocal",
|
"depends_on": "eval:!doc.__islocal",
|
||||||
"options": "Account",
|
"options": "Account"
|
||||||
"permlevel": 0
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"oldfieldtype": "Column Break",
|
"oldfieldtype": "Column Break",
|
||||||
@ -164,22 +164,22 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "If Yearly Budget Exceeded",
|
"label": "If Yearly Budget Exceeded",
|
||||||
"oldfieldname": "yearly_bgt_flag",
|
"oldfieldname": "yearly_bgt_flag",
|
||||||
"options": "\nWarn\nIgnore\nStop",
|
"permlevel": 0,
|
||||||
"fieldname": "yearly_bgt_flag",
|
"fieldname": "yearly_bgt_flag",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"depends_on": "eval:!doc.__islocal",
|
"depends_on": "eval:!doc.__islocal",
|
||||||
"permlevel": 0
|
"options": "\nWarn\nIgnore\nStop"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"oldfieldtype": "Select",
|
"oldfieldtype": "Select",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "If Monthly Budget Exceeded",
|
"label": "If Monthly Budget Exceeded",
|
||||||
"oldfieldname": "monthly_bgt_flag",
|
"oldfieldname": "monthly_bgt_flag",
|
||||||
"options": "\nWarn\nIgnore\nStop",
|
"permlevel": 0,
|
||||||
"fieldname": "monthly_bgt_flag",
|
"fieldname": "monthly_bgt_flag",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"depends_on": "eval:!doc.__islocal",
|
"depends_on": "eval:!doc.__islocal",
|
||||||
"permlevel": 0
|
"options": "\nWarn\nIgnore\nStop"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "For reference only.",
|
"description": "For reference only.",
|
||||||
@ -212,30 +212,30 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Phone No",
|
"label": "Phone No",
|
||||||
"oldfieldname": "phone_no",
|
"oldfieldname": "phone_no",
|
||||||
"options": "Phone",
|
"permlevel": 0,
|
||||||
"fieldname": "phone_no",
|
"fieldname": "phone_no",
|
||||||
"fieldtype": "Data",
|
"fieldtype": "Data",
|
||||||
"permlevel": 0
|
"options": "Phone"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"oldfieldtype": "Data",
|
"oldfieldtype": "Data",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Fax",
|
"label": "Fax",
|
||||||
"oldfieldname": "fax",
|
"oldfieldname": "fax",
|
||||||
"options": "Phone",
|
"permlevel": 0,
|
||||||
"fieldname": "fax",
|
"fieldname": "fax",
|
||||||
"fieldtype": "Data",
|
"fieldtype": "Data",
|
||||||
"permlevel": 0
|
"options": "Phone"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"oldfieldtype": "Data",
|
"oldfieldtype": "Data",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Email",
|
"label": "Email",
|
||||||
"oldfieldname": "email",
|
"oldfieldname": "email",
|
||||||
"options": "Email",
|
"permlevel": 0,
|
||||||
"fieldname": "email",
|
"fieldname": "email",
|
||||||
"fieldtype": "Data",
|
"fieldtype": "Data",
|
||||||
"permlevel": 0
|
"options": "Email"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"oldfieldtype": "Data",
|
"oldfieldtype": "Data",
|
||||||
@ -284,6 +284,7 @@
|
|||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"submit": 0,
|
"submit": 0,
|
||||||
"write": 1,
|
"write": 1,
|
||||||
|
"report": 1,
|
||||||
"role": "System Manager",
|
"role": "System Manager",
|
||||||
"cancel": 1,
|
"cancel": 1,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
@ -294,14 +295,15 @@
|
|||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"submit": 0,
|
"submit": 0,
|
||||||
"write": 1,
|
"write": 1,
|
||||||
|
"report": 1,
|
||||||
"role": "System Manager",
|
"role": "System Manager",
|
||||||
"cancel": 1,
|
"cancel": 1,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocPerm",
|
|
||||||
"role": "All",
|
|
||||||
"cancel": 0,
|
"cancel": 0,
|
||||||
"permlevel": 1
|
"role": "All",
|
||||||
|
"permlevel": 1,
|
||||||
|
"doctype": "DocPerm"
|
||||||
}
|
}
|
||||||
]
|
]
|
@ -1,81 +1,82 @@
|
|||||||
[
|
[
|
||||||
{
|
{
|
||||||
"owner": "Administrator",
|
"creation": "2013-01-19 10:23:30",
|
||||||
"docstatus": 0,
|
"docstatus": 0,
|
||||||
"creation": "2013-01-17 17:02:24",
|
"modified": "2013-01-21 15:56:50",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"modified": "2013-01-17 17:04:08"
|
"owner": "Administrator"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"read_only": 0,
|
|
||||||
"autoname": "field:country_name",
|
"autoname": "field:country_name",
|
||||||
"in_create": 0,
|
|
||||||
"doctype": "DocType",
|
"doctype": "DocType",
|
||||||
"module": "Setup",
|
|
||||||
"document_type": "Master",
|
"document_type": "Master",
|
||||||
"name": "__common__"
|
"in_create": 0,
|
||||||
|
"module": "Setup",
|
||||||
|
"name": "__common__",
|
||||||
|
"read_only": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "__common__",
|
|
||||||
"parent": "Country",
|
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"parenttype": "DocType",
|
|
||||||
"permlevel": 0,
|
|
||||||
"parentfield": "fields"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
"parent": "Country",
|
"parent": "Country",
|
||||||
"read": 1,
|
"parentfield": "fields",
|
||||||
|
"parenttype": "DocType",
|
||||||
|
"permlevel": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
"create": 1,
|
"create": 1,
|
||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"write": 1,
|
"name": "__common__",
|
||||||
|
"parent": "Country",
|
||||||
|
"parentfield": "permissions",
|
||||||
"parenttype": "DocType",
|
"parenttype": "DocType",
|
||||||
"permlevel": 0,
|
"permlevel": 0,
|
||||||
"parentfield": "permissions"
|
"read": 1,
|
||||||
|
"report": 1,
|
||||||
|
"submit": 0,
|
||||||
|
"write": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Country",
|
"doctype": "DocType",
|
||||||
"doctype": "DocType"
|
"name": "Country"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"oldfieldtype": "Data",
|
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Country Name",
|
|
||||||
"oldfieldname": "country_name",
|
|
||||||
"fieldname": "country_name",
|
"fieldname": "country_name",
|
||||||
"fieldtype": "Data",
|
"fieldtype": "Data",
|
||||||
|
"label": "Country Name",
|
||||||
|
"oldfieldname": "country_name",
|
||||||
|
"oldfieldtype": "Data",
|
||||||
"reqd": 1
|
"reqd": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Date Format",
|
|
||||||
"fieldname": "date_format",
|
"fieldname": "date_format",
|
||||||
"fieldtype": "Data"
|
"fieldtype": "Data",
|
||||||
|
"label": "Date Format"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Time Zones",
|
|
||||||
"fieldname": "time_zones",
|
"fieldname": "time_zones",
|
||||||
"fieldtype": "Text"
|
"fieldtype": "Text",
|
||||||
|
"label": "Time Zones"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"amend": 0,
|
"amend": 0,
|
||||||
|
"cancel": 0,
|
||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"submit": 0,
|
"role": "Sales Master Manager"
|
||||||
"role": "Sales Master Manager",
|
|
||||||
"cancel": 0
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"role": "Purchase Master Manager",
|
"doctype": "DocPerm",
|
||||||
"doctype": "DocPerm"
|
"role": "Purchase Master Manager"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"role": "HR User",
|
"doctype": "DocPerm",
|
||||||
"doctype": "DocPerm"
|
"role": "HR User"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"role": "HR Manager",
|
"doctype": "DocPerm",
|
||||||
"doctype": "DocPerm"
|
"role": "HR Manager"
|
||||||
}
|
}
|
||||||
]
|
]
|
@ -7,15 +7,15 @@
|
|||||||
"modified": "2012-12-06 10:28:54"
|
"modified": "2012-12-06 10:28:54"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"in_create": 1,
|
|
||||||
"search_fields": "name,parent_customer_group",
|
|
||||||
"module": "Setup",
|
|
||||||
"document_type": "Master",
|
|
||||||
"read_only": 1,
|
"read_only": 1,
|
||||||
|
"document_type": "Master",
|
||||||
|
"in_create": 1,
|
||||||
"autoname": "field:customer_group_name",
|
"autoname": "field:customer_group_name",
|
||||||
"name": "__common__",
|
|
||||||
"allow_rename": 1,
|
"allow_rename": 1,
|
||||||
"doctype": "DocType"
|
"module": "Setup",
|
||||||
|
"doctype": "DocType",
|
||||||
|
"search_fields": "name,parent_customer_group",
|
||||||
|
"name": "__common__"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
@ -64,12 +64,12 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Parent Customer Group",
|
"label": "Parent Customer Group",
|
||||||
"oldfieldname": "parent_customer_group",
|
"oldfieldname": "parent_customer_group",
|
||||||
|
"permlevel": 0,
|
||||||
"trigger": "Client",
|
"trigger": "Client",
|
||||||
"fieldname": "parent_customer_group",
|
"fieldname": "parent_customer_group",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"options": "Customer Group",
|
"options": "Customer Group"
|
||||||
"permlevel": 0
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "Only leaf nodes are allowed in transaction",
|
"description": "Only leaf nodes are allowed in transaction",
|
||||||
@ -78,11 +78,11 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Has Child Node",
|
"label": "Has Child Node",
|
||||||
"oldfieldname": "is_group",
|
"oldfieldname": "is_group",
|
||||||
"options": "\nYes\nNo",
|
"permlevel": 0,
|
||||||
"fieldname": "is_group",
|
"fieldname": "is_group",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"permlevel": 0
|
"options": "\nYes\nNo"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
@ -95,10 +95,10 @@
|
|||||||
"colour": "White:FFF",
|
"colour": "White:FFF",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Default Price List",
|
"label": "Default Price List",
|
||||||
"options": "Price List",
|
"permlevel": 0,
|
||||||
"fieldname": "default_price_list",
|
"fieldname": "default_price_list",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"permlevel": 0
|
"options": "Price List"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"print_hide": 1,
|
"print_hide": 1,
|
||||||
@ -135,11 +135,11 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "old_parent",
|
"label": "old_parent",
|
||||||
"oldfieldname": "old_parent",
|
"oldfieldname": "old_parent",
|
||||||
"permlevel": 0,
|
"options": "Customer Group",
|
||||||
"fieldname": "old_parent",
|
"fieldname": "old_parent",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"hidden": 1,
|
"hidden": 1,
|
||||||
"options": "Customer Group",
|
"permlevel": 0,
|
||||||
"report_hide": 1
|
"report_hide": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -154,6 +154,7 @@
|
|||||||
"create": 0,
|
"create": 0,
|
||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"write": 0,
|
"write": 0,
|
||||||
|
"report": 1,
|
||||||
"role": "Sales Manager",
|
"role": "Sales Manager",
|
||||||
"cancel": 0,
|
"cancel": 0,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
@ -178,6 +179,7 @@
|
|||||||
"create": 0,
|
"create": 0,
|
||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"write": 0,
|
"write": 0,
|
||||||
|
"report": 1,
|
||||||
"role": "Sales User",
|
"role": "Sales User",
|
||||||
"cancel": 0,
|
"cancel": 0,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
@ -186,6 +188,7 @@
|
|||||||
"create": 1,
|
"create": 1,
|
||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"write": 1,
|
"write": 1,
|
||||||
|
"report": 1,
|
||||||
"role": "Sales Master Manager",
|
"role": "Sales Master Manager",
|
||||||
"cancel": 1,
|
"cancel": 1,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
|
@ -11,11 +11,11 @@
|
|||||||
"description": "Send regular summary reports via Email.",
|
"description": "Send regular summary reports via Email.",
|
||||||
"module": "Setup",
|
"module": "Setup",
|
||||||
"doctype": "DocType",
|
"doctype": "DocType",
|
||||||
"autoname": "Prompt",
|
|
||||||
"document_type": "System",
|
"document_type": "System",
|
||||||
|
"_last_update": "1324556758",
|
||||||
|
"autoname": "Prompt",
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
"colour": "White:FFF",
|
"colour": "White:FFF",
|
||||||
"_last_update": "1324556758",
|
|
||||||
"show_in_menu": 0,
|
"show_in_menu": 0,
|
||||||
"version": 1
|
"version": 1
|
||||||
},
|
},
|
||||||
@ -62,21 +62,21 @@
|
|||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "For Company",
|
"label": "For Company",
|
||||||
"options": "link:Company",
|
"permlevel": 0,
|
||||||
"fieldname": "company",
|
"fieldname": "company",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"permlevel": 0
|
"options": "link:Company"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"allow_on_submit": 0,
|
"allow_on_submit": 0,
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "How frequently?",
|
"label": "How frequently?",
|
||||||
"permlevel": 0,
|
"options": "Daily\nWeekly\nMonthly",
|
||||||
"fieldname": "frequency",
|
"fieldname": "frequency",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"options": "Daily\nWeekly\nMonthly"
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"depends_on": "eval:doc.enabled",
|
"depends_on": "eval:doc.enabled",
|
||||||
@ -284,6 +284,7 @@
|
|||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"write": 1,
|
"write": 1,
|
||||||
"cancel": 1,
|
"cancel": 1,
|
||||||
|
"report": 1,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -21,20 +21,21 @@ from webnotes.utils import cint
|
|||||||
|
|
||||||
keydict = {
|
keydict = {
|
||||||
"fiscal_year": "current_fiscal_year",
|
"fiscal_year": "current_fiscal_year",
|
||||||
'company': 'default_company',
|
'company': 'default_company',
|
||||||
'currency': 'default_currency',
|
'currency': 'default_currency',
|
||||||
'price_list_name': 'default_price_list',
|
'price_list_name': 'default_price_list',
|
||||||
'price_list_currency': 'default_price_list_currency',
|
'price_list_currency': 'default_price_list_currency',
|
||||||
'item_group': 'default_item_group',
|
'item_group': 'default_item_group',
|
||||||
'customer_group': 'default_customer_group',
|
'customer_group': 'default_customer_group',
|
||||||
'cust_master_name': 'cust_master_name',
|
'cust_master_name': 'cust_master_name',
|
||||||
'supplier_type': 'default_supplier_type',
|
'supplier_type': 'default_supplier_type',
|
||||||
'supp_master_name': 'supp_master_name',
|
'supp_master_name': 'supp_master_name',
|
||||||
'territory': 'default_territory',
|
'territory': 'default_territory',
|
||||||
'stock_uom': 'default_stock_uom',
|
'stock_uom': 'default_stock_uom',
|
||||||
'fraction_currency': 'default_currency_fraction',
|
'fraction_currency': 'default_currency_fraction',
|
||||||
'valuation_method': 'default_valuation_method',
|
'valuation_method': 'default_valuation_method',
|
||||||
'date_format': 'date_format',
|
'date_format': 'date_format',
|
||||||
|
'number_format': 'number_format',
|
||||||
'currency_format':'default_currency_format',
|
'currency_format':'default_currency_format',
|
||||||
'account_url':'account_url',
|
'account_url':'account_url',
|
||||||
'allow_negative_stock' : 'allow_negative_stock',
|
'allow_negative_stock' : 'allow_negative_stock',
|
||||||
|
@ -1,228 +1,237 @@
|
|||||||
[
|
[
|
||||||
{
|
{
|
||||||
"owner": "Administrator",
|
"creation": "2013-01-10 16:34:23",
|
||||||
"docstatus": 0,
|
"docstatus": 0,
|
||||||
"creation": "2012-10-26 16:49:40",
|
"modified": "2013-01-21 16:32:30",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"modified": "2012-12-12 14:13:31"
|
"owner": "Administrator"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"in_create": 1,
|
"allow_copy": 1,
|
||||||
"allow_print": 1,
|
|
||||||
"module": "Setup",
|
|
||||||
"read_only": 1,
|
|
||||||
"allow_email": 1,
|
"allow_email": 1,
|
||||||
"issingle": 1,
|
"allow_print": 1,
|
||||||
"name": "__common__",
|
|
||||||
"doctype": "DocType",
|
"doctype": "DocType",
|
||||||
"hide_toolbar": 0,
|
"hide_toolbar": 0,
|
||||||
"allow_copy": 1
|
"in_create": 1,
|
||||||
|
"issingle": 1,
|
||||||
|
"module": "Setup",
|
||||||
|
"name": "__common__",
|
||||||
|
"read_only": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "__common__",
|
|
||||||
"parent": "Global Defaults",
|
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"parenttype": "DocType",
|
|
||||||
"permlevel": 0,
|
|
||||||
"parentfield": "fields"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
"parent": "Global Defaults",
|
"parent": "Global Defaults",
|
||||||
"read": 1,
|
"parentfield": "fields",
|
||||||
|
"parenttype": "DocType",
|
||||||
|
"permlevel": 0
|
||||||
|
},
|
||||||
|
{
|
||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
|
"name": "__common__",
|
||||||
|
"parent": "Global Defaults",
|
||||||
|
"parentfield": "permissions",
|
||||||
"parenttype": "DocType",
|
"parenttype": "DocType",
|
||||||
"parentfield": "permissions"
|
"read": 1,
|
||||||
|
"report": 0,
|
||||||
|
"submit": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Global Defaults",
|
"doctype": "DocType",
|
||||||
"doctype": "DocType"
|
"name": "Global Defaults"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "General",
|
|
||||||
"fieldname": "general",
|
"fieldname": "general",
|
||||||
"fieldtype": "Section Break"
|
"fieldtype": "Section Break",
|
||||||
|
"label": "General"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "Session Expiry in Hours e.g. 06:00",
|
"description": "Session Expiry in Hours e.g. 06:00",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Session Expiry",
|
|
||||||
"fieldname": "session_expiry",
|
"fieldname": "session_expiry",
|
||||||
"fieldtype": "Data"
|
"fieldtype": "Data",
|
||||||
|
"label": "Session Expiry"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Company",
|
|
||||||
"fieldname": "company",
|
"fieldname": "company",
|
||||||
"fieldtype": "Section Break"
|
"fieldtype": "Section Break",
|
||||||
|
"label": "Company"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Default Company",
|
|
||||||
"fieldname": "default_company",
|
"fieldname": "default_company",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"reqd": 0,
|
"label": "Default Company",
|
||||||
"options": "Company"
|
"options": "Company",
|
||||||
|
"reqd": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Current Fiscal Year",
|
|
||||||
"fieldname": "current_fiscal_year",
|
"fieldname": "current_fiscal_year",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"reqd": 1,
|
"label": "Current Fiscal Year",
|
||||||
"options": "Fiscal Year"
|
"options": "Fiscal Year",
|
||||||
|
"reqd": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Date Format",
|
|
||||||
"fieldname": "date_format",
|
"fieldname": "date_format",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
|
"label": "Date Format",
|
||||||
"options": "yyyy-mm-dd\ndd-mm-yyyy\ndd/mm/yyyy\nmm/dd/yyyy\nmm-dd-yyyy"
|
"options": "yyyy-mm-dd\ndd-mm-yyyy\ndd/mm/yyyy\nmm/dd/yyyy\nmm-dd-yyyy"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"width": "50%",
|
"fieldname": "number_format",
|
||||||
|
"fieldtype": "Select",
|
||||||
|
"label": "Number Format",
|
||||||
|
"options": "\n#,###.##\n#.###,##\n# ###.##\n#,##,###.##\n######"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"doctype": "DocField",
|
||||||
"fieldname": "column_break1",
|
"fieldname": "column_break1",
|
||||||
"fieldtype": "Column Break"
|
"fieldtype": "Column Break",
|
||||||
|
"width": "50%"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"default": "INR",
|
"default": "INR",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Default Currency",
|
|
||||||
"fieldname": "default_currency",
|
"fieldname": "default_currency",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"reqd": 1,
|
"label": "Default Currency",
|
||||||
"options": "link:Currency"
|
"options": "link:Currency",
|
||||||
|
"reqd": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Default Currency Format",
|
|
||||||
"fieldname": "default_currency_format",
|
"fieldname": "default_currency_format",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
|
"label": "Default Currency Format",
|
||||||
"options": "Lacs\nMillions"
|
"options": "Lacs\nMillions"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Default Currency Fraction",
|
|
||||||
"fieldname": "default_currency_fraction",
|
"fieldname": "default_currency_fraction",
|
||||||
"fieldtype": "Data"
|
"fieldtype": "Data",
|
||||||
|
"label": "Default Currency Fraction"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Stock",
|
|
||||||
"fieldname": "stock",
|
"fieldname": "stock",
|
||||||
"fieldtype": "Section Break"
|
"fieldtype": "Section Break",
|
||||||
|
"label": "Stock"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"width": "50%",
|
|
||||||
"fieldname": "column_break2",
|
"fieldname": "column_break2",
|
||||||
"fieldtype": "Column Break"
|
"fieldtype": "Column Break",
|
||||||
|
"width": "50%"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Default Item Group",
|
|
||||||
"fieldname": "default_item_group",
|
"fieldname": "default_item_group",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
|
"label": "Default Item Group",
|
||||||
"options": "Item Group"
|
"options": "Item Group"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "IGHelp",
|
|
||||||
"fieldname": "ighelp",
|
"fieldname": "ighelp",
|
||||||
"fieldtype": "HTML",
|
"fieldtype": "HTML",
|
||||||
|
"label": "IGHelp",
|
||||||
"options": "<a href=\"#!Sales Browser/Item Group\">To manage Item Groups, click here</a>"
|
"options": "<a href=\"#!Sales Browser/Item Group\">To manage Item Groups, click here</a>"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Default Stock UOM",
|
|
||||||
"fieldname": "default_stock_uom",
|
"fieldname": "default_stock_uom",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
|
"label": "Default Stock UOM",
|
||||||
"options": "UOM"
|
"options": "UOM"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Default Valuation Method",
|
|
||||||
"fieldname": "default_valuation_method",
|
"fieldname": "default_valuation_method",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
|
"label": "Default Valuation Method",
|
||||||
"options": "FIFO\nMoving Average"
|
"options": "FIFO\nMoving Average"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "Applicable only if valuation method is moving average",
|
"description": "Applicable only if valuation method is moving average",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Allow Negative Stock",
|
|
||||||
"fieldname": "allow_negative_stock",
|
"fieldname": "allow_negative_stock",
|
||||||
"fieldtype": "Check"
|
"fieldtype": "Check",
|
||||||
|
"label": "Allow Negative Stock"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Default Warehouse Type",
|
|
||||||
"fieldname": "default_warehouse_type",
|
"fieldname": "default_warehouse_type",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
|
"label": "Default Warehouse Type",
|
||||||
"options": "Warehouse Type"
|
"options": "Warehouse Type"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Raise Purchase Request when stock reaches re-order level",
|
|
||||||
"fieldname": "auto_indent",
|
"fieldname": "auto_indent",
|
||||||
"fieldtype": "Check"
|
"fieldtype": "Check",
|
||||||
|
"label": "Raise Purchase Request when stock reaches re-order level"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"default": "1",
|
"default": "1",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"width": "50%",
|
|
||||||
"fieldname": "column_break3",
|
"fieldname": "column_break3",
|
||||||
"fieldtype": "Column Break"
|
"fieldtype": "Column Break",
|
||||||
|
"width": "50%"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "Percentage you are allowed to receive or deliver more against the quantity ordered. <p>For example: If you have ordered 100 units. and your Allowance is 10% then you are allowed to receive 110 units</p>",
|
"description": "Percentage you are allowed to receive or deliver more against the quantity ordered. <p>For example: If you have ordered 100 units. and your Allowance is 10% then you are allowed to receive 110 units</p>",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Allowance Percent",
|
|
||||||
"fieldname": "tolerance",
|
"fieldname": "tolerance",
|
||||||
"fieldtype": "Currency"
|
"fieldtype": "Currency",
|
||||||
|
"label": "Allowance Percent"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "Stock level frozen up to this date, nobody can do / modify entry except authorized person",
|
"description": "Stock level frozen up to this date, nobody can do / modify entry except authorized person",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Stock Frozen Upto",
|
|
||||||
"fieldname": "stock_frozen_upto",
|
"fieldname": "stock_frozen_upto",
|
||||||
"fieldtype": "Date"
|
"fieldtype": "Date",
|
||||||
|
"label": "Stock Frozen Upto"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "Users with this role are allowed to do / modify stock entry before frozen date",
|
"description": "Users with this role are allowed to do / modify stock entry before frozen date",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Authorized Role (Frozen Entry)",
|
|
||||||
"fieldname": "stock_auth_role",
|
"fieldname": "stock_auth_role",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
|
"label": "Authorized Role (Frozen Entry)",
|
||||||
"options": "Role"
|
"options": "Role"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Accounts",
|
|
||||||
"fieldname": "accounts",
|
"fieldname": "accounts",
|
||||||
"fieldtype": "Section Break"
|
"fieldtype": "Section Break",
|
||||||
|
"label": "Accounts"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "Accounting entry frozen up to this date, nobody can do / modify entry except authorized person",
|
"description": "Accounting entry frozen up to this date, nobody can do / modify entry except authorized person",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Accounts Frozen Upto",
|
|
||||||
"fieldname": "acc_frozen_upto",
|
"fieldname": "acc_frozen_upto",
|
||||||
"fieldtype": "Date"
|
"fieldtype": "Date",
|
||||||
|
"label": "Accounts Frozen Upto"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "Users with this role are allowed to do / modify accounting entry before frozen date",
|
"description": "Users with this role are allowed to do / modify accounting entry before frozen date",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Authourized Role (Frozen Entry)",
|
|
||||||
"fieldname": "bde_auth_role",
|
"fieldname": "bde_auth_role",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
|
"label": "Authourized Role (Frozen Entry)",
|
||||||
"options": "Role"
|
"options": "Role"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Credit Controller",
|
|
||||||
"fieldname": "credit_controller",
|
"fieldname": "credit_controller",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
|
"label": "Credit Controller",
|
||||||
"options": "Role"
|
"options": "Role"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -232,197 +241,187 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Account Info",
|
|
||||||
"fieldname": "account_info",
|
"fieldname": "account_info",
|
||||||
"fieldtype": "HTML",
|
"fieldtype": "HTML",
|
||||||
|
"label": "Account Info",
|
||||||
"options": "<div class=\"help-box\">For more accounting defaults, Open <a href=\"#!List/Company\">Company</a></div>"
|
"options": "<div class=\"help-box\">For more accounting defaults, Open <a href=\"#!List/Company\">Company</a></div>"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Selling",
|
|
||||||
"fieldname": "selling",
|
"fieldname": "selling",
|
||||||
"fieldtype": "Section Break"
|
"fieldtype": "Section Break",
|
||||||
|
"label": "Selling"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"default": "Customer Name",
|
"default": "Customer Name",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Customer Master created by ",
|
|
||||||
"fieldname": "cust_master_name",
|
"fieldname": "cust_master_name",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
|
"label": "Customer Master created by ",
|
||||||
"options": "Customer Name\nNaming Series"
|
"options": "Customer Name\nNaming Series"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Default Customer Group",
|
|
||||||
"fieldname": "default_customer_group",
|
"fieldname": "default_customer_group",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
|
"label": "Default Customer Group",
|
||||||
"options": "Customer Group"
|
"options": "Customer Group"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "CGHelp",
|
|
||||||
"fieldname": "cghelp",
|
"fieldname": "cghelp",
|
||||||
"fieldtype": "HTML",
|
"fieldtype": "HTML",
|
||||||
|
"label": "CGHelp",
|
||||||
"options": "<a href=\"#!Sales Browser/Customer Group\">To manage Customer Groups, click here</a>"
|
"options": "<a href=\"#!Sales Browser/Customer Group\">To manage Customer Groups, click here</a>"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Default Territory",
|
|
||||||
"fieldname": "default_territory",
|
"fieldname": "default_territory",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
|
"label": "Default Territory",
|
||||||
"options": "Territory"
|
"options": "Territory"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "TerritoryHelp",
|
|
||||||
"fieldname": "territoryhelp",
|
"fieldname": "territoryhelp",
|
||||||
"fieldtype": "HTML",
|
"fieldtype": "HTML",
|
||||||
|
"label": "TerritoryHelp",
|
||||||
"options": "<a href=\"#!Sales Browser/Territory\">To manage Territory, click here</a>"
|
"options": "<a href=\"#!Sales Browser/Territory\">To manage Territory, click here</a>"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"width": "50%",
|
|
||||||
"fieldname": "column_break5",
|
"fieldname": "column_break5",
|
||||||
"fieldtype": "Column Break"
|
"fieldtype": "Column Break",
|
||||||
|
"width": "50%"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Default Price List",
|
|
||||||
"fieldname": "default_price_list",
|
"fieldname": "default_price_list",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
|
"label": "Default Price List",
|
||||||
"options": "Price List"
|
"options": "Price List"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Default Price List Currency",
|
|
||||||
"fieldname": "default_price_list_currency",
|
"fieldname": "default_price_list_currency",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
|
"label": "Default Price List Currency",
|
||||||
"options": "Currency"
|
"options": "Currency"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"default": "No",
|
"default": "No",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Sales Order Required",
|
|
||||||
"fieldname": "so_required",
|
"fieldname": "so_required",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
|
"label": "Sales Order Required",
|
||||||
"options": "No\nYes"
|
"options": "No\nYes"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"default": "No",
|
"default": "No",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Delivery Note Required",
|
|
||||||
"fieldname": "dn_required",
|
"fieldname": "dn_required",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
|
"label": "Delivery Note Required",
|
||||||
"options": "No\nYes"
|
"options": "No\nYes"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Buying",
|
|
||||||
"fieldname": "buying",
|
"fieldname": "buying",
|
||||||
"fieldtype": "Section Break"
|
"fieldtype": "Section Break",
|
||||||
|
"label": "Buying"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Default Supplier Type",
|
|
||||||
"fieldname": "default_supplier_type",
|
"fieldname": "default_supplier_type",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
|
"label": "Default Supplier Type",
|
||||||
"options": "Supplier Type"
|
"options": "Supplier Type"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"default": "Supplier Name",
|
"default": "Supplier Name",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Supplier Master created by ",
|
|
||||||
"fieldname": "supp_master_name",
|
"fieldname": "supp_master_name",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
|
"label": "Supplier Master created by ",
|
||||||
"options": "Supplier Name\nNaming Series"
|
"options": "Supplier Name\nNaming Series"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"width": "50%",
|
|
||||||
"fieldname": "column_break6",
|
"fieldname": "column_break6",
|
||||||
"fieldtype": "Column Break"
|
"fieldtype": "Column Break",
|
||||||
|
"width": "50%"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"default": "No",
|
"default": "No",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Purchase Order Required",
|
|
||||||
"fieldname": "po_required",
|
"fieldname": "po_required",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
|
"label": "Purchase Order Required",
|
||||||
"options": "No\nYes"
|
"options": "No\nYes"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"default": "No",
|
"default": "No",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Purchase Receipt Required",
|
|
||||||
"fieldname": "pr_required",
|
"fieldname": "pr_required",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
|
"label": "Purchase Receipt Required",
|
||||||
"options": "No\nYes"
|
"options": "No\nYes"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Maintain same rate throughout purchase cycle",
|
|
||||||
"fieldname": "maintain_same_rate",
|
"fieldname": "maintain_same_rate",
|
||||||
"fieldtype": "Check"
|
"fieldtype": "Check",
|
||||||
|
"label": "Maintain same rate throughout purchase cycle"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "HR",
|
|
||||||
"fieldname": "hr",
|
"fieldname": "hr",
|
||||||
"fieldtype": "Section Break",
|
"fieldtype": "Section Break",
|
||||||
|
"label": "HR",
|
||||||
"options": "<div style=\"padding-top: 8px;\" class=\"columnHeading\">HR</div>"
|
"options": "<div style=\"padding-top: 8px;\" class=\"columnHeading\">HR</div>"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "Employee record is created using selected field. ",
|
"description": "Employee record is created using selected field. ",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Employee Records to be created by ",
|
|
||||||
"fieldname": "emp_created_by",
|
"fieldname": "emp_created_by",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
|
"label": "Employee Records to be created by ",
|
||||||
"options": "\nNaming Series\nEmployee Number"
|
"options": "\nNaming Series\nEmployee Number"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "System",
|
|
||||||
"fieldname": "system",
|
"fieldname": "system",
|
||||||
"fieldtype": "Section Break"
|
"fieldtype": "Section Break",
|
||||||
|
"label": "System"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "SMS Sender Name",
|
|
||||||
"fieldname": "sms_sender_name",
|
"fieldname": "sms_sender_name",
|
||||||
"fieldtype": "Data"
|
"fieldtype": "Data",
|
||||||
},
|
"label": "SMS Sender Name"
|
||||||
{
|
|
||||||
"amend": 0,
|
|
||||||
"create": 1,
|
|
||||||
"doctype": "DocPerm",
|
|
||||||
"submit": 0,
|
|
||||||
"write": 1,
|
|
||||||
"role": "System Manager",
|
|
||||||
"cancel": 0,
|
|
||||||
"permlevel": 0
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"create": 1,
|
"create": 1,
|
||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"write": 1,
|
"permlevel": 0,
|
||||||
"role": "System Manager",
|
"role": "System Manager",
|
||||||
"permlevel": 0
|
"write": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"write": 1,
|
"permlevel": 1,
|
||||||
"role": "System Manager",
|
"role": "System Manager",
|
||||||
"permlevel": 1
|
"write": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"role": "All",
|
"permlevel": 1,
|
||||||
"permlevel": 1
|
"role": "All"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"write": 1,
|
"permlevel": 2,
|
||||||
"role": "System Manager",
|
"role": "System Manager",
|
||||||
"permlevel": 2
|
"write": 1
|
||||||
}
|
}
|
||||||
]
|
]
|
@ -7,18 +7,18 @@
|
|||||||
"modified": "2012-12-27 18:50:20"
|
"modified": "2012-12-27 18:50:20"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"in_create": 1,
|
"allow_attach": 1,
|
||||||
"search_fields": "parent_item_group",
|
"search_fields": "parent_item_group",
|
||||||
"module": "Setup",
|
"module": "Setup",
|
||||||
|
"doctype": "DocType",
|
||||||
"autoname": "field:item_group_name",
|
"autoname": "field:item_group_name",
|
||||||
"document_type": "Master",
|
"document_type": "Master",
|
||||||
"allow_attach": 1,
|
"description": "Item Classification",
|
||||||
"issingle": 0,
|
"issingle": 0,
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
"allow_rename": 1,
|
"allow_rename": 1,
|
||||||
"description": "Item Classification",
|
"max_attachments": 3,
|
||||||
"doctype": "DocType",
|
"in_create": 1
|
||||||
"max_attachments": 3
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
@ -59,9 +59,9 @@
|
|||||||
"fieldtype": "Data"
|
"fieldtype": "Data"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
|
||||||
"fieldname": "cb0",
|
"fieldname": "cb0",
|
||||||
"fieldtype": "Column Break"
|
"fieldtype": "Column Break",
|
||||||
|
"doctype": "DocField"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"no_copy": 0,
|
"no_copy": 0,
|
||||||
@ -90,9 +90,9 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Website Settings",
|
|
||||||
"fieldname": "sb9",
|
"fieldname": "sb9",
|
||||||
"fieldtype": "Section Break"
|
"fieldtype": "Section Break",
|
||||||
|
"label": "Website Settings"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "Check this if you want to show in website",
|
"description": "Check this if you want to show in website",
|
||||||
@ -177,8 +177,8 @@
|
|||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"submit": 0,
|
"submit": 0,
|
||||||
"write": 0,
|
"write": 0,
|
||||||
"cancel": 0,
|
|
||||||
"role": "Material Manager",
|
"role": "Material Manager",
|
||||||
|
"cancel": 0,
|
||||||
"permlevel": 1
|
"permlevel": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -187,8 +187,9 @@
|
|||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"submit": 0,
|
"submit": 0,
|
||||||
"write": 0,
|
"write": 0,
|
||||||
"cancel": 0,
|
"report": 1,
|
||||||
"role": "Material Manager",
|
"role": "Material Manager",
|
||||||
|
"cancel": 0,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -197,8 +198,8 @@
|
|||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"submit": 0,
|
"submit": 0,
|
||||||
"write": 0,
|
"write": 0,
|
||||||
"cancel": 0,
|
|
||||||
"role": "Material User",
|
"role": "Material User",
|
||||||
|
"cancel": 0,
|
||||||
"permlevel": 1
|
"permlevel": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -207,24 +208,27 @@
|
|||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"submit": 0,
|
"submit": 0,
|
||||||
"write": 0,
|
"write": 0,
|
||||||
"cancel": 0,
|
"report": 1,
|
||||||
"role": "Material User",
|
"role": "Material User",
|
||||||
|
"cancel": 0,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"create": 1,
|
"create": 1,
|
||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"write": 1,
|
"write": 1,
|
||||||
|
"cancel": 1,
|
||||||
"role": "System Manager",
|
"role": "System Manager",
|
||||||
"cancel": 1,
|
"report": 1,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"create": 1,
|
"create": 1,
|
||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"write": 1,
|
"write": 1,
|
||||||
"role": "Material Master Manager",
|
|
||||||
"cancel": 1,
|
"cancel": 1,
|
||||||
|
"role": "Material Master Manager",
|
||||||
|
"report": 1,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
}
|
}
|
||||||
]
|
]
|
@ -11,12 +11,12 @@
|
|||||||
"in_create": 1,
|
"in_create": 1,
|
||||||
"module": "Setup",
|
"module": "Setup",
|
||||||
"doctype": "DocType",
|
"doctype": "DocType",
|
||||||
"autoname": "__NSO.#####",
|
|
||||||
"show_in_menu": 0,
|
|
||||||
"read_only": 0,
|
"read_only": 0,
|
||||||
|
"autoname": "__NSO.#####",
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
"colour": "White:FFF",
|
"colour": "White:FFF",
|
||||||
"server_code_error": " ",
|
"server_code_error": " ",
|
||||||
|
"show_in_menu": 0,
|
||||||
"version": 5
|
"version": 5
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -32,6 +32,7 @@
|
|||||||
"read": 1,
|
"read": 1,
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
|
"report": 1,
|
||||||
"parenttype": "DocType",
|
"parenttype": "DocType",
|
||||||
"role": "System Manager",
|
"role": "System Manager",
|
||||||
"permlevel": 0,
|
"permlevel": 0,
|
||||||
|
@ -8,16 +8,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"section_style": "Simple",
|
"section_style": "Simple",
|
||||||
|
"doctype": "DocType",
|
||||||
"allow_attach": 0,
|
"allow_attach": 0,
|
||||||
"allow_print": 1,
|
"allow_print": 1,
|
||||||
"module": "Setup",
|
"module": "Setup",
|
||||||
"doctype": "DocType",
|
|
||||||
"allow_trash": 1,
|
|
||||||
"server_code_error": " ",
|
"server_code_error": " ",
|
||||||
|
"allow_trash": 1,
|
||||||
|
"autoname": "field:price_list_name",
|
||||||
"document_type": "Master",
|
"document_type": "Master",
|
||||||
"description": "Price List Master",
|
"description": "Price List Master",
|
||||||
"allow_email": 1,
|
"allow_email": 1,
|
||||||
"autoname": "field:price_list_name",
|
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
"colour": "White:FFF",
|
"colour": "White:FFF",
|
||||||
"_last_update": "1303100817",
|
"_last_update": "1303100817",
|
||||||
@ -38,8 +38,8 @@
|
|||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
"parent": "Price List",
|
"parent": "Price List",
|
||||||
"amend": 0,
|
"amend": 0,
|
||||||
"doctype": "DocPerm",
|
|
||||||
"submit": 0,
|
"submit": 0,
|
||||||
|
"doctype": "DocPerm",
|
||||||
"read": 1,
|
"read": 1,
|
||||||
"parenttype": "DocType",
|
"parenttype": "DocType",
|
||||||
"parentfield": "permissions"
|
"parentfield": "permissions"
|
||||||
@ -84,6 +84,7 @@
|
|||||||
"create": 0,
|
"create": 0,
|
||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"write": 0,
|
"write": 0,
|
||||||
|
"report": 1,
|
||||||
"role": "Sales Manager",
|
"role": "Sales Manager",
|
||||||
"cancel": 0,
|
"cancel": 0,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
@ -100,6 +101,7 @@
|
|||||||
"create": 0,
|
"create": 0,
|
||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"write": 0,
|
"write": 0,
|
||||||
|
"report": 1,
|
||||||
"role": "Sales User",
|
"role": "Sales User",
|
||||||
"cancel": 0,
|
"cancel": 0,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
@ -108,6 +110,7 @@
|
|||||||
"create": 1,
|
"create": 1,
|
||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"write": 1,
|
"write": 1,
|
||||||
|
"report": 1,
|
||||||
"role": "Sales Master Manager",
|
"role": "Sales Master Manager",
|
||||||
"cancel": 1,
|
"cancel": 1,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
|
@ -10,13 +10,13 @@
|
|||||||
"section_style": "Simple",
|
"section_style": "Simple",
|
||||||
"search_fields": "print_heading",
|
"search_fields": "print_heading",
|
||||||
"module": "Setup",
|
"module": "Setup",
|
||||||
"doctype": "DocType",
|
|
||||||
"allow_trash": 1,
|
"allow_trash": 1,
|
||||||
"document_type": "Master",
|
|
||||||
"autoname": "field:print_heading",
|
"autoname": "field:print_heading",
|
||||||
|
"document_type": "Master",
|
||||||
|
"_last_update": "1294312215",
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
"colour": "White:FFF",
|
"colour": "White:FFF",
|
||||||
"_last_update": "1294312215",
|
"doctype": "DocType",
|
||||||
"server_code_error": " ",
|
"server_code_error": " ",
|
||||||
"version": 27
|
"version": 27
|
||||||
},
|
},
|
||||||
@ -30,10 +30,11 @@
|
|||||||
{
|
{
|
||||||
"parent": "Print Heading",
|
"parent": "Print Heading",
|
||||||
"read": 1,
|
"read": 1,
|
||||||
"doctype": "DocPerm",
|
"report": 1,
|
||||||
"cancel": 1,
|
"cancel": 1,
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
"create": 1,
|
"create": 1,
|
||||||
|
"doctype": "DocPerm",
|
||||||
"write": 1,
|
"write": 1,
|
||||||
"parenttype": "DocType",
|
"parenttype": "DocType",
|
||||||
"role": "All",
|
"role": "All",
|
||||||
|
@ -9,13 +9,13 @@
|
|||||||
{
|
{
|
||||||
"section_style": "Simple",
|
"section_style": "Simple",
|
||||||
"module": "Setup",
|
"module": "Setup",
|
||||||
"server_code_error": " ",
|
|
||||||
"allow_trash": 1,
|
|
||||||
"doctype": "DocType",
|
"doctype": "DocType",
|
||||||
"autoname": "field:order_lost_reason",
|
"allow_trash": 1,
|
||||||
"document_type": "Master",
|
"document_type": "Master",
|
||||||
|
"autoname": "field:order_lost_reason",
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
"colour": "White:FFF",
|
"colour": "White:FFF",
|
||||||
|
"server_code_error": " ",
|
||||||
"show_in_menu": 0,
|
"show_in_menu": 0,
|
||||||
"version": 4
|
"version": 4
|
||||||
},
|
},
|
||||||
@ -35,6 +35,7 @@
|
|||||||
"write": 1,
|
"write": 1,
|
||||||
"cancel": 1,
|
"cancel": 1,
|
||||||
"parenttype": "DocType",
|
"parenttype": "DocType",
|
||||||
|
"report": 1,
|
||||||
"permlevel": 0,
|
"permlevel": 0,
|
||||||
"parentfield": "permissions"
|
"parentfield": "permissions"
|
||||||
},
|
},
|
||||||
|
@ -8,11 +8,11 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"read_only": 0,
|
"read_only": 0,
|
||||||
"autoname": "field:partner_name",
|
|
||||||
"in_create": 0,
|
"in_create": 0,
|
||||||
|
"autoname": "field:partner_name",
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
"doctype": "DocType",
|
|
||||||
"module": "Setup",
|
"module": "Setup",
|
||||||
|
"doctype": "DocType",
|
||||||
"document_type": "Master",
|
"document_type": "Master",
|
||||||
"description": "A third party distributor / dealer / commission agent / affiliate / reseller who sells the companies products for a commission."
|
"description": "A third party distributor / dealer / commission agent / affiliate / reseller who sells the companies products for a commission."
|
||||||
},
|
},
|
||||||
@ -61,11 +61,11 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Partner Type",
|
"label": "Partner Type",
|
||||||
"oldfieldname": "partner_type",
|
"oldfieldname": "partner_type",
|
||||||
"options": "\nChannel Partner\nDistributor\nDealer\nAgent\nRetailer\nImplementation Partner\nReseller",
|
"permlevel": 0,
|
||||||
"fieldname": "partner_type",
|
"fieldname": "partner_type",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"search_index": 0,
|
"search_index": 0,
|
||||||
"permlevel": 0,
|
"options": "\nChannel Partner\nDistributor\nDealer\nAgent\nRetailer\nImplementation Partner\nReseller",
|
||||||
"in_filter": 1
|
"in_filter": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -89,11 +89,11 @@
|
|||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Territory",
|
"label": "Territory",
|
||||||
"options": "Territory",
|
"permlevel": 0,
|
||||||
"fieldname": "territory",
|
"fieldname": "territory",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"permlevel": 0
|
"options": "Territory"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
@ -106,10 +106,10 @@
|
|||||||
"depends_on": "eval:doc.__islocal",
|
"depends_on": "eval:doc.__islocal",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Address Desc",
|
"label": "Address Desc",
|
||||||
"options": "<em>Addresses will appear only when you save the customer</em>",
|
"permlevel": 0,
|
||||||
"fieldname": "address_desc",
|
"fieldname": "address_desc",
|
||||||
"fieldtype": "HTML",
|
"fieldtype": "HTML",
|
||||||
"permlevel": 0
|
"options": "<em>Addresses will appear only when you save the customer</em>"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
@ -128,10 +128,10 @@
|
|||||||
"depends_on": "eval:doc.__islocal",
|
"depends_on": "eval:doc.__islocal",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Contact Desc",
|
"label": "Contact Desc",
|
||||||
"options": "<em>Contact Details will appear only when you save the customer</em>",
|
"permlevel": 0,
|
||||||
"fieldname": "contact_desc",
|
"fieldname": "contact_desc",
|
||||||
"fieldtype": "HTML",
|
"fieldtype": "HTML",
|
||||||
"permlevel": 0
|
"options": "<em>Contact Details will appear only when you save the customer</em>"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
@ -153,11 +153,11 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Partner Target Detail",
|
"label": "Partner Target Detail",
|
||||||
"oldfieldname": "partner_target_details",
|
"oldfieldname": "partner_target_details",
|
||||||
"options": "Target Detail",
|
"permlevel": 0,
|
||||||
"fieldname": "partner_target_details",
|
"fieldname": "partner_target_details",
|
||||||
"fieldtype": "Table",
|
"fieldtype": "Table",
|
||||||
"reqd": 0,
|
"reqd": 0,
|
||||||
"permlevel": 0
|
"options": "Target Detail"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "Select Budget Distribution to unevenly distribute targets across months.",
|
"description": "Select Budget Distribution to unevenly distribute targets across months.",
|
||||||
@ -165,10 +165,10 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Target Distribution",
|
"label": "Target Distribution",
|
||||||
"oldfieldname": "distribution_id",
|
"oldfieldname": "distribution_id",
|
||||||
"options": "Budget Distribution",
|
"permlevel": 0,
|
||||||
"fieldname": "distribution_id",
|
"fieldname": "distribution_id",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"permlevel": 0
|
"options": "Budget Distribution"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"amend": 0,
|
"amend": 0,
|
||||||
@ -186,6 +186,7 @@
|
|||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"submit": 0,
|
"submit": 0,
|
||||||
"write": 0,
|
"write": 0,
|
||||||
|
"report": 1,
|
||||||
"role": "Sales Manager",
|
"role": "Sales Manager",
|
||||||
"cancel": 0,
|
"cancel": 0,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
@ -206,6 +207,7 @@
|
|||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"submit": 0,
|
"submit": 0,
|
||||||
"write": 0,
|
"write": 0,
|
||||||
|
"report": 1,
|
||||||
"role": "Sales User",
|
"role": "Sales User",
|
||||||
"cancel": 0,
|
"cancel": 0,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
@ -216,6 +218,7 @@
|
|||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"submit": 0,
|
"submit": 0,
|
||||||
"write": 1,
|
"write": 1,
|
||||||
|
"report": 1,
|
||||||
"role": "Sales Master Manager",
|
"role": "Sales Master Manager",
|
||||||
"cancel": 1,
|
"cancel": 1,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
@ -234,8 +237,9 @@
|
|||||||
"create": 1,
|
"create": 1,
|
||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"write": 1,
|
"write": 1,
|
||||||
|
"cancel": 1,
|
||||||
"role": "System Manager",
|
"role": "System Manager",
|
||||||
"cancel": 1,
|
"report": 1,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -7,14 +7,14 @@
|
|||||||
"modified": "2012-12-06 10:30:15"
|
"modified": "2012-12-06 10:30:15"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"autoname": "field:sales_person_name",
|
"document_type": "Master",
|
||||||
"in_create": 1,
|
"in_create": 1,
|
||||||
"name": "__common__",
|
"autoname": "field:sales_person_name",
|
||||||
"allow_rename": 1,
|
"allow_rename": 1,
|
||||||
"search_fields": "name,parent_sales_person",
|
"name": "__common__",
|
||||||
"module": "Setup",
|
"module": "Setup",
|
||||||
"doctype": "DocType",
|
"doctype": "DocType",
|
||||||
"document_type": "Master",
|
"search_fields": "name,parent_sales_person",
|
||||||
"description": "All Sales Transactions can be tagged against multiple **Sales Persons** so that you can set and monitor targets."
|
"description": "All Sales Transactions can be tagged against multiple **Sales Persons** so that you can set and monitor targets."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -66,23 +66,23 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Parent Sales Person",
|
"label": "Parent Sales Person",
|
||||||
"oldfieldname": "parent_sales_person",
|
"oldfieldname": "parent_sales_person",
|
||||||
"permlevel": 0,
|
|
||||||
"trigger": "Client",
|
"trigger": "Client",
|
||||||
"fieldname": "parent_sales_person",
|
"fieldname": "parent_sales_person",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"options": "Sales Person"
|
"options": "Sales Person",
|
||||||
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"oldfieldtype": "Select",
|
"oldfieldtype": "Select",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Has Child Node",
|
"label": "Has Child Node",
|
||||||
"oldfieldname": "is_group",
|
"oldfieldname": "is_group",
|
||||||
"options": "\nYes\nNo",
|
"permlevel": 0,
|
||||||
"fieldname": "is_group",
|
"fieldname": "is_group",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"permlevel": 0
|
"options": "\nYes\nNo"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
@ -92,10 +92,10 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Employee",
|
|
||||||
"options": "Employee",
|
"options": "Employee",
|
||||||
"fieldname": "employee",
|
"fieldname": "employee",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
|
"label": "Employee",
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -153,10 +153,10 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Target Details1",
|
"label": "Target Details1",
|
||||||
"oldfieldname": "target_details",
|
"oldfieldname": "target_details",
|
||||||
"options": "Target Detail",
|
"permlevel": 0,
|
||||||
"fieldname": "target_details",
|
"fieldname": "target_details",
|
||||||
"fieldtype": "Table",
|
"fieldtype": "Table",
|
||||||
"permlevel": 0
|
"options": "Target Detail"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "Select Budget Distribution to unevenly distribute targets across months.",
|
"description": "Select Budget Distribution to unevenly distribute targets across months.",
|
||||||
@ -165,11 +165,11 @@
|
|||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"label": "Target Distribution",
|
"label": "Target Distribution",
|
||||||
"oldfieldname": "distribution_id",
|
"oldfieldname": "distribution_id",
|
||||||
"options": "Budget Distribution",
|
"permlevel": 0,
|
||||||
"fieldname": "distribution_id",
|
"fieldname": "distribution_id",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"search_index": 0,
|
"search_index": 0,
|
||||||
"permlevel": 0
|
"options": "Budget Distribution"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"create": 0,
|
"create": 0,
|
||||||
@ -183,6 +183,7 @@
|
|||||||
"create": 0,
|
"create": 0,
|
||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"write": 0,
|
"write": 0,
|
||||||
|
"report": 1,
|
||||||
"role": "Sales Manager",
|
"role": "Sales Manager",
|
||||||
"cancel": 0,
|
"cancel": 0,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
@ -199,6 +200,7 @@
|
|||||||
"create": 0,
|
"create": 0,
|
||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"write": 0,
|
"write": 0,
|
||||||
|
"report": 1,
|
||||||
"role": "Sales User",
|
"role": "Sales User",
|
||||||
"cancel": 0,
|
"cancel": 0,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
@ -207,6 +209,7 @@
|
|||||||
"create": 1,
|
"create": 1,
|
||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"write": 1,
|
"write": 1,
|
||||||
|
"report": 1,
|
||||||
"role": "Sales Master Manager",
|
"role": "Sales Master Manager",
|
||||||
"cancel": 1,
|
"cancel": 1,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
|
@ -7,25 +7,25 @@
|
|||||||
"modified": "2012-03-27 14:36:25"
|
"modified": "2012-03-27 14:36:25"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"show_in_menu": 0,
|
||||||
"section_style": "Simple",
|
"section_style": "Simple",
|
||||||
"in_create": 0,
|
"in_create": 0,
|
||||||
"module": "Setup",
|
"module": "Setup",
|
||||||
"server_code_error": " ",
|
"autoname": "field:state_name",
|
||||||
"document_type": "Master",
|
"document_type": "Master",
|
||||||
"read_only": 0,
|
"read_only": 0,
|
||||||
"autoname": "field:state_name",
|
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
"colour": "White:FFF",
|
"colour": "White:FFF",
|
||||||
"doctype": "DocType",
|
"doctype": "DocType",
|
||||||
"show_in_menu": 0,
|
"server_code_error": " ",
|
||||||
"version": 14
|
"version": 14
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
"parent": "State",
|
"parent": "State",
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"reqd": 1,
|
|
||||||
"parenttype": "DocType",
|
"parenttype": "DocType",
|
||||||
|
"reqd": 1,
|
||||||
"permlevel": 0,
|
"permlevel": 0,
|
||||||
"parentfield": "fields"
|
"parentfield": "fields"
|
||||||
},
|
},
|
||||||
@ -36,6 +36,7 @@
|
|||||||
"create": 1,
|
"create": 1,
|
||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"write": 1,
|
"write": 1,
|
||||||
|
"report": 1,
|
||||||
"parenttype": "DocType",
|
"parenttype": "DocType",
|
||||||
"permlevel": 0,
|
"permlevel": 0,
|
||||||
"parentfield": "permissions"
|
"parentfield": "permissions"
|
||||||
|
@ -7,11 +7,11 @@
|
|||||||
"modified": "2012-12-06 10:29:04"
|
"modified": "2012-12-06 10:29:04"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"autoname": "field:supplier_type",
|
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
|
"autoname": "field:supplier_type",
|
||||||
"allow_rename": 1,
|
"allow_rename": 1,
|
||||||
"doctype": "DocType",
|
|
||||||
"module": "Setup",
|
"module": "Setup",
|
||||||
|
"doctype": "DocType",
|
||||||
"document_type": "Master"
|
"document_type": "Master"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -25,8 +25,8 @@
|
|||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
"parent": "Supplier Type",
|
"parent": "Supplier Type",
|
||||||
"amend": 0,
|
"amend": 0,
|
||||||
"doctype": "DocPerm",
|
|
||||||
"submit": 0,
|
"submit": 0,
|
||||||
|
"doctype": "DocPerm",
|
||||||
"read": 1,
|
"read": 1,
|
||||||
"parenttype": "DocType",
|
"parenttype": "DocType",
|
||||||
"parentfield": "permissions"
|
"parentfield": "permissions"
|
||||||
@ -66,6 +66,7 @@
|
|||||||
"create": 0,
|
"create": 0,
|
||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"write": 0,
|
"write": 0,
|
||||||
|
"report": 1,
|
||||||
"role": "Purchase Manager",
|
"role": "Purchase Manager",
|
||||||
"cancel": 0,
|
"cancel": 0,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
@ -82,6 +83,7 @@
|
|||||||
"create": 0,
|
"create": 0,
|
||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"write": 0,
|
"write": 0,
|
||||||
|
"report": 1,
|
||||||
"role": "Purchase User",
|
"role": "Purchase User",
|
||||||
"cancel": 0,
|
"cancel": 0,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
@ -90,6 +92,7 @@
|
|||||||
"create": 1,
|
"create": 1,
|
||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"write": 1,
|
"write": 1,
|
||||||
|
"report": 1,
|
||||||
"role": "Purchase Master Manager",
|
"role": "Purchase Master Manager",
|
||||||
"cancel": 1,
|
"cancel": 1,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
|
@ -10,14 +10,14 @@
|
|||||||
"section_style": "Simple",
|
"section_style": "Simple",
|
||||||
"description": "Standard Terms and Conditions that can be added to Sales and Purchases.\n\nExamples:\n\n1. Validity of the offer.\n1. Payment Terms (In Advance, On Credit, part advance etc).\n1. What is extra (or payable by the Customer).\n1. Safety / usage warning.\n1. Warranty if any.\n1. Returns Policy.\n1. Terms of shipping, if applicable.\n1. Ways of addressing disputes, indemnity, liability, etc.\n1. Address and Contact of your Company.",
|
"description": "Standard Terms and Conditions that can be added to Sales and Purchases.\n\nExamples:\n\n1. Validity of the offer.\n1. Payment Terms (In Advance, On Credit, part advance etc).\n1. What is extra (or payable by the Customer).\n1. Safety / usage warning.\n1. Warranty if any.\n1. Returns Policy.\n1. Terms of shipping, if applicable.\n1. Ways of addressing disputes, indemnity, liability, etc.\n1. Address and Contact of your Company.",
|
||||||
"module": "Setup",
|
"module": "Setup",
|
||||||
"doctype": "DocType",
|
|
||||||
"allow_trash": 1,
|
|
||||||
"server_code_error": " ",
|
"server_code_error": " ",
|
||||||
"document_type": "Master",
|
"allow_trash": 1,
|
||||||
"autoname": "field:title",
|
"autoname": "field:title",
|
||||||
|
"document_type": "Master",
|
||||||
|
"_last_update": "1322549700",
|
||||||
"name": "__common__",
|
"name": "__common__",
|
||||||
"colour": "White:FFF",
|
"colour": "White:FFF",
|
||||||
"_last_update": "1322549700",
|
"doctype": "DocType",
|
||||||
"show_in_menu": 0,
|
"show_in_menu": 0,
|
||||||
"version": 1
|
"version": 1
|
||||||
},
|
},
|
||||||
@ -56,6 +56,7 @@
|
|||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"submit": 0,
|
"submit": 0,
|
||||||
"write": 1,
|
"write": 1,
|
||||||
|
"report": 1,
|
||||||
"role": "Sales Master Manager",
|
"role": "Sales Master Manager",
|
||||||
"cancel": 1,
|
"cancel": 1,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
@ -76,6 +77,7 @@
|
|||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"submit": 0,
|
"submit": 0,
|
||||||
"write": 0,
|
"write": 0,
|
||||||
|
"report": 1,
|
||||||
"role": "Sales User",
|
"role": "Sales User",
|
||||||
"cancel": 0,
|
"cancel": 0,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
@ -89,16 +91,18 @@
|
|||||||
"create": 1,
|
"create": 1,
|
||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"write": 1,
|
"write": 1,
|
||||||
"role": "System Manager",
|
|
||||||
"cancel": 1,
|
"cancel": 1,
|
||||||
|
"role": "System Manager",
|
||||||
|
"report": 1,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"create": 1,
|
"create": 1,
|
||||||
"doctype": "DocPerm",
|
"doctype": "DocPerm",
|
||||||
"write": 1,
|
"write": 1,
|
||||||
"role": "Accounts User",
|
|
||||||
"cancel": 1,
|
"cancel": 1,
|
||||||
|
"role": "Accounts User",
|
||||||
|
"report": 1,
|
||||||
"permlevel": 0
|
"permlevel": 0
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user