// 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 . pscript['onload_WIP Monitor'] = function(){ wip = new WIP_Monitor(); var h = new PageHeader('wip_head','Work in Progress Monitor','A quick glance at your work in progress and pipeline'); h.add_button('Refresh', function(){ wip = new WIP_Monitor();}, 1, 'ui-icon-refresh'); } // Work In Progress Monitor // ========================================================================================================================================================= WIP_Monitor = function(){ var me = this; this.row_index = 0; $c_obj('Home Control','get_wip_counts','',function(r,rt){ me.make_wip_dashboard(r.message); }); } // Make wip dashboard // ------------------ WIP_Monitor.prototype.make_wip_dashboard = function(wip_dict) { var me = this; // list of doctypes which user can read var can_read_dt = ['Lead', 'Opportunity', 'Sales Order', 'Sales Invoice', 'Purchase Request', 'Purchase Order', 'Purchase Invoice', 'Delivery Note', 'Task', 'Serial No']; $i('wip_body').innerHTML = ''; this.tab = make_table('wip_body',1,0,'100%',[],{padding:'4px'}); for(var k=0; k