mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-09 16:12:53 +00:00
deprecated tds
This commit is contained in:
@@ -1 +0,0 @@
|
||||
from __future__ import unicode_literals
|
||||
@@ -1,37 +0,0 @@
|
||||
// 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 <http://www.gnu.org/licenses/>.
|
||||
|
||||
report.customize_filters = function() {
|
||||
this.hide_all_filters();
|
||||
|
||||
this.filter_fields_dict['TDS Payment'+FILTER_SEP +'Company'].df.filter_hide = 0;
|
||||
this.filter_fields_dict['TDS Payment'+FILTER_SEP +'TDS Category'].df.filter_hide = 0;
|
||||
|
||||
this.add_filter({fieldname:'transaction_date', label:'Date', fieldtype:'Date', options:'',ignore : 1, parent:'TDS Payment'});
|
||||
|
||||
this.filter_fields_dict['TDS Payment'+FILTER_SEP +'From Date'].df['report_default']=sys_defaults.year_start_date;
|
||||
this.filter_fields_dict['TDS Payment'+FILTER_SEP +'To Date'].df['report_default']=dateutil.obj_to_str(new Date());
|
||||
this.filter_fields_dict['TDS Payment'+FILTER_SEP +'Company'].df['report_default']=sys_defaults.company;
|
||||
|
||||
this.filter_fields_dict['TDS Payment'+FILTER_SEP +'From Date'].df.in_first_page = 1;
|
||||
this.filter_fields_dict['TDS Payment'+FILTER_SEP +'To Date'].df.in_first_page = 1;
|
||||
this.filter_fields_dict['TDS Payment'+FILTER_SEP +'Company'].df.in_first_page = 1;
|
||||
this.filter_fields_dict['TDS Payment'+FILTER_SEP +'TDS Category'].df.in_first_page = 1;
|
||||
|
||||
}
|
||||
|
||||
this.mytabs.items['Select Columns'].hide();
|
||||
this.mytabs.items['More Filters'].hide();
|
||||
@@ -1,51 +0,0 @@
|
||||
# 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 <http://www.gnu.org/licenses/>.
|
||||
|
||||
from __future__ import unicode_literals
|
||||
if not filter_values.get('tds_category'):
|
||||
msgprint("Please enter TDS Category")
|
||||
raise Exception
|
||||
|
||||
l = [
|
||||
['ID','150px','Link','TDS Payment'],
|
||||
['Challan ID No.','100px','Data',''],
|
||||
['Party Name','200px','Link','Account'],
|
||||
['Amount paid / credited','100px','Currency',''],
|
||||
['Date of payment / credit','100px','Date',''],
|
||||
['TDS','100px','Currency',''],
|
||||
['Cess on TDS','100px','Currency',''],
|
||||
['Total Tax Amount','100px','Currency',''],
|
||||
['PAN of the deductee','100px','Data',''],
|
||||
['Total Tax Deposited','100px','Currency',''],
|
||||
['Date of Deduction','100px','Date',''],
|
||||
['Rate at which deducted','100px','Currency',''],
|
||||
['Reason for Non-deduction / Lower deduction','100px','Data',''],
|
||||
['Grossing up indicator','100px','Data',''],
|
||||
['Deductee Code','100px','Data',''],
|
||||
['Mode','100px','Data','']
|
||||
]
|
||||
|
||||
for i in l:
|
||||
colnames.append(i[0])
|
||||
colwidths.append(i[1])
|
||||
coltypes.append(i[2])
|
||||
coloptions.append(i[3])
|
||||
col_idx[i[0]] = len(colnames)-1
|
||||
|
||||
for r in res:
|
||||
r.append(r[col_idx['Total Tax Amount']])
|
||||
for i in range(0,6):
|
||||
r.append('')
|
||||
@@ -1,10 +0,0 @@
|
||||
SELECT `tabTDS Payment`.`name`,`tabTDS Payment`.`challan_no`,`tabTDS Payment Detail`.`party_name`,`tabTDS Payment Detail`.`amount_paid`,`tabTDS Payment Detail`.`date_of_payment`,`tabTDS Payment Detail`.`tds_amount`,`tabTDS Payment Detail`.`cess_on_tds`,`tabTDS Payment Detail`.`total_tax_amount`,(`tabAccount`.pan_number) AS 'PAN of the deductee'
|
||||
FROM `tabTDS Payment Detail`,`tabTDS Payment`,`tabAccount`
|
||||
WHERE `tabTDS Payment`.docstatus = 1
|
||||
AND `tabTDS Payment`.`company` LIKE '%(company)s%%'
|
||||
AND `tabTDS Payment`.`tds_category` LIKE '%(tds_category)s%%'
|
||||
AND `tabTDS Payment`.`from_date`>='%(transaction_date)s'
|
||||
AND `tabTDS Payment`.`to_date`<='%(transaction_date1)s'
|
||||
AND `tabAccount`.name = `tabTDS Payment Detail`.party_name
|
||||
AND `tabTDS Payment Detail`.`parent` = `tabTDS Payment`.`name`
|
||||
ORDER BY `PAN of the deductee` DESC
|
||||
@@ -1,31 +0,0 @@
|
||||
# Search Criteria, tds_return
|
||||
[
|
||||
|
||||
# These values are common in all dictionaries
|
||||
{
|
||||
'creation': '2012-04-03 12:49:53',
|
||||
'docstatus': 0,
|
||||
'modified': '2012-04-03 12:49:53',
|
||||
'modified_by': u'Administrator',
|
||||
'owner': u'Administrator'
|
||||
},
|
||||
|
||||
# These values are common for all Search Criteria
|
||||
{
|
||||
'criteria_name': u'TDS Return',
|
||||
'dis_filters': u'fiscal_year',
|
||||
'doc_type': u'TDS Payment Detail',
|
||||
'doctype': 'Search Criteria',
|
||||
'filters': u"{'TDS Payment\x01Submitted':1}",
|
||||
'module': u'Accounts',
|
||||
'name': '__common__',
|
||||
'parent_doc_type': u'TDS Payment',
|
||||
'standard': u'Yes'
|
||||
},
|
||||
|
||||
# Search Criteria, tds_return
|
||||
{
|
||||
'doctype': 'Search Criteria',
|
||||
'name': u'tds_return'
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user