|  |  | @ -56,6 +56,34 @@ odoo.define('AccountingDashboard.AccountingDashboard', function(require) { | 
			
		
	
		
			
				
					|  |  |  |                 var value = $target.val(); | 
			
		
	
		
			
				
					|  |  |  |                 this.$('.top_10_customers_this_month').empty(); | 
			
		
	
		
			
				
					|  |  |  |                 this.onclick_top_10_month(this.$('#top_10_customer_value').val()); | 
			
		
	
		
			
				
					|  |  |  |             }, | 
			
		
	
		
			
				
					|  |  |  |                         'change #invoice_values': function(e) { | 
			
		
	
		
			
				
					|  |  |  |                 e.stopPropagation(); | 
			
		
	
		
			
				
					|  |  |  |                 var $target = $(e.target); | 
			
		
	
		
			
				
					|  |  |  |                 var value = $target.val(); | 
			
		
	
		
			
				
					|  |  |  |                 if (value == 'this_year'){ | 
			
		
	
		
			
				
					|  |  |  |                     this.onclick_invoice_this_year(this.$('#invoice_values').val()); | 
			
		
	
		
			
				
					|  |  |  |                 } | 
			
		
	
		
			
				
					|  |  |  |                 else{ | 
			
		
	
		
			
				
					|  |  |  |                     this.onclick_invoice_this_month(this.$('#invoice_values').val()); | 
			
		
	
		
			
				
					|  |  |  |                 } | 
			
		
	
		
			
				
					|  |  |  |             }, | 
			
		
	
		
			
				
					|  |  |  |             'change #income_expense_values': function(e) { | 
			
		
	
		
			
				
					|  |  |  |                 e.stopPropagation(); | 
			
		
	
		
			
				
					|  |  |  |                 var $target = $(e.target); | 
			
		
	
		
			
				
					|  |  |  |                 var value = $target.val(); | 
			
		
	
		
			
				
					|  |  |  |                 if (value == 'income_this_year'){ | 
			
		
	
		
			
				
					|  |  |  |                     this.onclick_income_this_year(this.$('#income_expense_values').val()); | 
			
		
	
		
			
				
					|  |  |  |                 } | 
			
		
	
		
			
				
					|  |  |  |                 else if (value == 'income_this_month'){ | 
			
		
	
		
			
				
					|  |  |  |                     this.onclick_income_this_month(this.$('#income_expense_values').val()); | 
			
		
	
		
			
				
					|  |  |  |                 } | 
			
		
	
		
			
				
					|  |  |  |                 else if (value == 'income_last_month'){ | 
			
		
	
		
			
				
					|  |  |  |                     this.onclick_income_last_month(this.$('#income_expense_values').val()); | 
			
		
	
		
			
				
					|  |  |  |                 } | 
			
		
	
		
			
				
					|  |  |  |                 else{ | 
			
		
	
		
			
				
					|  |  |  |                     this.onclick_income_last_year(this.$('#income_expense_values').val()); | 
			
		
	
		
			
				
					|  |  |  |                 } | 
			
		
	
		
			
				
					|  |  |  |             }, | 
			
		
	
		
			
				
					|  |  |  |             'change #toggle-two': 'onclick_toggle_two', | 
			
		
	
		
			
				
					|  |  |  |             'click #unreconciled_counts_this_year': 'unreconciled_year', | 
			
		
	
	
		
			
				
					|  |  | @ -515,7 +543,6 @@ odoo.define('AccountingDashboard.AccountingDashboard', function(require) { | 
			
		
	
		
			
				
					|  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |         onclick_income_last_year: function(ev) { | 
			
		
	
		
			
				
					|  |  |  |             ev.preventDefault(); | 
			
		
	
		
			
				
					|  |  |  |             var selected = $('.btn.btn-tool.income'); | 
			
		
	
		
			
				
					|  |  |  |             var data = $(selected[0]).data(); | 
			
		
	
		
			
				
					|  |  |  |             var posted = false; | 
			
		
	
	
		
			
				
					|  |  | @ -594,7 +621,6 @@ odoo.define('AccountingDashboard.AccountingDashboard', function(require) { | 
			
		
	
		
			
				
					|  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |         onclick_income_last_month: function(ev) { | 
			
		
	
		
			
				
					|  |  |  |             ev.preventDefault(); | 
			
		
	
		
			
				
					|  |  |  |             var selected = $('.btn.btn-tool.income'); | 
			
		
	
		
			
				
					|  |  |  |             var data = $(selected[0]).data(); | 
			
		
	
		
			
				
					|  |  |  |             var posted = false; | 
			
		
	
	
		
			
				
					|  |  | @ -671,7 +697,6 @@ odoo.define('AccountingDashboard.AccountingDashboard', function(require) { | 
			
		
	
		
			
				
					|  |  |  |                 }) | 
			
		
	
		
			
				
					|  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |         onclick_income_this_year: function(ev) { | 
			
		
	
		
			
				
					|  |  |  |             ev.preventDefault(); | 
			
		
	
		
			
				
					|  |  |  |             var selected = $('.btn.btn-tool.income'); | 
			
		
	
		
			
				
					|  |  |  |             var data = $(selected[0]).data(); | 
			
		
	
		
			
				
					|  |  |  |             var posted = false; | 
			
		
	
	
		
			
				
					|  |  | @ -754,7 +779,6 @@ odoo.define('AccountingDashboard.AccountingDashboard', function(require) { | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |         onclick_invoice_this_year: function(ev) { | 
			
		
	
		
			
				
					|  |  |  |             ev.preventDefault(); | 
			
		
	
		
			
				
					|  |  |  |             var selected = $('.btn.btn-tool.selected'); | 
			
		
	
		
			
				
					|  |  |  |             var data = $(selected[0]).data(); | 
			
		
	
		
			
				
					|  |  |  |             var posted = false; | 
			
		
	
	
		
			
				
					|  |  | @ -840,7 +864,6 @@ odoo.define('AccountingDashboard.AccountingDashboard', function(require) { | 
			
		
	
		
			
				
					|  |  |  |                 }) | 
			
		
	
		
			
				
					|  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |         onclick_invoice_this_month: function(ev) { | 
			
		
	
		
			
				
					|  |  |  |             ev.preventDefault(); | 
			
		
	
		
			
				
					|  |  |  |             var selected = $('.btn.btn-tool.selected'); | 
			
		
	
		
			
				
					|  |  |  |             var data = $(selected[0]).data(); | 
			
		
	
		
			
				
					|  |  |  |             var posted = false; | 
			
		
	
	
		
			
				
					|  |  | @ -921,7 +944,6 @@ odoo.define('AccountingDashboard.AccountingDashboard', function(require) { | 
			
		
	
		
			
				
					|  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |         onclick_income_this_month: function(ev) { | 
			
		
	
		
			
				
					|  |  |  |             ev.preventDefault(); | 
			
		
	
		
			
				
					|  |  |  |             var selected = $('.btn.btn-tool.income'); | 
			
		
	
		
			
				
					|  |  |  |             var data = $(selected[0]).data(); | 
			
		
	
		
			
				
					|  |  |  |             var posted = false; | 
			
		
	
	
		
			
				
					|  |  | @ -997,8 +1019,6 @@ odoo.define('AccountingDashboard.AccountingDashboard', function(require) { | 
			
		
	
		
			
				
					|  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |         onclick_aged_payable: function(f) { | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |             //            ev.preventDefault();
 | 
			
		
	
		
			
				
					|  |  |  |             var arg = f; | 
			
		
	
		
			
				
					|  |  |  |             var selected = $('.btn.btn-tool.expense'); | 
			
		
	
		
			
				
					|  |  |  |             var data = $(selected[0]).data(); | 
			
		
	
	
		
			
				
					|  |  | 
 |