field hide/unhide for pos

This commit is contained in:
Nabin Hait 2011-10-10 12:33:43 +05:30
parent 6a0561612f
commit 2810691979
2 changed files with 226 additions and 297 deletions

View File

@ -22,7 +22,7 @@ cur_frm.cscript.onload = function(doc,dt,dn) {
//for previously created sales invoice, set required field related to pos //for previously created sales invoice, set required field related to pos
if(doc.is_pos ==1) cur_frm.cscript.is_pos(doc, dt, dn); if(doc.is_pos ==1) cur_frm.cscript.is_pos(doc, dt, dn);
hide_field(['customer_address','contact_person','customer_name','address_display','contact_display','contact_mobile','contact_email','territory','customer_group']); hide_field(['customer_address', 'contact_person', 'customer_name', 'address_display', 'contact_display', 'contact_mobile', 'contact_email', 'territory', 'customer_group']);
} }
} }
@ -48,10 +48,25 @@ cur_frm.cscript.onload_post_render = function(doc, dt, dn) {
// Hide Fields // Hide Fields
// ------------ // ------------
cur_frm.cscript.hide_fields = function(doc, cdt, cdn) { cur_frm.cscript.hide_fields = function(doc, cdt, cdn) {
if(cint(doc.is_pos) == 1) par_flds =['project_name', 'due_date', 'posting_time', 'sales_order_main', 'delivery_note_main', 'Get Items', 'company', 'is_opening', 'currency', 'conversion_rate', 'price_list_name', 'cash_bank_account', 'source', 'cancel_reason', 'total_advance', 'gross_profit', 'gross_profit_percent', 'Get Advances Received', 'advance_adjustment_details', 'sales_partner', 'commission_rate', 'total_commission', 'Repair Outstanding Amt'];
hide_field(['project_name', 'due_date', 'posting_time', 'sales_order_main', 'delivery_note_main', 'Get Items']);
else ch_flds = {'entries': ['income_account', 'warehouse', 'cost_center', 'sales_order', 'delivery_note']}
unhide_field(['project_name', 'due_date', 'posting_time', 'sales_order_main', 'delivery_note_main', 'Get Items']);
if(cint(doc.is_pos) == 1) {
hide_field(par_flds);
for(t in ch_flds) {
for(f in ch_flds[t]) {
cur_frm.fields_dict[t].grid.set_column_disp(ch_flds[t][f], false);
}
}
} else {
unhide_field(par_flds);
for (t in ch_flds) {
for (f in ch_flds[t]) {
cur_frm.fields_dict[t].grid.set_column_disp(ch_flds[t][f], true);
}
}
}
} }

View File

@ -5,16 +5,17 @@
{ {
'creation': '2010-08-08 17:09:18', 'creation': '2010-08-08 17:09:18',
'docstatus': 0, 'docstatus': 0,
'modified': '2011-06-20 13:02:04', 'modified': '2011-10-10 12:29:26',
'modified_by': 'Administrator', 'modified_by': 'Administrator',
'owner': 'Administrator' 'owner': 'Administrator'
}, },
# These values are common for all DocType # These values are common for all DocType
{ {
'_last_update': '1309508839', '_last_update': '1317986484',
'change_log': '1. Change in pull_details method dt.-26-06-2009', 'change_log': '1. Change in pull_details method dt.-26-06-2009',
'colour': 'White:FFF', 'colour': 'White:FFF',
'default_print_format': 'Standard',
'doctype': 'DocType', 'doctype': 'DocType',
'module': 'Accounts', 'module': 'Accounts',
'name': '__common__', 'name': '__common__',
@ -24,7 +25,7 @@
'server_code_error': ' ', 'server_code_error': ' ',
'show_in_menu': 0, 'show_in_menu': 0,
'subject': 'To %(customer_name)s worth %(currency)s %(grand_total_export)s due on %(due_date)s | %(outstanding_amount)s outstanding', 'subject': 'To %(customer_name)s worth %(currency)s %(grand_total_export)s due on %(due_date)s | %(outstanding_amount)s outstanding',
'version': 356 'version': 359
}, },
# These values are common for all DocField # These values are common for all DocField
@ -58,7 +59,6 @@
'cancel': 0, 'cancel': 0,
'create': 0, 'create': 0,
'doctype': 'DocPerm', 'doctype': 'DocPerm',
'idx': 1,
'permlevel': 1, 'permlevel': 1,
'role': 'Accounts Manager', 'role': 'Accounts Manager',
'submit': 0, 'submit': 0,
@ -71,7 +71,6 @@
'cancel': 1, 'cancel': 1,
'create': 1, 'create': 1,
'doctype': 'DocPerm', 'doctype': 'DocPerm',
'idx': 2,
'permlevel': 0, 'permlevel': 0,
'role': 'Accounts Manager', 'role': 'Accounts Manager',
'submit': 1, 'submit': 1,
@ -84,7 +83,6 @@
'cancel': 1, 'cancel': 1,
'create': 1, 'create': 1,
'doctype': 'DocPerm', 'doctype': 'DocPerm',
'idx': 3,
'permlevel': 0, 'permlevel': 0,
'role': 'Accounts User', 'role': 'Accounts User',
'submit': 1, 'submit': 1,
@ -97,7 +95,6 @@
'cancel': 0, 'cancel': 0,
'create': 0, 'create': 0,
'doctype': 'DocPerm', 'doctype': 'DocPerm',
'idx': 4,
'permlevel': 1, 'permlevel': 1,
'role': 'Accounts User', 'role': 'Accounts User',
'submit': 0, 'submit': 0,
@ -106,18 +103,21 @@
# DocPerm # DocPerm
{ {
'amend': 0,
'cancel': 0,
'create': 0,
'doctype': 'DocPerm', 'doctype': 'DocPerm',
'idx': 5,
'match': 'customer', 'match': 'customer',
'permlevel': 0, 'permlevel': 0,
'role': 'Customer' 'role': 'Customer',
'submit': 0,
'write': 0
}, },
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': 'DocField',
'fieldtype': 'Section Break', 'fieldtype': 'Section Break',
'idx': 1,
'label': 'Basic Info', 'label': 'Basic Info',
'oldfieldtype': 'Section Break', 'oldfieldtype': 'Section Break',
'permlevel': 0, 'permlevel': 0,
@ -128,7 +128,6 @@
{ {
'doctype': 'DocField', 'doctype': 'DocField',
'fieldtype': 'Column Break', 'fieldtype': 'Column Break',
'idx': 2,
'oldfieldtype': 'Column Break', 'oldfieldtype': 'Column Break',
'permlevel': 0, 'permlevel': 0,
'print_hide': 0, 'print_hide': 0,
@ -143,7 +142,6 @@
'doctype': 'DocField', 'doctype': 'DocField',
'fieldname': 'naming_series', 'fieldname': 'naming_series',
'fieldtype': 'Select', 'fieldtype': 'Select',
'idx': 3,
'label': 'Series', 'label': 'Series',
'no_copy': 1, 'no_copy': 1,
'oldfieldname': 'naming_series', 'oldfieldname': 'naming_series',
@ -159,7 +157,6 @@
'doctype': 'DocField', 'doctype': 'DocField',
'fieldname': 'is_pos', 'fieldname': 'is_pos',
'fieldtype': 'Check', 'fieldtype': 'Check',
'idx': 4,
'label': 'Is POS', 'label': 'Is POS',
'oldfieldname': 'is_pos', 'oldfieldname': 'is_pos',
'oldfieldtype': 'Check', 'oldfieldtype': 'Check',
@ -174,7 +171,6 @@
'doctype': 'DocField', 'doctype': 'DocField',
'fieldname': 'update_stock', 'fieldname': 'update_stock',
'fieldtype': 'Check', 'fieldtype': 'Check',
'idx': 5,
'label': 'Update Stock', 'label': 'Update Stock',
'oldfieldname': 'update_stock', 'oldfieldname': 'update_stock',
'oldfieldtype': 'Check', 'oldfieldtype': 'Check',
@ -189,7 +185,6 @@
'doctype': 'DocField', 'doctype': 'DocField',
'fieldname': 'debit_to', 'fieldname': 'debit_to',
'fieldtype': 'Link', 'fieldtype': 'Link',
'idx': 6,
'in_filter': 1, 'in_filter': 1,
'label': 'Debit To', 'label': 'Debit To',
'oldfieldname': 'debit_to', 'oldfieldname': 'debit_to',
@ -209,7 +204,6 @@
'fieldname': 'customer', 'fieldname': 'customer',
'fieldtype': 'Link', 'fieldtype': 'Link',
'hidden': 0, 'hidden': 0,
'idx': 7,
'label': 'Customer', 'label': 'Customer',
'no_copy': 0, 'no_copy': 0,
'oldfieldname': 'customer', 'oldfieldname': 'customer',
@ -225,7 +219,6 @@
'doctype': 'DocField', 'doctype': 'DocField',
'fieldname': 'customer_address', 'fieldname': 'customer_address',
'fieldtype': 'Link', 'fieldtype': 'Link',
'idx': 8,
'label': 'Customer Address', 'label': 'Customer Address',
'options': 'Address', 'options': 'Address',
'permlevel': 0, 'permlevel': 0,
@ -237,7 +230,6 @@
'doctype': 'DocField', 'doctype': 'DocField',
'fieldname': 'contact_person', 'fieldname': 'contact_person',
'fieldtype': 'Link', 'fieldtype': 'Link',
'idx': 9,
'label': 'Contact Person', 'label': 'Contact Person',
'options': 'Contact', 'options': 'Contact',
'permlevel': 0, 'permlevel': 0,
@ -249,7 +241,6 @@
'doctype': 'DocField', 'doctype': 'DocField',
'fieldname': 'customer_name', 'fieldname': 'customer_name',
'fieldtype': 'Data', 'fieldtype': 'Data',
'idx': 10,
'label': 'Name', 'label': 'Name',
'oldfieldname': 'customer_name', 'oldfieldname': 'customer_name',
'oldfieldtype': 'Data', 'oldfieldtype': 'Data',
@ -261,7 +252,6 @@
'doctype': 'DocField', 'doctype': 'DocField',
'fieldname': 'address_display', 'fieldname': 'address_display',
'fieldtype': 'Small Text', 'fieldtype': 'Small Text',
'idx': 11,
'label': 'Address', 'label': 'Address',
'permlevel': 1 'permlevel': 1
}, },
@ -271,7 +261,6 @@
'doctype': 'DocField', 'doctype': 'DocField',
'fieldname': 'contact_display', 'fieldname': 'contact_display',
'fieldtype': 'Small Text', 'fieldtype': 'Small Text',
'idx': 12,
'label': 'Contact', 'label': 'Contact',
'permlevel': 1 'permlevel': 1
}, },
@ -281,7 +270,6 @@
'doctype': 'DocField', 'doctype': 'DocField',
'fieldname': 'contact_mobile', 'fieldname': 'contact_mobile',
'fieldtype': 'Text', 'fieldtype': 'Text',
'idx': 13,
'label': 'Mobile No', 'label': 'Mobile No',
'permlevel': 1 'permlevel': 1
}, },
@ -291,7 +279,6 @@
'doctype': 'DocField', 'doctype': 'DocField',
'fieldname': 'contact_email', 'fieldname': 'contact_email',
'fieldtype': 'Text', 'fieldtype': 'Text',
'idx': 14,
'label': 'Contact Email', 'label': 'Contact Email',
'permlevel': 1, 'permlevel': 1,
'print_hide': 1 'print_hide': 1
@ -302,7 +289,6 @@
'colour': 'White:FFF', 'colour': 'White:FFF',
'doctype': 'DocField', 'doctype': 'DocField',
'fieldtype': 'Column Break', 'fieldtype': 'Column Break',
'idx': 15,
'oldfieldtype': 'Column Break', 'oldfieldtype': 'Column Break',
'permlevel': 0 'permlevel': 0
}, },
@ -315,7 +301,6 @@
'doctype': 'DocField', 'doctype': 'DocField',
'fieldname': 'voucher_date', 'fieldname': 'voucher_date',
'fieldtype': 'Date', 'fieldtype': 'Date',
'idx': 16,
'in_filter': 1, 'in_filter': 1,
'label': 'Voucher Date', 'label': 'Voucher Date',
'no_copy': 1, 'no_copy': 1,
@ -334,7 +319,6 @@
'doctype': 'DocField', 'doctype': 'DocField',
'fieldname': 'due_date', 'fieldname': 'due_date',
'fieldtype': 'Date', 'fieldtype': 'Date',
'idx': 17,
'in_filter': 1, 'in_filter': 1,
'label': 'Due Date', 'label': 'Due Date',
'no_copy': 1, 'no_copy': 1,
@ -353,7 +337,6 @@
'doctype': 'DocField', 'doctype': 'DocField',
'fieldname': 'posting_date', 'fieldname': 'posting_date',
'fieldtype': 'Date', 'fieldtype': 'Date',
'idx': 18,
'in_filter': 1, 'in_filter': 1,
'label': 'Posting Date', 'label': 'Posting Date',
'no_copy': 1, 'no_copy': 1,
@ -370,7 +353,6 @@
'doctype': 'DocField', 'doctype': 'DocField',
'fieldname': 'posting_time', 'fieldname': 'posting_time',
'fieldtype': 'Time', 'fieldtype': 'Time',
'idx': 19,
'label': 'Posting Time', 'label': 'Posting Time',
'no_copy': 1, 'no_copy': 1,
'oldfieldname': 'posting_time', 'oldfieldname': 'posting_time',
@ -385,7 +367,6 @@
'doctype': 'DocField', 'doctype': 'DocField',
'fieldname': 'amendment_date', 'fieldname': 'amendment_date',
'fieldtype': 'Date', 'fieldtype': 'Date',
'idx': 20,
'label': 'Amendment Date', 'label': 'Amendment Date',
'no_copy': 1, 'no_copy': 1,
'oldfieldname': 'amendment_date', 'oldfieldname': 'amendment_date',
@ -399,8 +380,8 @@
'doctype': 'DocField', 'doctype': 'DocField',
'fieldname': 'amended_from', 'fieldname': 'amended_from',
'fieldtype': 'Link', 'fieldtype': 'Link',
'idx': 21,
'label': 'Amended From', 'label': 'Amended From',
'no_copy': 1,
'oldfieldname': 'amended_from', 'oldfieldname': 'amended_from',
'oldfieldtype': 'Link', 'oldfieldtype': 'Link',
'options': 'Receivable Voucher', 'options': 'Receivable Voucher',
@ -413,7 +394,6 @@
'doctype': 'DocField', 'doctype': 'DocField',
'fieldname': 'mode_of_payment', 'fieldname': 'mode_of_payment',
'fieldtype': 'Select', 'fieldtype': 'Select',
'idx': 22,
'label': 'Mode of Payment', 'label': 'Mode of Payment',
'oldfieldname': 'mode_of_payment', 'oldfieldname': 'mode_of_payment',
'oldfieldtype': 'Select', 'oldfieldtype': 'Select',
@ -426,7 +406,6 @@
'doctype': 'DocField', 'doctype': 'DocField',
'fieldname': 'territory', 'fieldname': 'territory',
'fieldtype': 'Link', 'fieldtype': 'Link',
'idx': 23,
'in_filter': 1, 'in_filter': 1,
'label': 'Territory', 'label': 'Territory',
'options': 'Territory', 'options': 'Territory',
@ -441,14 +420,12 @@
'doctype': 'DocField', 'doctype': 'DocField',
'fieldname': 'customer_group', 'fieldname': 'customer_group',
'fieldtype': 'Link', 'fieldtype': 'Link',
'idx': 24,
'in_filter': 1, 'in_filter': 1,
'label': 'Customer Group', 'label': 'Customer Group',
'options': 'Customer Group', 'options': 'Customer Group',
'permlevel': 0, 'permlevel': 0,
'print_hide': 1, 'print_hide': 1,
'reqd': 1, 'search_index': 0
'search_index': 1
}, },
# DocField # DocField
@ -456,7 +433,6 @@
'colour': 'White:FFF', 'colour': 'White:FFF',
'doctype': 'DocField', 'doctype': 'DocField',
'fieldtype': 'Section Break', 'fieldtype': 'Section Break',
'idx': 25,
'label': 'Items', 'label': 'Items',
'oldfieldtype': 'Section Break', 'oldfieldtype': 'Section Break',
'permlevel': 0 'permlevel': 0
@ -467,7 +443,6 @@
'doctype': 'DocField', 'doctype': 'DocField',
'fieldname': 'price_list_name', 'fieldname': 'price_list_name',
'fieldtype': 'Select', 'fieldtype': 'Select',
'idx': 26,
'label': 'Price List', 'label': 'Price List',
'oldfieldname': 'price_list_name', 'oldfieldname': 'price_list_name',
'oldfieldtype': 'Select', 'oldfieldtype': 'Select',
@ -484,7 +459,6 @@
'doctype': 'DocField', 'doctype': 'DocField',
'fieldname': 'sales_order_main', 'fieldname': 'sales_order_main',
'fieldtype': 'Link', 'fieldtype': 'Link',
'idx': 27,
'label': 'Sales Order', 'label': 'Sales Order',
'oldfieldname': 'sales_order_main', 'oldfieldname': 'sales_order_main',
'oldfieldtype': 'Link', 'oldfieldtype': 'Link',
@ -500,7 +474,6 @@
'doctype': 'DocField', 'doctype': 'DocField',
'fieldname': 'delivery_note_main', 'fieldname': 'delivery_note_main',
'fieldtype': 'Link', 'fieldtype': 'Link',
'idx': 28,
'label': 'Delivery Note', 'label': 'Delivery Note',
'oldfieldname': 'delivery_note_main', 'oldfieldname': 'delivery_note_main',
'oldfieldtype': 'Link', 'oldfieldtype': 'Link',
@ -513,7 +486,6 @@
{ {
'doctype': 'DocField', 'doctype': 'DocField',
'fieldtype': 'Button', 'fieldtype': 'Button',
'idx': 29,
'label': 'Get Items', 'label': 'Get Items',
'oldfieldtype': 'Button', 'oldfieldtype': 'Button',
'permlevel': 0, 'permlevel': 0,
@ -525,7 +497,6 @@
{ {
'doctype': 'DocField', 'doctype': 'DocField',
'fieldtype': 'Column Break', 'fieldtype': 'Column Break',
'idx': 30,
'permlevel': 0, 'permlevel': 0,
'width': '50%' 'width': '50%'
}, },
@ -535,7 +506,6 @@
'doctype': 'DocField', 'doctype': 'DocField',
'fieldname': 'currency', 'fieldname': 'currency',
'fieldtype': 'Select', 'fieldtype': 'Select',
'idx': 31,
'label': 'Currency', 'label': 'Currency',
'oldfieldname': 'currency', 'oldfieldname': 'currency',
'oldfieldtype': 'Select', 'oldfieldtype': 'Select',
@ -551,7 +521,6 @@
'doctype': 'DocField', 'doctype': 'DocField',
'fieldname': 'conversion_rate', 'fieldname': 'conversion_rate',
'fieldtype': 'Currency', 'fieldtype': 'Currency',
'idx': 32,
'label': 'Conversion Rate', 'label': 'Conversion Rate',
'oldfieldname': 'conversion_rate', 'oldfieldname': 'conversion_rate',
'oldfieldtype': 'Currency', 'oldfieldtype': 'Currency',
@ -564,7 +533,6 @@
{ {
'doctype': 'DocField', 'doctype': 'DocField',
'fieldtype': 'Section Break', 'fieldtype': 'Section Break',
'idx': 33,
'permlevel': 0 'permlevel': 0
}, },
@ -575,7 +543,6 @@
'doctype': 'DocField', 'doctype': 'DocField',
'fieldname': 'entries', 'fieldname': 'entries',
'fieldtype': 'Table', 'fieldtype': 'Table',
'idx': 34,
'label': 'Entries', 'label': 'Entries',
'oldfieldname': 'entries', 'oldfieldname': 'entries',
'oldfieldtype': 'Table', 'oldfieldtype': 'Table',
@ -588,7 +555,6 @@
'colour': 'White:FFF', 'colour': 'White:FFF',
'doctype': 'DocField', 'doctype': 'DocField',
'fieldtype': 'Button', 'fieldtype': 'Button',
'idx': 35,
'label': 'Re-Calculate Values', 'label': 'Re-Calculate Values',
'oldfieldtype': 'Button', 'oldfieldtype': 'Button',
'permlevel': 0, 'permlevel': 0,
@ -596,13 +562,27 @@
'trigger': 'Client' 'trigger': 'Client'
}, },
# DocField
{
'doctype': 'DocField',
'fieldtype': 'Section Break',
'permlevel': 0
},
# DocField
{
'doctype': 'DocField',
'fieldtype': 'Column Break',
'permlevel': 0,
'width': '50%'
},
# DocField # DocField
{ {
'description': 'Will be calculated automatically when you enter the details', 'description': 'Will be calculated automatically when you enter the details',
'doctype': 'DocField', 'doctype': 'DocField',
'fieldname': 'net_total', 'fieldname': 'net_total',
'fieldtype': 'Currency', 'fieldtype': 'Currency',
'idx': 36,
'label': 'Net Total*', 'label': 'Net Total*',
'oldfieldname': 'net_total', 'oldfieldname': 'net_total',
'oldfieldtype': 'Currency', 'oldfieldtype': 'Currency',
@ -615,7 +595,6 @@
{ {
'doctype': 'DocField', 'doctype': 'DocField',
'fieldtype': 'HTML', 'fieldtype': 'HTML',
'idx': 37,
'label': 'Rates HTML', 'label': 'Rates HTML',
'oldfieldtype': 'HTML', 'oldfieldtype': 'HTML',
'options': '* Rates in standard currency', 'options': '* Rates in standard currency',
@ -623,14 +602,6 @@
'print_hide': 1 'print_hide': 1
}, },
# DocField
{
'doctype': 'DocField',
'fieldtype': 'Section Break',
'idx': 38,
'permlevel': 0
},
# DocField # DocField
{ {
'colour': 'White:FFF', 'colour': 'White:FFF',
@ -638,7 +609,6 @@
'doctype': 'DocField', 'doctype': 'DocField',
'fieldname': 'cash_bank_account', 'fieldname': 'cash_bank_account',
'fieldtype': 'Link', 'fieldtype': 'Link',
'idx': 39,
'label': 'Cash/Bank Account', 'label': 'Cash/Bank Account',
'oldfieldname': 'cash_bank_account', 'oldfieldname': 'cash_bank_account',
'oldfieldtype': 'Link', 'oldfieldtype': 'Link',
@ -654,7 +624,6 @@
'doctype': 'DocField', 'doctype': 'DocField',
'fieldname': 'paid_amount', 'fieldname': 'paid_amount',
'fieldtype': 'Currency', 'fieldtype': 'Currency',
'idx': 40,
'label': 'Paid Amount', 'label': 'Paid Amount',
'oldfieldname': 'paid_amount', 'oldfieldname': 'paid_amount',
'oldfieldtype': 'Currency', 'oldfieldtype': 'Currency',
@ -667,7 +636,6 @@
{ {
'doctype': 'DocField', 'doctype': 'DocField',
'fieldtype': 'Column Break', 'fieldtype': 'Column Break',
'idx': 41,
'permlevel': 0, 'permlevel': 0,
'width': '50%' 'width': '50%'
}, },
@ -679,7 +647,6 @@
'doctype': 'DocField', 'doctype': 'DocField',
'fieldname': 'write_off_account', 'fieldname': 'write_off_account',
'fieldtype': 'Link', 'fieldtype': 'Link',
'idx': 42,
'label': 'Write Off Account', 'label': 'Write Off Account',
'options': 'Account', 'options': 'Account',
'permlevel': 0, 'permlevel': 0,
@ -693,7 +660,6 @@
'doctype': 'DocField', 'doctype': 'DocField',
'fieldname': 'write_off_cost_center', 'fieldname': 'write_off_cost_center',
'fieldtype': 'Link', 'fieldtype': 'Link',
'idx': 43,
'label': 'Write Off Cost Center', 'label': 'Write Off Cost Center',
'options': 'Cost Center', 'options': 'Cost Center',
'permlevel': 0, 'permlevel': 0,
@ -707,7 +673,6 @@
'doctype': 'DocField', 'doctype': 'DocField',
'fieldname': 'write_off_amount', 'fieldname': 'write_off_amount',
'fieldtype': 'Currency', 'fieldtype': 'Currency',
'idx': 44,
'label': 'Write Off Amount', 'label': 'Write Off Amount',
'permlevel': 0, 'permlevel': 0,
'print_hide': 1 'print_hide': 1
@ -717,7 +682,6 @@
{ {
'doctype': 'DocField', 'doctype': 'DocField',
'fieldtype': 'Section Break', 'fieldtype': 'Section Break',
'idx': 45,
'label': 'Taxes', 'label': 'Taxes',
'oldfieldtype': 'Section Break', 'oldfieldtype': 'Section Break',
'permlevel': 0 'permlevel': 0
@ -728,7 +692,6 @@
'doctype': 'DocField', 'doctype': 'DocField',
'fieldname': 'charge', 'fieldname': 'charge',
'fieldtype': 'Link', 'fieldtype': 'Link',
'idx': 46,
'label': 'Charge', 'label': 'Charge',
'oldfieldname': 'charge', 'oldfieldname': 'charge',
'oldfieldtype': 'Link', 'oldfieldtype': 'Link',
@ -741,7 +704,6 @@
{ {
'doctype': 'DocField', 'doctype': 'DocField',
'fieldtype': 'Button', 'fieldtype': 'Button',
'idx': 47,
'label': 'Get Charges', 'label': 'Get Charges',
'oldfieldtype': 'Button', 'oldfieldtype': 'Button',
'permlevel': 0, 'permlevel': 0,
@ -756,7 +718,6 @@
'doctype': 'DocField', 'doctype': 'DocField',
'fieldname': 'other_charges', 'fieldname': 'other_charges',
'fieldtype': 'Table', 'fieldtype': 'Table',
'idx': 48,
'label': 'Taxes1', 'label': 'Taxes1',
'oldfieldname': 'other_charges', 'oldfieldname': 'other_charges',
'oldfieldtype': 'Table', 'oldfieldtype': 'Table',
@ -764,24 +725,10 @@
'permlevel': 0 'permlevel': 0
}, },
# DocField
{
'doctype': 'DocField',
'fieldname': 'other_charges_total',
'fieldtype': 'Currency',
'idx': 49,
'label': 'Total Charges',
'oldfieldname': 'other_charges_total',
'oldfieldtype': 'Currency',
'permlevel': 1,
'print_hide': 1
},
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': 'DocField',
'fieldtype': 'Button', 'fieldtype': 'Button',
'idx': 50,
'label': 'Calculate Charges', 'label': 'Calculate Charges',
'oldfieldtype': 'Button', 'oldfieldtype': 'Button',
'permlevel': 0, 'permlevel': 0,
@ -789,11 +736,22 @@
'trigger': 'Client' 'trigger': 'Client'
}, },
# DocField
{
'doctype': 'DocField',
'fieldname': 'other_charges_total',
'fieldtype': 'Currency',
'label': 'Total Charges',
'oldfieldname': 'other_charges_total',
'oldfieldtype': 'Currency',
'permlevel': 1,
'print_hide': 1
},
# DocField # DocField
{ {
'doctype': 'DocField', 'doctype': 'DocField',
'fieldtype': 'HTML', 'fieldtype': 'HTML',
'idx': 51,
'label': 'Other Charges Calculation', 'label': 'Other Charges Calculation',
'oldfieldtype': 'HTML', 'oldfieldtype': 'HTML',
'permlevel': 0, 'permlevel': 0,
@ -805,7 +763,6 @@
'colour': 'White:FFF', 'colour': 'White:FFF',
'doctype': 'DocField', 'doctype': 'DocField',
'fieldtype': 'Section Break', 'fieldtype': 'Section Break',
'idx': 52,
'label': 'Terms', 'label': 'Terms',
'oldfieldtype': 'Section Break', 'oldfieldtype': 'Section Break',
'permlevel': 0 'permlevel': 0
@ -816,7 +773,6 @@
'doctype': 'DocField', 'doctype': 'DocField',
'fieldname': 'tc_name', 'fieldname': 'tc_name',
'fieldtype': 'Link', 'fieldtype': 'Link',
'idx': 53,
'label': 'Select Terms', 'label': 'Select Terms',
'oldfieldname': 'tc_name', 'oldfieldname': 'tc_name',
'oldfieldtype': 'Link', 'oldfieldtype': 'Link',
@ -830,7 +786,6 @@
'colour': 'White:FFF', 'colour': 'White:FFF',
'doctype': 'DocField', 'doctype': 'DocField',
'fieldtype': 'Button', 'fieldtype': 'Button',
'idx': 54,
'label': 'Get Terms', 'label': 'Get Terms',
'oldfieldtype': 'Button', 'oldfieldtype': 'Button',
'options': 'get_tc_details', 'options': 'get_tc_details',
@ -844,7 +799,6 @@
'colour': 'White:FFF', 'colour': 'White:FFF',
'doctype': 'DocField', 'doctype': 'DocField',
'fieldtype': 'HTML', 'fieldtype': 'HTML',
'idx': 55,
'label': 'Terms HTML', 'label': 'Terms HTML',
'oldfieldtype': 'HTML', 'oldfieldtype': 'HTML',
'options': 'You can add Terms and Notes that will be printed in the Transaction', 'options': 'You can add Terms and Notes that will be printed in the Transaction',
@ -857,7 +811,6 @@
'doctype': 'DocField', 'doctype': 'DocField',
'fieldname': 'terms', 'fieldname': 'terms',
'fieldtype': 'Text Editor', 'fieldtype': 'Text Editor',
'idx': 56,
'label': 'Term Details', 'label': 'Term Details',
'oldfieldname': 'terms', 'oldfieldname': 'terms',
'oldfieldtype': 'Text Editor', 'oldfieldtype': 'Text Editor',
@ -869,7 +822,6 @@
'colour': 'White:FFF', 'colour': 'White:FFF',
'doctype': 'DocField', 'doctype': 'DocField',
'fieldtype': 'Section Break', 'fieldtype': 'Section Break',
'idx': 57,
'label': 'More Info', 'label': 'More Info',
'oldfieldtype': 'Section Break', 'oldfieldtype': 'Section Break',
'permlevel': 0, 'permlevel': 0,
@ -881,7 +833,6 @@
'colour': 'White:FFF', 'colour': 'White:FFF',
'doctype': 'DocField', 'doctype': 'DocField',
'fieldtype': 'Column Break', 'fieldtype': 'Column Break',
'idx': 58,
'oldfieldtype': 'Column Break', 'oldfieldtype': 'Column Break',
'permlevel': 0, 'permlevel': 0,
'print_hide': 1, 'print_hide': 1,
@ -895,7 +846,6 @@
'doctype': 'DocField', 'doctype': 'DocField',
'fieldname': 'is_opening', 'fieldname': 'is_opening',
'fieldtype': 'Select', 'fieldtype': 'Select',
'idx': 59,
'in_filter': 1, 'in_filter': 1,
'label': 'Is Opening', 'label': 'Is Opening',
'oldfieldname': 'is_opening', 'oldfieldname': 'is_opening',
@ -912,7 +862,6 @@
'doctype': 'DocField', 'doctype': 'DocField',
'fieldname': 'aging_date', 'fieldname': 'aging_date',
'fieldtype': 'Date', 'fieldtype': 'Date',
'idx': 60,
'label': 'Aging Date', 'label': 'Aging Date',
'oldfieldname': 'aging_date', 'oldfieldname': 'aging_date',
'oldfieldtype': 'Date', 'oldfieldtype': 'Date',
@ -927,7 +876,6 @@
'doctype': 'DocField', 'doctype': 'DocField',
'fieldname': 'letter_head', 'fieldname': 'letter_head',
'fieldtype': 'Select', 'fieldtype': 'Select',
'idx': 61,
'label': 'Letter Head', 'label': 'Letter Head',
'oldfieldname': 'letter_head', 'oldfieldname': 'letter_head',
'oldfieldtype': 'Select', 'oldfieldtype': 'Select',
@ -941,7 +889,6 @@
'doctype': 'DocField', 'doctype': 'DocField',
'fieldname': 'source', 'fieldname': 'source',
'fieldtype': 'Select', 'fieldtype': 'Select',
'idx': 62,
'label': 'Source', 'label': 'Source',
'oldfieldname': 'source', 'oldfieldname': 'source',
'oldfieldtype': 'Select', 'oldfieldtype': 'Select',
@ -957,7 +904,6 @@
'doctype': 'DocField', 'doctype': 'DocField',
'fieldname': 'campaign', 'fieldname': 'campaign',
'fieldtype': 'Link', 'fieldtype': 'Link',
'idx': 63,
'label': 'Campaign', 'label': 'Campaign',
'oldfieldname': 'campaign', 'oldfieldname': 'campaign',
'oldfieldtype': 'Link', 'oldfieldtype': 'Link',
@ -973,7 +919,6 @@
'doctype': 'DocField', 'doctype': 'DocField',
'fieldname': 'select_print_heading', 'fieldname': 'select_print_heading',
'fieldtype': 'Link', 'fieldtype': 'Link',
'idx': 64,
'label': 'Select Print Heading', 'label': 'Select Print Heading',
'no_copy': 1, 'no_copy': 1,
'oldfieldname': 'select_print_heading', 'oldfieldname': 'select_print_heading',
@ -992,7 +937,6 @@
'doctype': 'DocField', 'doctype': 'DocField',
'fieldname': 'project_name', 'fieldname': 'project_name',
'fieldtype': 'Link', 'fieldtype': 'Link',
'idx': 65,
'in_filter': 1, 'in_filter': 1,
'label': 'Project Name', 'label': 'Project Name',
'oldfieldname': 'project_name', 'oldfieldname': 'project_name',
@ -1008,7 +952,6 @@
'colour': 'White:FFF', 'colour': 'White:FFF',
'doctype': 'DocField', 'doctype': 'DocField',
'fieldtype': 'Column Break', 'fieldtype': 'Column Break',
'idx': 66,
'oldfieldtype': 'Column Break', 'oldfieldtype': 'Column Break',
'permlevel': 0 'permlevel': 0
}, },
@ -1018,7 +961,6 @@
'doctype': 'DocField', 'doctype': 'DocField',
'fieldname': 'company', 'fieldname': 'company',
'fieldtype': 'Link', 'fieldtype': 'Link',
'idx': 67,
'in_filter': 1, 'in_filter': 1,
'label': 'Company', 'label': 'Company',
'oldfieldname': 'company', 'oldfieldname': 'company',
@ -1035,7 +977,6 @@
'doctype': 'DocField', 'doctype': 'DocField',
'fieldname': 'fiscal_year', 'fieldname': 'fiscal_year',
'fieldtype': 'Select', 'fieldtype': 'Select',
'idx': 68,
'in_filter': 1, 'in_filter': 1,
'label': 'Fiscal Year', 'label': 'Fiscal Year',
'no_copy': 0, 'no_copy': 0,
@ -1055,7 +996,6 @@
'doctype': 'DocField', 'doctype': 'DocField',
'fieldname': 'cancel_reason', 'fieldname': 'cancel_reason',
'fieldtype': 'Data', 'fieldtype': 'Data',
'idx': 69,
'label': 'Cancel Reason', 'label': 'Cancel Reason',
'oldfieldname': 'cancel_reason', 'oldfieldname': 'cancel_reason',
'oldfieldtype': 'Data', 'oldfieldtype': 'Data',
@ -1068,7 +1008,6 @@
'doctype': 'DocField', 'doctype': 'DocField',
'fieldname': 'remarks', 'fieldname': 'remarks',
'fieldtype': 'Small Text', 'fieldtype': 'Small Text',
'idx': 70,
'label': 'Remarks', 'label': 'Remarks',
'no_copy': 1, 'no_copy': 1,
'oldfieldname': 'remarks', 'oldfieldname': 'remarks',
@ -1083,7 +1022,6 @@
'colour': 'White:FFF', 'colour': 'White:FFF',
'doctype': 'DocField', 'doctype': 'DocField',
'fieldtype': 'Section Break', 'fieldtype': 'Section Break',
'idx': 71,
'label': 'Totals', 'label': 'Totals',
'oldfieldtype': 'Section Break', 'oldfieldtype': 'Section Break',
'permlevel': 0, 'permlevel': 0,
@ -1095,7 +1033,6 @@
'colour': 'White:FFF', 'colour': 'White:FFF',
'doctype': 'DocField', 'doctype': 'DocField',
'fieldtype': 'Column Break', 'fieldtype': 'Column Break',
'idx': 72,
'oldfieldtype': 'Column Break', 'oldfieldtype': 'Column Break',
'permlevel': 0, 'permlevel': 0,
'print_hide': 1, 'print_hide': 1,
@ -1108,7 +1045,6 @@
'doctype': 'DocField', 'doctype': 'DocField',
'fieldname': 'grand_total', 'fieldname': 'grand_total',
'fieldtype': 'Currency', 'fieldtype': 'Currency',
'idx': 73,
'in_filter': 1, 'in_filter': 1,
'label': 'Grand Total', 'label': 'Grand Total',
'oldfieldname': 'grand_total', 'oldfieldname': 'grand_total',
@ -1124,7 +1060,6 @@
'doctype': 'DocField', 'doctype': 'DocField',
'fieldname': 'rounded_total', 'fieldname': 'rounded_total',
'fieldtype': 'Currency', 'fieldtype': 'Currency',
'idx': 74,
'label': 'Rounded Total', 'label': 'Rounded Total',
'oldfieldname': 'rounded_total', 'oldfieldname': 'rounded_total',
'oldfieldtype': 'Currency', 'oldfieldtype': 'Currency',
@ -1139,7 +1074,6 @@
'doctype': 'DocField', 'doctype': 'DocField',
'fieldname': 'in_words', 'fieldname': 'in_words',
'fieldtype': 'Data', 'fieldtype': 'Data',
'idx': 75,
'label': 'In Words', 'label': 'In Words',
'oldfieldname': 'in_words', 'oldfieldname': 'in_words',
'oldfieldtype': 'Data', 'oldfieldtype': 'Data',
@ -1152,7 +1086,6 @@
'doctype': 'DocField', 'doctype': 'DocField',
'fieldname': 'total_advance', 'fieldname': 'total_advance',
'fieldtype': 'Currency', 'fieldtype': 'Currency',
'idx': 76,
'label': 'Total Advance', 'label': 'Total Advance',
'oldfieldname': 'total_advance', 'oldfieldname': 'total_advance',
'oldfieldtype': 'Currency', 'oldfieldtype': 'Currency',
@ -1166,7 +1099,6 @@
'doctype': 'DocField', 'doctype': 'DocField',
'fieldname': 'outstanding_amount', 'fieldname': 'outstanding_amount',
'fieldtype': 'Currency', 'fieldtype': 'Currency',
'idx': 77,
'label': 'Outstanding Amount', 'label': 'Outstanding Amount',
'no_copy': 1, 'no_copy': 1,
'oldfieldname': 'outstanding_amount', 'oldfieldname': 'outstanding_amount',
@ -1180,7 +1112,6 @@
'colour': 'White:FFF', 'colour': 'White:FFF',
'doctype': 'DocField', 'doctype': 'DocField',
'fieldtype': 'Column Break', 'fieldtype': 'Column Break',
'idx': 78,
'oldfieldtype': 'Column Break', 'oldfieldtype': 'Column Break',
'permlevel': 0, 'permlevel': 0,
'print_hide': 1, 'print_hide': 1,
@ -1192,7 +1123,6 @@
'doctype': 'DocField', 'doctype': 'DocField',
'fieldname': 'grand_total_export', 'fieldname': 'grand_total_export',
'fieldtype': 'Currency', 'fieldtype': 'Currency',
'idx': 79,
'label': 'Grand Total (Export)', 'label': 'Grand Total (Export)',
'oldfieldname': 'grand_total_export', 'oldfieldname': 'grand_total_export',
'oldfieldtype': 'Currency', 'oldfieldtype': 'Currency',
@ -1206,7 +1136,6 @@
'doctype': 'DocField', 'doctype': 'DocField',
'fieldname': 'rounded_total_export', 'fieldname': 'rounded_total_export',
'fieldtype': 'Currency', 'fieldtype': 'Currency',
'idx': 80,
'label': 'Rounded Total (Export)', 'label': 'Rounded Total (Export)',
'oldfieldname': 'rounded_total_export', 'oldfieldname': 'rounded_total_export',
'oldfieldtype': 'Currency', 'oldfieldtype': 'Currency',
@ -1221,7 +1150,6 @@
'doctype': 'DocField', 'doctype': 'DocField',
'fieldname': 'in_words_export', 'fieldname': 'in_words_export',
'fieldtype': 'Data', 'fieldtype': 'Data',
'idx': 81,
'label': 'In Words (Export)', 'label': 'In Words (Export)',
'oldfieldname': 'in_words_export', 'oldfieldname': 'in_words_export',
'oldfieldtype': 'Data', 'oldfieldtype': 'Data',
@ -1234,7 +1162,6 @@
'doctype': 'DocField', 'doctype': 'DocField',
'fieldname': 'gross_profit', 'fieldname': 'gross_profit',
'fieldtype': 'Currency', 'fieldtype': 'Currency',
'idx': 82,
'label': 'Gross Profit', 'label': 'Gross Profit',
'oldfieldname': 'gross_profit', 'oldfieldname': 'gross_profit',
'oldfieldtype': 'Currency', 'oldfieldtype': 'Currency',
@ -1247,7 +1174,6 @@
'doctype': 'DocField', 'doctype': 'DocField',
'fieldname': 'gross_profit_percent', 'fieldname': 'gross_profit_percent',
'fieldtype': 'Currency', 'fieldtype': 'Currency',
'idx': 83,
'label': 'Gross Profit (%)', 'label': 'Gross Profit (%)',
'oldfieldname': 'gross_profit_percent', 'oldfieldname': 'gross_profit_percent',
'oldfieldtype': 'Currency', 'oldfieldtype': 'Currency',
@ -1260,7 +1186,6 @@
'colour': 'White:FFF', 'colour': 'White:FFF',
'doctype': 'DocField', 'doctype': 'DocField',
'fieldtype': 'Section Break', 'fieldtype': 'Section Break',
'idx': 84,
'label': 'Advances', 'label': 'Advances',
'oldfieldtype': 'Section Break', 'oldfieldtype': 'Section Break',
'permlevel': 0, 'permlevel': 0,
@ -1271,7 +1196,6 @@
{ {
'doctype': 'DocField', 'doctype': 'DocField',
'fieldtype': 'Button', 'fieldtype': 'Button',
'idx': 85,
'label': 'Get Advances Received', 'label': 'Get Advances Received',
'oldfieldtype': 'Button', 'oldfieldtype': 'Button',
'options': 'get_advances', 'options': 'get_advances',
@ -1284,7 +1208,6 @@
'doctype': 'DocField', 'doctype': 'DocField',
'fieldname': 'advance_adjustment_details', 'fieldname': 'advance_adjustment_details',
'fieldtype': 'Table', 'fieldtype': 'Table',
'idx': 86,
'label': 'Advance Adjustment Detail', 'label': 'Advance Adjustment Detail',
'oldfieldname': 'advance_adjustment_details', 'oldfieldname': 'advance_adjustment_details',
'oldfieldtype': 'Table', 'oldfieldtype': 'Table',
@ -1297,7 +1220,6 @@
{ {
'doctype': 'DocField', 'doctype': 'DocField',
'fieldtype': 'Section Break', 'fieldtype': 'Section Break',
'idx': 87,
'label': 'Sales Team', 'label': 'Sales Team',
'oldfieldtype': 'Section Break', 'oldfieldtype': 'Section Break',
'permlevel': 0, 'permlevel': 0,
@ -1309,7 +1231,6 @@
'colour': 'White:FFF', 'colour': 'White:FFF',
'doctype': 'DocField', 'doctype': 'DocField',
'fieldtype': 'Column Break', 'fieldtype': 'Column Break',
'idx': 88,
'oldfieldtype': 'Column Break', 'oldfieldtype': 'Column Break',
'permlevel': 0, 'permlevel': 0,
'print_hide': 1, 'print_hide': 1,
@ -1321,7 +1242,6 @@
'doctype': 'DocField', 'doctype': 'DocField',
'fieldname': 'sales_partner', 'fieldname': 'sales_partner',
'fieldtype': 'Link', 'fieldtype': 'Link',
'idx': 89,
'in_filter': 1, 'in_filter': 1,
'label': 'Sales Partner', 'label': 'Sales Partner',
'oldfieldname': 'sales_partner', 'oldfieldname': 'sales_partner',
@ -1337,7 +1257,6 @@
'doctype': 'DocField', 'doctype': 'DocField',
'fieldname': 'commission_rate', 'fieldname': 'commission_rate',
'fieldtype': 'Currency', 'fieldtype': 'Currency',
'idx': 90,
'label': 'Commission Rate (%)', 'label': 'Commission Rate (%)',
'oldfieldname': 'commission_rate', 'oldfieldname': 'commission_rate',
'oldfieldtype': 'Currency', 'oldfieldtype': 'Currency',
@ -1352,7 +1271,6 @@
'doctype': 'DocField', 'doctype': 'DocField',
'fieldname': 'total_commission', 'fieldname': 'total_commission',
'fieldtype': 'Currency', 'fieldtype': 'Currency',
'idx': 91,
'label': 'Total Commission', 'label': 'Total Commission',
'oldfieldname': 'total_commission', 'oldfieldname': 'total_commission',
'oldfieldtype': 'Currency', 'oldfieldtype': 'Currency',
@ -1366,7 +1284,6 @@
'colour': 'White:FFF', 'colour': 'White:FFF',
'doctype': 'DocField', 'doctype': 'DocField',
'fieldtype': 'Column Break', 'fieldtype': 'Column Break',
'idx': 92,
'oldfieldtype': 'Column Break', 'oldfieldtype': 'Column Break',
'permlevel': 0, 'permlevel': 0,
'print_hide': 1, 'print_hide': 1,
@ -1378,7 +1295,6 @@
'doctype': 'DocField', 'doctype': 'DocField',
'fieldname': 'sales_team', 'fieldname': 'sales_team',
'fieldtype': 'Table', 'fieldtype': 'Table',
'idx': 93,
'label': 'Sales Team1', 'label': 'Sales Team1',
'oldfieldname': 'sales_team', 'oldfieldname': 'sales_team',
'oldfieldtype': 'Table', 'oldfieldtype': 'Table',
@ -1392,7 +1308,6 @@
'allow_on_submit': 1, 'allow_on_submit': 1,
'doctype': 'DocField', 'doctype': 'DocField',
'fieldtype': 'Button', 'fieldtype': 'Button',
'idx': 94,
'label': 'Repair Outstanding Amt', 'label': 'Repair Outstanding Amt',
'oldfieldtype': 'Button', 'oldfieldtype': 'Button',
'options': 'repair_rv_outstanding', 'options': 'repair_rv_outstanding',
@ -1406,7 +1321,6 @@
'fieldname': 'against_income_account', 'fieldname': 'against_income_account',
'fieldtype': 'Small Text', 'fieldtype': 'Small Text',
'hidden': 1, 'hidden': 1,
'idx': 95,
'label': 'Against Income Account', 'label': 'Against Income Account',
'no_copy': 1, 'no_copy': 1,
'oldfieldname': 'against_income_account', 'oldfieldname': 'against_income_account',