updates in purchase cycle's price list

This commit is contained in:
Anand Doshi
2013-01-17 20:20:56 +05:30
parent 9d9aec1ed4
commit f8f0c0d089
17 changed files with 1190 additions and 1055 deletions

View File

@@ -20,6 +20,28 @@ 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/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) {
if(!doc.voucher_date) set_multiple(dt,dn,{voucher_date:get_today()});
if(!doc.posting_date) set_multiple(dt,dn,{posting_date:get_today()});
@@ -27,35 +49,14 @@ cur_frm.cscript.onload = function(doc,dt,dn) {
cur_frm.cscript.onload_post_render = 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);
}
// defined in purchase_common.js
cur_frm.cscript.update_item_details(doc, dt, dn, callback1);
if(doc.__islocal && doc.supplier) cur_frm.cscript.supplier(doc,dt,dn);
}
cur_frm.cscript.dynamic_label(doc, dt, dn, callback);
}
cur_frm.cscript.refresh = function(doc, dt, dn) {
// defined in purchase_common.js
cur_frm.cscript.update_item_details(doc, dt, dn, callback);
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) {
var callback = function(r,rt) {
var doc = locals[cur_frm.doctype][cur_frm.docname];

View File

@@ -2,14 +2,14 @@
{
"owner": "Administrator",
"docstatus": 0,
"creation": "2012-12-03 17:26:39",
"creation": "2013-01-15 18:42:58",
"modified_by": "Administrator",
"modified": "2012-12-04 17:15:28"
"modified": "2013-01-17 20:11:05"
},
{
"is_submittable": 1,
"autoname": "naming_series:",
"allow_attach": 1,
"is_submittable": 1,
"search_fields": "posting_date, credit_to, fiscal_year, bill_no, grand_total, outstanding_amount",
"module": "Accounts",
"doctype": "DocType",
@@ -29,6 +29,7 @@
"read": 1,
"doctype": "DocPerm",
"parenttype": "DocType",
"report": 1,
"parentfield": "permissions"
},
{
@@ -48,7 +49,6 @@
"description": "To manage multiple series please go to Setup > Manage Series",
"no_copy": 1,
"oldfieldtype": "Select",
"colour": "White:FFF",
"doctype": "DocField",
"label": "Series",
"oldfieldname": "naming_series",
@@ -67,7 +67,6 @@
"label": "Credit To",
"oldfieldname": "credit_to",
"permlevel": 0,
"trigger": "Client",
"fieldname": "credit_to",
"fieldtype": "Link",
"search_index": 1,
@@ -196,35 +195,83 @@
"permlevel": 0
},
{
"print_hide": 1,
"description": "Will be calculated automatically when you enter the details",
"oldfieldtype": "Currency",
"oldfieldtype": "Button",
"doctype": "DocField",
"label": "Net Total",
"oldfieldname": "net_total",
"fieldname": "net_total",
"fieldtype": "Currency",
"permlevel": 1
"label": "Recalculate",
"fieldname": "recalculate",
"fieldtype": "Button",
"permlevel": 0
},
{
"doctype": "DocField",
"options": "Simple",
"fieldname": "section_break_17",
"fieldtype": "Section Break",
"permlevel": 0
},
{
"print_hide": 1,
"oldfieldtype": "Currency",
"description": "Select Items from Purchase Order",
"oldfieldtype": "Link",
"doctype": "DocField",
"label": "Net Total (Import)",
"oldfieldname": "net_total_import",
"fieldname": "net_total_import",
"fieldtype": "Currency",
"permlevel": 1
"label": "Purchase Order",
"oldfieldname": "purchase_order_main",
"options": "Purchase Order",
"fieldname": "purchase_order_main",
"fieldtype": "Link",
"permlevel": 0
},
{
"print_hide": 1,
"description": "Select Items from Purchase Receipt",
"oldfieldtype": "Link",
"doctype": "DocField",
"label": "Purchase Receipt",
"oldfieldname": "purchase_receipt_main",
"options": "Purchase Receipt",
"fieldname": "purchase_receipt_main",
"fieldtype": "Link",
"permlevel": 0
},
{
"oldfieldtype": "Button",
"doctype": "DocField",
"label": "Recalculate",
"trigger": "Client",
"fieldname": "recalculate",
"label": "Get Items",
"options": "pull_details",
"fieldname": "get_items",
"fieldtype": "Button",
"permlevel": 0
},
{
"doctype": "DocField",
"label": "Currency & Price List",
"fieldname": "currency_price_list",
"fieldtype": "Section Break",
"permlevel": 0
},
{
"print_hide": 1,
"oldfieldtype": "Select",
"doctype": "DocField",
"label": "Currency",
"oldfieldname": "currency",
"options": "link:Currency",
"fieldname": "currency",
"fieldtype": "Select",
"permlevel": 0
},
{
"print_hide": 1,
"description": "The rate at which Bill Currency is converted into company's base currency",
"default": "1",
"oldfieldtype": "Currency",
"doctype": "DocField",
"label": "Exchange Rate",
"oldfieldname": "conversion_rate",
"fieldname": "conversion_rate",
"fieldtype": "Float",
"permlevel": 0
},
{
"doctype": "DocField",
"fieldname": "column_break2",
@@ -232,71 +279,31 @@
"permlevel": 0
},
{
"print_hide": 1,
"description": "The rate at which Bill Currency is converted into company's base currency",
"default": "1",
"oldfieldtype": "Currency",
"colour": "White:FFF",
"doctype": "DocField",
"label": "Bill Conversion Rate",
"oldfieldname": "conversion_rate",
"fieldname": "conversion_rate",
"label": "Price List",
"options": "Price List",
"fieldname": "price_list_name",
"fieldtype": "Link",
"permlevel": 0
},
{
"doctype": "DocField",
"label": "Price List Currency",
"options": "Currency",
"fieldname": "price_list_currency",
"fieldtype": "Link",
"permlevel": 0
},
{
"doctype": "DocField",
"label": "Price List Exchange Rate",
"fieldname": "plc_conversion_rate",
"fieldtype": "Float",
"permlevel": 0
},
{
"print_hide": 1,
"oldfieldtype": "Select",
"doctype": "DocField",
"label": "Bill Currency",
"oldfieldname": "currency",
"options": "link:Currency",
"fieldname": "currency",
"fieldtype": "Select",
"permlevel": 0
},
{
"print_hide": 1,
"description": "Select Items from Purchase Order",
"oldfieldtype": "Link",
"colour": "White:FFF",
"doctype": "DocField",
"label": "Purchase Order",
"oldfieldname": "purchase_order_main",
"permlevel": 0,
"trigger": "Client",
"fieldname": "purchase_order_main",
"fieldtype": "Link",
"options": "Purchase Order"
},
{
"print_hide": 1,
"description": "Select Items from Purchase Receipt",
"oldfieldtype": "Link",
"colour": "White:FFF",
"doctype": "DocField",
"label": "Purchase Receipt",
"oldfieldname": "purchase_receipt_main",
"permlevel": 0,
"trigger": "Client",
"fieldname": "purchase_receipt_main",
"fieldtype": "Link",
"options": "Purchase Receipt"
},
{
"oldfieldtype": "Button",
"colour": "White:FFF",
"doctype": "DocField",
"label": "Get Items",
"options": "pull_details",
"fieldname": "get_items",
"fieldtype": "Button",
"permlevel": 0
},
{
"description": "Add / Edit Taxes and Charges",
"oldfieldtype": "Section Break",
"colour": "White:FFF",
"doctype": "DocField",
"label": "Taxes",
"fieldname": "taxes",
@@ -339,7 +346,6 @@
"oldfieldtype": "Button",
"doctype": "DocField",
"label": "Calculate Tax",
"trigger": "Client",
"fieldname": "calculate_tax",
"fieldtype": "Button",
"permlevel": 0
@@ -373,20 +379,17 @@
{
"print_hide": 1,
"oldfieldtype": "Link",
"colour": "White:FFF",
"doctype": "DocField",
"label": "Supplier",
"oldfieldname": "supplier",
"permlevel": 0,
"trigger": "Client",
"options": "Supplier",
"fieldname": "supplier",
"fieldtype": "Link",
"hidden": 0,
"options": "Supplier"
"permlevel": 0
},
{
"depends_on": "eval:doc.supplier",
"colour": "White:FFF",
"doctype": "DocField",
"label": "Supplier Address",
"options": "Address",
@@ -404,7 +407,6 @@
{
"print_hide": 1,
"depends_on": "eval:doc.supplier",
"colour": "White:FFF",
"doctype": "DocField",
"label": "Contact Person",
"options": "Contact",
@@ -412,206 +414,6 @@
"fieldtype": "Link",
"permlevel": 0
},
{
"print_hide": 1,
"oldfieldtype": "Section Break",
"doctype": "DocField",
"label": "More Info",
"fieldname": "more_info",
"fieldtype": "Section Break",
"permlevel": 0
},
{
"print_hide": 1,
"oldfieldtype": "Column Break",
"doctype": "DocField",
"width": "50%",
"fieldname": "column_break3",
"fieldtype": "Column Break",
"permlevel": 0
},
{
"print_hide": 1,
"default": "No",
"oldfieldtype": "Select",
"colour": "White:FFF",
"doctype": "DocField",
"label": "Is Opening",
"oldfieldname": "is_opening",
"permlevel": 0,
"trigger": "Client",
"fieldname": "is_opening",
"fieldtype": "Select",
"search_index": 1,
"options": "No\nYes",
"in_filter": 1
},
{
"print_hide": 1,
"oldfieldtype": "Date",
"doctype": "DocField",
"label": "Aging Date",
"oldfieldname": "aging_date",
"fieldname": "aging_date",
"fieldtype": "Date",
"search_index": 0,
"permlevel": 0
},
{
"print_hide": 1,
"no_copy": 1,
"oldfieldtype": "Link",
"doctype": "DocField",
"label": "Amended From",
"oldfieldname": "amended_from",
"options": "Purchase Invoice",
"fieldname": "amended_from",
"fieldtype": "Link",
"permlevel": 1
},
{
"print_hide": 1,
"description": "The date at which current entry is corrected in the system.",
"no_copy": 1,
"oldfieldtype": "Date",
"doctype": "DocField",
"label": "Amendment Date",
"oldfieldname": "amendment_date",
"fieldname": "amendment_date",
"fieldtype": "Date",
"permlevel": 0
},
{
"print_hide": 1,
"no_copy": 1,
"oldfieldtype": "Link",
"colour": "White:FFF",
"allow_on_submit": 1,
"doctype": "DocField",
"label": "Select Print Heading",
"oldfieldname": "select_print_heading",
"permlevel": 0,
"trigger": "Client",
"fieldname": "select_print_heading",
"fieldtype": "Link",
"options": "Print Heading",
"report_hide": 1
},
{
"print_hide": 0,
"no_copy": 0,
"oldfieldtype": "Date",
"doctype": "DocField",
"label": "Due Date",
"oldfieldname": "due_date",
"fieldname": "due_date",
"fieldtype": "Date",
"search_index": 1,
"permlevel": 0,
"in_filter": 1
},
{
"oldfieldtype": "Select",
"doctype": "DocField",
"label": "Mode of Payment",
"oldfieldname": "mode_of_payment",
"options": "link:Mode of Payment",
"fieldname": "mode_of_payment",
"fieldtype": "Select",
"permlevel": 0
},
{
"print_hide": 1,
"oldfieldtype": "Column Break",
"doctype": "DocField",
"width": "50%",
"fieldname": "column_break4",
"fieldtype": "Column Break",
"permlevel": 0
},
{
"print_hide": 1,
"oldfieldtype": "Link",
"doctype": "DocField",
"label": "Company",
"oldfieldname": "company",
"options": "Company",
"fieldname": "company",
"fieldtype": "Link",
"search_index": 1,
"permlevel": 0,
"in_filter": 1
},
{
"print_hide": 1,
"oldfieldtype": "Select",
"doctype": "DocField",
"label": "Fiscal Year",
"oldfieldname": "fiscal_year",
"options": "link:Fiscal Year",
"fieldname": "fiscal_year",
"fieldtype": "Select",
"search_index": 1,
"permlevel": 0,
"in_filter": 1
},
{
"print_hide": 1,
"no_copy": 1,
"oldfieldtype": "Data",
"colour": "White:FFF",
"doctype": "DocField",
"label": "Cancel Reason",
"oldfieldname": "cancel_reason",
"fieldname": "cancel_reason",
"fieldtype": "Data",
"depends_on": "eval:!doc.__islocal",
"permlevel": 1
},
{
"print_hide": 1,
"no_copy": 1,
"oldfieldtype": "Text",
"doctype": "DocField",
"label": "Remarks",
"oldfieldname": "remarks",
"fieldname": "remarks",
"fieldtype": "Small Text",
"reqd": 0,
"permlevel": 0
},
{
"print_hide": 1,
"oldfieldtype": "Section Break",
"doctype": "DocField",
"label": "Advances",
"fieldname": "advances",
"fieldtype": "Section Break",
"permlevel": 0
},
{
"print_hide": 1,
"oldfieldtype": "Button",
"doctype": "DocField",
"label": "Get Advances Paid",
"options": "get_advances",
"fieldname": "get_advances_paid",
"fieldtype": "Button",
"permlevel": 0
},
{
"print_hide": 1,
"no_copy": 1,
"oldfieldtype": "Table",
"colour": "White:FFF",
"doctype": "DocField",
"label": "Purchase Invoice Advances",
"oldfieldname": "advance_allocation_details",
"options": "Purchase Invoice Advance",
"fieldname": "advance_allocation_details",
"fieldtype": "Table",
"permlevel": 0
},
{
"oldfieldtype": "Section Break",
"doctype": "DocField",
@@ -620,22 +422,13 @@
"fieldtype": "Section Break",
"permlevel": 0
},
{
"print_hide": 1,
"oldfieldtype": "Column Break",
"doctype": "DocField",
"width": "50%",
"fieldname": "column_break7",
"fieldtype": "Column Break",
"permlevel": 0
},
{
"print_hide": 1,
"oldfieldtype": "Currency",
"doctype": "DocField",
"label": "Taxes and Charges Added",
"oldfieldname": "other_charges_added",
"fieldname": "other_charges_added",
"label": "Net Total (Import)",
"oldfieldname": "net_total_import",
"fieldname": "net_total_import",
"fieldtype": "Currency",
"permlevel": 1
},
@@ -643,9 +436,9 @@
"print_hide": 1,
"oldfieldtype": "Currency",
"doctype": "DocField",
"label": "Taxes and Charges Deducted",
"oldfieldname": "other_charges_deducted",
"fieldname": "other_charges_deducted",
"label": "Taxes and Charges Added (Import)",
"oldfieldname": "other_charges_added_import",
"fieldname": "other_charges_added_import",
"fieldtype": "Currency",
"permlevel": 1
},
@@ -653,33 +446,32 @@
"print_hide": 1,
"oldfieldtype": "Currency",
"doctype": "DocField",
"label": "Grand Total",
"oldfieldname": "grand_total",
"fieldname": "grand_total",
"label": "Taxes and Charges Deducted (Import)",
"oldfieldname": "other_charges_deducted_import",
"fieldname": "other_charges_deducted_import",
"fieldtype": "Currency",
"permlevel": 1
},
{
"print_hide": 1,
"oldfieldtype": "Currency",
"doctype": "DocField",
"label": "Grand Total (Import)",
"oldfieldname": "grand_total_import",
"fieldname": "grand_total_import",
"fieldtype": "Currency",
"permlevel": 1
},
{
"print_hide": 1,
"description": "In Words will be visible once you save the Purchase Invoice.",
"oldfieldtype": "Data",
"colour": "White:FFF",
"doctype": "DocField",
"label": "In Words",
"oldfieldname": "in_words",
"fieldname": "in_words",
"label": "In Words (Import)",
"oldfieldname": "in_words_import",
"fieldname": "in_words_import",
"fieldtype": "Data",
"permlevel": 1
},
{
"print_hide": 1,
"oldfieldtype": "Column Break",
"doctype": "DocField",
"width": "50%",
"fieldname": "column_break8",
"fieldtype": "Column Break",
"permlevel": 0
},
{
"print_hide": 1,
"no_copy": 1,
@@ -716,6 +508,67 @@
"permlevel": 1,
"in_filter": 1
},
{
"print_hide": 1,
"oldfieldtype": "Column Break",
"doctype": "DocField",
"width": "50%",
"fieldname": "column_break8",
"fieldtype": "Column Break",
"permlevel": 0
},
{
"print_hide": 1,
"description": "Will be calculated automatically when you enter the details",
"oldfieldtype": "Currency",
"doctype": "DocField",
"label": "Net Total",
"oldfieldname": "net_total",
"fieldname": "net_total",
"fieldtype": "Currency",
"permlevel": 1
},
{
"print_hide": 1,
"oldfieldtype": "Currency",
"doctype": "DocField",
"label": "Taxes and Charges Added",
"oldfieldname": "other_charges_added",
"fieldname": "other_charges_added",
"fieldtype": "Currency",
"permlevel": 1
},
{
"print_hide": 1,
"oldfieldtype": "Currency",
"doctype": "DocField",
"label": "Taxes and Charges Deducted",
"oldfieldname": "other_charges_deducted",
"fieldname": "other_charges_deducted",
"fieldtype": "Currency",
"permlevel": 1
},
{
"print_hide": 1,
"oldfieldtype": "Currency",
"doctype": "DocField",
"label": "Grand Total",
"oldfieldname": "grand_total",
"fieldname": "grand_total",
"fieldtype": "Currency",
"permlevel": 1
},
{
"print_hide": 1,
"description": "In Words will be visible once you save the Purchase Invoice.",
"oldfieldtype": "Data",
"doctype": "DocField",
"label": "In Words",
"oldfieldname": "in_words",
"fieldname": "in_words",
"fieldtype": "Data",
"permlevel": 1
},
{
"print_hide": 1,
"no_copy": 1,
@@ -729,7 +582,6 @@
"print_hide": 1,
"no_copy": 1,
"depends_on": "eval:flt(doc.write_off_amount)!=0",
"colour": "White:FFF",
"doctype": "DocField",
"label": "Write Off Account",
"options": "Account",
@@ -741,7 +593,6 @@
"print_hide": 1,
"no_copy": 1,
"depends_on": "eval:flt(doc.write_off_amount)!=0",
"colour": "White:FFF",
"doctype": "DocField",
"label": "Write Off Cost Center",
"options": "Account",
@@ -749,47 +600,6 @@
"fieldtype": "Link",
"permlevel": 0
},
{
"print_hide": 1,
"oldfieldtype": "Currency",
"doctype": "DocField",
"label": "Taxes and Charges Added (Import)",
"oldfieldname": "other_charges_added_import",
"fieldname": "other_charges_added_import",
"fieldtype": "Currency",
"permlevel": 1
},
{
"print_hide": 1,
"oldfieldtype": "Currency",
"doctype": "DocField",
"label": "Taxes and Charges Deducted (Import)",
"oldfieldname": "other_charges_deducted_import",
"fieldname": "other_charges_deducted_import",
"fieldtype": "Currency",
"permlevel": 1
},
{
"print_hide": 1,
"oldfieldtype": "Currency",
"doctype": "DocField",
"label": "Grand Total (Import)",
"oldfieldname": "grand_total_import",
"fieldname": "grand_total_import",
"fieldtype": "Currency",
"permlevel": 1
},
{
"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,
"no_copy": 1,
@@ -803,6 +613,176 @@
"permlevel": 0,
"report_hide": 0
},
{
"print_hide": 1,
"oldfieldtype": "Section Break",
"doctype": "DocField",
"label": "Advances",
"fieldname": "advances",
"fieldtype": "Section Break",
"permlevel": 0
},
{
"print_hide": 1,
"oldfieldtype": "Button",
"doctype": "DocField",
"label": "Get Advances Paid",
"options": "get_advances",
"fieldname": "get_advances_paid",
"fieldtype": "Button",
"permlevel": 0
},
{
"print_hide": 1,
"no_copy": 1,
"oldfieldtype": "Table",
"doctype": "DocField",
"label": "Purchase Invoice Advances",
"oldfieldname": "advance_allocation_details",
"options": "Purchase Invoice Advance",
"fieldname": "advance_allocation_details",
"fieldtype": "Table",
"permlevel": 0
},
{
"print_hide": 1,
"oldfieldtype": "Section Break",
"doctype": "DocField",
"label": "More Info",
"fieldname": "more_info",
"fieldtype": "Section Break",
"permlevel": 0
},
{
"print_hide": 1,
"default": "No",
"oldfieldtype": "Select",
"doctype": "DocField",
"label": "Is Opening",
"oldfieldname": "is_opening",
"permlevel": 0,
"fieldname": "is_opening",
"fieldtype": "Select",
"search_index": 1,
"options": "No\nYes",
"in_filter": 1
},
{
"print_hide": 1,
"oldfieldtype": "Date",
"doctype": "DocField",
"label": "Aging Date",
"oldfieldname": "aging_date",
"fieldname": "aging_date",
"fieldtype": "Date",
"search_index": 0,
"permlevel": 0
},
{
"print_hide": 1,
"no_copy": 1,
"oldfieldtype": "Link",
"doctype": "DocField",
"label": "Amended From",
"oldfieldname": "amended_from",
"options": "Purchase Invoice",
"fieldname": "amended_from",
"fieldtype": "Link",
"permlevel": 1
},
{
"print_hide": 1,
"no_copy": 1,
"oldfieldtype": "Link",
"allow_on_submit": 1,
"doctype": "DocField",
"label": "Select Print Heading",
"oldfieldname": "select_print_heading",
"permlevel": 0,
"fieldname": "select_print_heading",
"fieldtype": "Link",
"options": "Print Heading",
"report_hide": 1
},
{
"print_hide": 0,
"no_copy": 0,
"oldfieldtype": "Date",
"doctype": "DocField",
"label": "Due Date",
"oldfieldname": "due_date",
"fieldname": "due_date",
"fieldtype": "Date",
"search_index": 1,
"permlevel": 0,
"in_filter": 1
},
{
"oldfieldtype": "Select",
"doctype": "DocField",
"label": "Mode of Payment",
"oldfieldname": "mode_of_payment",
"options": "link:Mode of Payment",
"fieldname": "mode_of_payment",
"fieldtype": "Select",
"permlevel": 0
},
{
"doctype": "DocField",
"fieldname": "column_break_63",
"fieldtype": "Column Break",
"permlevel": 0
},
{
"print_hide": 1,
"oldfieldtype": "Link",
"doctype": "DocField",
"label": "Company",
"oldfieldname": "company",
"options": "Company",
"fieldname": "company",
"fieldtype": "Link",
"search_index": 1,
"permlevel": 0,
"in_filter": 1
},
{
"print_hide": 1,
"oldfieldtype": "Select",
"doctype": "DocField",
"label": "Fiscal Year",
"oldfieldname": "fiscal_year",
"options": "link:Fiscal Year",
"fieldname": "fiscal_year",
"fieldtype": "Select",
"search_index": 1,
"permlevel": 0,
"in_filter": 1
},
{
"print_hide": 1,
"no_copy": 1,
"oldfieldtype": "Data",
"doctype": "DocField",
"label": "Cancel Reason",
"oldfieldname": "cancel_reason",
"fieldname": "cancel_reason",
"fieldtype": "Data",
"depends_on": "eval:!doc.__islocal",
"permlevel": 1
},
{
"print_hide": 1,
"no_copy": 1,
"oldfieldtype": "Text",
"doctype": "DocField",
"label": "Remarks",
"oldfieldname": "remarks",
"fieldname": "remarks",
"fieldtype": "Small Text",
"reqd": 0,
"permlevel": 0
},
{
"print_hide": 1,
"no_copy": 1,
@@ -813,14 +793,24 @@
"hidden": 1,
"permlevel": 0
},
{
"amend": 0,
"create": 0,
"doctype": "DocPerm",
"submit": 0,
"write": 0,
"role": "Accounts Manager",
"cancel": 0,
"permlevel": 1
},
{
"amend": 1,
"create": 1,
"doctype": "DocPerm",
"submit": 1,
"write": 1,
"role": "Accounts Manager",
"cancel": 1,
"role": "Accounts User",
"permlevel": 0
},
{
@@ -829,8 +819,17 @@
"doctype": "DocPerm",
"submit": 0,
"write": 0,
"role": "Accounts User",
"cancel": 0,
"permlevel": 1
},
{
"amend": 0,
"create": 0,
"doctype": "DocPerm",
"submit": 0,
"role": "Purchase User",
"cancel": 0,
"permlevel": 1
},
{
@@ -839,69 +838,24 @@
"doctype": "DocPerm",
"submit": 0,
"write": 1,
"cancel": 0,
"role": "Purchase User",
"cancel": 0,
"permlevel": 0
},
{
"amend": 1,
"create": 1,
"doctype": "DocPerm",
"submit": 1,
"write": 1,
"role": "Accounts User",
"cancel": 1,
"permlevel": 0
},
{
"amend": 0,
"create": 0,
"doctype": "DocPerm",
"submit": 0,
"write": 0,
"cancel": 0,
"role": "Supplier",
"permlevel": 0,
"match": "supplier"
},
{
"amend": 0,
"create": 0,
"doctype": "DocPerm",
"submit": 0,
"write": 0,
"cancel": 0,
"role": "Accounts Manager",
"permlevel": 1
},
{
"amend": 1,
"create": 1,
"doctype": "DocPerm",
"submit": 1,
"write": 1,
"cancel": 1,
"role": "Accounts Manager",
"permlevel": 0
},
{
"amend": 0,
"create": 0,
"doctype": "DocPerm",
"submit": 0,
"write": 0,
"cancel": 0,
"role": "Accounts User",
"permlevel": 1
},
{
"amend": 0,
"create": 0,
"doctype": "DocPerm",
"submit": 0,
"write": 0,
"cancel": 0,
"role": "Auditor",
"permlevel": 1
},
{
"amend": 0,
"create": 0,
"doctype": "DocPerm",
"submit": 0,
"write": 0,
"cancel": 0,
"role": "Auditor",
"permlevel": 0
}
]