mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-04 12:49:10 +00:00
restructured erpnext and deleted unwanted
This commit is contained in:
34
selling/page/customers/customers.js
Normal file
34
selling/page/customers/customers.js
Normal file
@@ -0,0 +1,34 @@
|
||||
//make tabs
|
||||
|
||||
pscript.onload_customers = function() {
|
||||
make_customer_tab($i('dcv_customers'));
|
||||
}
|
||||
|
||||
function make_customer_tab(parent) {
|
||||
pscript.dcv_customers = new wn.widgets.DocColumnView('Customers', parent,
|
||||
['Customer Group', 'Customer', 'Contact'], {
|
||||
'Customer Group': {
|
||||
show_fields : ['name'],
|
||||
create_fields : ['name'],
|
||||
search_fields : ['name'],
|
||||
next_col: 'Customer'
|
||||
},
|
||||
'Customer': {
|
||||
show_fields : ['name', 'customer_name'],
|
||||
create_fields : ['name', 'customer_name'],
|
||||
search_fields : ['customer_name'],
|
||||
filter_by : ['Customer Group', 'customer_group'],
|
||||
next_col: 'Contact'
|
||||
},
|
||||
'Contact': {
|
||||
show_fields : ['name', 'first_name', 'last_name'],
|
||||
create_fields : ['name','first_name', 'last_name'],
|
||||
search_fields : ['first_name', 'last_name'],
|
||||
conditions: ['is_customer=1'],
|
||||
set_values: {'is_customer': 1 },
|
||||
filter_by : ['Customer', 'customer']
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user