cleanup of search criteria
This commit is contained in:
parent
fa0cd89a7c
commit
7e0479bc4c
@ -15,7 +15,7 @@
|
||||
'colour': u'White:FFF',
|
||||
'doctype': 'DocType',
|
||||
'issingle': 1,
|
||||
'module': u'Analysis',
|
||||
'module': u'Accounts',
|
||||
'name': '__common__',
|
||||
'section_style': u'Simple',
|
||||
'server_code_error': u' ',
|
||||
@ -28,4 +28,4 @@
|
||||
'doctype': 'DocType',
|
||||
'name': u'MIS Control'
|
||||
}
|
||||
]
|
||||
]
|
@ -16,7 +16,7 @@
|
||||
'doctype': 'DocType',
|
||||
'in_create': 1,
|
||||
'issingle': 1,
|
||||
'module': u'Analysis',
|
||||
'module': u'Accounts',
|
||||
'name': '__common__',
|
||||
'read_only': 1,
|
||||
'section_style': u'Simple',
|
||||
@ -29,4 +29,4 @@
|
||||
'doctype': 'DocType',
|
||||
'name': u'Trend Analyzer Control'
|
||||
}
|
||||
]
|
||||
]
|
@ -18,7 +18,7 @@
|
||||
'doc_type': u'Sales Invoice',
|
||||
'doctype': 'Search Criteria',
|
||||
'filters': u"{'Sales Invoice\x01Saved':1,'Sales Invoice\x01Submitted':1,'Sales Invoice\x01Is Opening':'','Sales Invoice\x01Fiscal Year':''}",
|
||||
'module': u'Home',
|
||||
'module': u'Accounts',
|
||||
'name': '__common__',
|
||||
'page_len': 50,
|
||||
'sort_by': u'`tabSales Invoice`.`name`',
|
||||
@ -31,4 +31,4 @@
|
||||
'doctype': 'Search Criteria',
|
||||
'name': u'invoices-overdue'
|
||||
}
|
||||
]
|
||||
]
|
@ -17,7 +17,7 @@
|
||||
'doc_type': u'Profile',
|
||||
'doctype': 'Search Criteria',
|
||||
'filters': u"{'DocType\x01Period':'Monthly'}",
|
||||
'module': u'Analysis',
|
||||
'module': u'Accounts',
|
||||
'name': '__common__',
|
||||
'sort_by': u'`tabProfile`.`name`',
|
||||
'sort_order': u'DESC',
|
||||
@ -29,4 +29,4 @@
|
||||
'doctype': 'Search Criteria',
|
||||
'name': u'monthly_transaction_summary'
|
||||
}
|
||||
]
|
||||
]
|
@ -1,44 +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.add_filter({fieldname:'main_acc_head', label:'Main Account Head', fieldtype:'Link', options:'Account', ignore : 1, parent:'Journal Voucher Detail'});
|
||||
this.add_filter({fieldname:'edu_cess_acc_head', label:'Edu Cess Account Head', fieldtype:'Link', options:'Account', ignore : 1, parent:'Journal Voucher Detail'});
|
||||
this.add_filter({fieldname:'sh_edu_cess_acc_head', label:'S.H.Edu Cess Account Head', fieldtype:'Link', options:'Account', ignore : 1, parent:'Journal Voucher Detail'});
|
||||
|
||||
// un-hide fields
|
||||
//this.add_filter({fieldname:'company', label:'Company', fieldtype:'Link', options:'Company', ignore : 1, parent:'Journal Voucher Detail'});
|
||||
//this.add_filter({fieldname:'fiscal_year', label:'Fiscal Year', fieldtype:'Link', options:'Fiscal Year', ignore : 1, parent:'Journal Voucher Detail'});
|
||||
//this.add_filter({fieldname:'posting_date', label:'Posting Date', fieldtype:'Date', ignore : 1, parent:'Journal Voucher Detail'});
|
||||
|
||||
|
||||
|
||||
this.filter_fields_dict['Journal Voucher'+FILTER_SEP +'Company'].df.filter_hide = 0;
|
||||
this.filter_fields_dict['Journal Voucher'+FILTER_SEP +'Fiscal Year'].df.filter_hide = 0;
|
||||
this.filter_fields_dict['Journal Voucher'+FILTER_SEP +'From Posting Date'].df.filter_hide = 0;
|
||||
this.filter_fields_dict['Journal Voucher'+FILTER_SEP +'To Posting Date'].df.filter_hide = 0;
|
||||
|
||||
// set defaults
|
||||
this.filter_fields_dict['Journal Voucher'+FILTER_SEP +'From Posting Date'].df.in_first_page = 1;
|
||||
this.filter_fields_dict['Journal Voucher'+FILTER_SEP +'To Posting Date'].df.in_first_page = 1;
|
||||
|
||||
this.filter_fields_dict['Journal Voucher'+FILTER_SEP +'From Posting Date'].df['report_default'] = sys_defaults.year_start_date;
|
||||
this.filter_fields_dict['Journal Voucher'+FILTER_SEP +'To Posting Date'].df['report_default'] = dateutil.obj_to_str(new Date());
|
||||
|
||||
//this.large_report = 1;
|
||||
}
|
@ -1,86 +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/>.
|
||||
|
||||
# Add columns
|
||||
# -----------
|
||||
row_list = [['Date', 'Date', '150px', '']
|
||||
,['INVOICE', 'Date', '150px', '']
|
||||
,['Baisc Excise Duty', 'Currency', '150px', '']
|
||||
,['Education Cess', 'Currency', '150px', '']
|
||||
,['S.H.Education Cess', 'Currency', '150px', '']
|
||||
,['Remarks', 'Data', '150px', '']
|
||||
]
|
||||
|
||||
for r in row_list:
|
||||
colnames.append(r[0])
|
||||
coltypes.append(r[1])
|
||||
colwidths.append(r[2])
|
||||
coloptions.append(r[3])
|
||||
col_idx[r[0]] = len(colnames)-1
|
||||
|
||||
# Get Object Of GL Control
|
||||
#import webnotes
|
||||
#import webnotes.model.code
|
||||
#from webnotes.model.code import get_obj
|
||||
#glc = webnotes.model.code.get_obj('GL Control')
|
||||
|
||||
# Get Year Start Date
|
||||
ysd = sql("select year_start_date from `tabFiscal Year` where name='%s'" % filter_values['fiscal_year'])
|
||||
ysd = ysd and ysd[0][0] or ''
|
||||
|
||||
# get as_on_date for opening
|
||||
as_on_date = ''
|
||||
if filter_values.get('posting_date'):
|
||||
as_on_date = add_days(filter_values['posting_date'], -1)
|
||||
|
||||
# Get Opening Balance
|
||||
def get_opening_balance(acc, fy, as_on_date, ysd, get_opening_balance):
|
||||
#import webnotes
|
||||
#import webnotes.model.code
|
||||
#from webnotes.model.code import get_obj
|
||||
#glc = webnotes.model.code.get_obj('GL Control')
|
||||
glc = get_obj('GL Control')
|
||||
acc_det = sql("select debit_or_credit, is_pl_account, lft, rgt, group_or_ledger from tabAccount where name = '%s'" % acc)
|
||||
return glc.get_as_on_balance(acc, fy, as_on_date, acc_det[0][0], acc_det[0][2], acc_det[0][3])[2]
|
||||
|
||||
cum_sum_main_acc_head = cum_sum_add_acc_head = cum_sum_cvd_acc_head = cum_sum_edu_cess_acc_head = cum_sum_sh_edu_cess_acc_head = 0
|
||||
openg_main_acc_head = openg_add_acc_head = openg_cvd_acc_head = openg_edu_cess_acc_head = openg_sh_edu_cess_acc_head = 0
|
||||
|
||||
# Get Opening of Basic Excise Duty
|
||||
if not filter_values['main_acc_head']:
|
||||
msgprint("Please Enter Main Account Head")
|
||||
raise Exception
|
||||
cum_sum_main_acc_head = openg_main_acc_head = get_opening_balance(filter_values['main_acc_head'], filter_values['fiscal_year'], as_on_date, ysd, get_opening_balance)
|
||||
|
||||
# Get Opening of edu_cess_acc_head
|
||||
if not filter_values['edu_cess_acc_head'] :
|
||||
msgprint("Please Enter Edu Cess Account Head")
|
||||
raise Exception
|
||||
cum_sum_edu_cess_acc_head = openg_edu_cess_acc_head = get_opening_balance(filter_values['edu_cess_acc_head'], filter_values['fiscal_year'], as_on_date, ysd, get_opening_balance)
|
||||
|
||||
# Get Opening of sh_edu_cess_acc_head
|
||||
if not filter_values['sh_edu_cess_acc_head'] :
|
||||
msgprint("Please Enter S.H.Edu Cess Account Head")
|
||||
raise Exception
|
||||
cum_sum_sh_edu_cess_acc_head = openg_sh_edu_cess_acc_head = get_opening_balance(filter_values['sh_edu_cess_acc_head'], filter_values['fiscal_year'], as_on_date, ysd, get_opening_balance)
|
||||
|
||||
out = []
|
||||
|
||||
out.append(['Opening Balance of Duty in Credit', '', flt(openg_main_acc_head) + flt(openg_add_acc_head) , flt(openg_edu_cess_acc_head), flt(openg_sh_edu_cess_acc_head),''])
|
||||
out += res
|
||||
#if from_export == 0:
|
||||
# msgprint("This is a very large report and cannot be shown in the browser as it is likely to make your browser very slow.Please click on 'Export' to open in a spreadsheet")
|
||||
# raise Exception
|
@ -1,28 +0,0 @@
|
||||
SELECT t1.posting_date, t1.name, SUM(CASE WHEN t2.account_head like '%(main_acc_head)s%' THEN t2.tax_amount ELSE 0.00 END), SUM(CASE WHEN t2.account_head like '%(edu_cess_acc_head)s' THEN t2.tax_amount ELSE 0.00 END), SUM(CASE WHEN t2.account_head like '%(sh_edu_cess_acc_head)s' THEN t2.tax_amount ELSE 0.00 END), '' AS remarks
|
||||
FROM `tabDelivery Note` t1, `tabRV Tax Detail` t2
|
||||
WHERE t2.parent = t1.name
|
||||
AND t2.parenttype = 'Delivery Note'
|
||||
AND (t2.account_head LIKE '%(main_acc_head)s%%'
|
||||
OR t2.account_head LIKE '%(edu_cess_acc_head)s%%'
|
||||
OR t2.account_head LIKE '%(sh_edu_cess_acc_head)s%%')
|
||||
AND t1.`posting_date` >= '%(posting_date)s'
|
||||
AND t1.`posting_date` <= '%(posting_date1)s'
|
||||
AND t1.docstatus =1
|
||||
GROUP BY t1.`name`
|
||||
|
||||
UNION
|
||||
|
||||
SELECT t1.posting_date, t1.name, SUM(CASE WHEN t2.account like '%(main_acc_head)s' THEN t2.credit ELSE 0.00 END), SUM(CASE WHEN t2.account like '%(edu_cess_acc_head)s' THEN t2.credit ELSE 0.00 END), SUM(CASE WHEN t2.account like '%(sh_edu_cess_acc_head)s' THEN t2.credit ELSE 0.00 END), t1.`remark`
|
||||
FROM `tabJournal Voucher` t1, `tabJournal Voucher Detail` t2
|
||||
WHERE (t2.credit is not NULL OR t2.credit != '')
|
||||
AND t2.credit > 0
|
||||
AND t2.parent = t1.name
|
||||
AND (t2.account LIKE '%(main_acc_head)s%'
|
||||
OR t2.account LIKE '%(edu_cess_acc_head)s%'
|
||||
OR t2.account LIKE '%(sh_edu_cess_acc_head)s%')
|
||||
AND t1.`posting_date` >= '%(posting_date)s'
|
||||
AND t1.`posting_date` <= '%(posting_date1)s'
|
||||
AND t1.docstatus =1
|
||||
GROUP BY t2.`parent`
|
||||
|
||||
ORDER BY `posting_date`,`name`
|
@ -1,34 +0,0 @@
|
||||
# Search Criteria, progressive_total_excise_duty
|
||||
[
|
||||
|
||||
# These values are common in all dictionaries
|
||||
{
|
||||
'creation': '2012-04-03 12:49:52',
|
||||
'docstatus': 0,
|
||||
'modified': '2012-04-03 12:49:52',
|
||||
'modified_by': u'Administrator',
|
||||
'owner': u'jai@webnotestech.com'
|
||||
},
|
||||
|
||||
# These values are common for all Search Criteria
|
||||
{
|
||||
'columns': u'Journal Voucher\x01ID,Journal Voucher\x01Owner,Journal Voucher\x01Voucher Type,Journal Voucher\x01Voucher Date,Journal Voucher\x01Posting Date,Journal Voucher\x01Is Opening,Journal Voucher\x01Fiscal Year,Journal Voucher\x01Company,Journal Voucher\x01Cheque No,Journal Voucher\x01Clearance Date,Journal Voucher\x01TDS Applicable,Journal Voucher\x01TDS Category,Journal Voucher Detail\x01Account,Journal Voucher Detail\x01Cost Center,Journal Voucher Detail\x01Against Payable,Journal Voucher Detail\x01Against Receivable',
|
||||
'criteria_name': u'Progressive Total Excise Duty',
|
||||
'doc_type': u'Journal Voucher Detail',
|
||||
'doctype': 'Search Criteria',
|
||||
'filters': u"{'Journal Voucher\x01Saved':1,'Journal Voucher\x01Submitted':1,'Journal Voucher\x01Voucher Type':'','Journal Voucher\x01Is Opening':'','Journal Voucher\x01Fiscal Year':'','Journal Voucher\x01Company':'','Journal Voucher\x01TDS Applicable':'','Journal Voucher\x01TDS Category':''}",
|
||||
'module': u'Accounts',
|
||||
'name': '__common__',
|
||||
'page_len': 50,
|
||||
'parent_doc_type': u'Journal Voucher',
|
||||
'sort_by': u'ID',
|
||||
'sort_order': u'DESC',
|
||||
'standard': u'Yes'
|
||||
},
|
||||
|
||||
# Search Criteria, progressive_total_excise_duty
|
||||
{
|
||||
'doctype': 'Search Criteria',
|
||||
'name': u'progressive_total_excise_duty'
|
||||
}
|
||||
]
|
@ -1,43 +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.add_filter({fieldname:'main_acc_head', label:'Main Account Head', fieldtype:'Link', options:'Account', ignore : 1, parent:'Journal Voucher Detail'});
|
||||
this.add_filter({fieldname:'edu_cess_acc_head', label:'Edu Cess Account Head', fieldtype:'Link', options:'Account', ignore : 1, parent:'Journal Voucher Detail'});
|
||||
this.add_filter({fieldname:'sh_edu_cess_acc_head', label:'S.H.Edu Cess Account Head', fieldtype:'Link', options:'Account', ignore : 1, parent:'Journal Voucher Detail'});
|
||||
|
||||
// un-hide fields
|
||||
//this.add_filter({fieldname:'company', label:'Company', fieldtype:'Link', options:'Company', ignore : 1, parent:'Journal Voucher Detail'});
|
||||
//this.add_filter({fieldname:'fiscal_year', label:'Fiscal Year', fieldtype:'Link', options:'Fiscal Year', ignore : 1, parent:'Journal Voucher Detail'});
|
||||
//this.add_filter({fieldname:'posting_date', label:'Posting Date', fieldtype:'Date', ignore : 1, parent:'Journal Voucher Detail'});
|
||||
|
||||
|
||||
|
||||
this.filter_fields_dict['Journal Voucher'+FILTER_SEP +'Company'].df.filter_hide = 0;
|
||||
this.filter_fields_dict['Journal Voucher'+FILTER_SEP +'Fiscal Year'].df.filter_hide = 0;
|
||||
this.filter_fields_dict['Journal Voucher'+FILTER_SEP +'From Posting Date'].df.filter_hide = 0;
|
||||
this.filter_fields_dict['Journal Voucher'+FILTER_SEP +'To Posting Date'].df.filter_hide = 0;
|
||||
|
||||
// set defaults
|
||||
this.filter_fields_dict['Journal Voucher'+FILTER_SEP +'From Posting Date'].df.in_first_page = 1;
|
||||
this.filter_fields_dict['Journal Voucher'+FILTER_SEP +'To Posting Date'].df.in_first_page = 1;
|
||||
|
||||
this.filter_fields_dict['Journal Voucher'+FILTER_SEP +'From Posting Date'].df['report_default'] = sys_defaults.year_start_date;
|
||||
this.filter_fields_dict['Journal Voucher'+FILTER_SEP +'To Posting Date'].df['report_default'] = dateutil.obj_to_str(new Date());
|
||||
|
||||
//this.large_report = 1;
|
||||
}
|
@ -1,135 +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/>.
|
||||
|
||||
# Add columns
|
||||
# -----------
|
||||
row_list = [['Date', 'Date', '150px', '']
|
||||
,['ARI/INVOICE/Other Approved document/Bill of entry No.', 'Date', '150px', '']
|
||||
,['Date', 'Date', '150px', '']
|
||||
,['Service Tax', 'Currency', '150px', '']
|
||||
,['Education Cess', 'Currency', '150px', '']
|
||||
,['S.H.Education Cess', 'Currency', '150px', '']
|
||||
,[' Service Tax ', 'Currency', '150px', '']
|
||||
,[' Education Cess ', 'Currency', '150px', '']
|
||||
,[' S.H.Education Cess ', 'Currency', '150px', '']
|
||||
,['ARI/INVOICE/ Other Approved document/Bill of entry No.', 'Data', '100px', '']
|
||||
,['Date', 'Date', '150px', '']
|
||||
,[' Service Tax', 'Currency', '150px', '']
|
||||
,[' Education Cess', 'Currency', '150px', '']
|
||||
,[' S.H.Education Cess', 'Currency', '150px', '']
|
||||
,['Service Tax ', 'Currency', '150px', '']
|
||||
,['Education Cess ', 'Currency', '150px', '']
|
||||
,['S.H.Education Cess ', 'Currency', '150px', '']
|
||||
,['Remarks', 'Data', '150px', '']
|
||||
]
|
||||
|
||||
|
||||
for r in row_list:
|
||||
colnames.append(r[0])
|
||||
coltypes.append(r[1])
|
||||
colwidths.append(r[2])
|
||||
coloptions.append(r[3])
|
||||
col_idx[r[0]] = len(colnames)-1
|
||||
|
||||
# Get Object Of GL Control
|
||||
#import webnotes
|
||||
#import webnotes.model.code
|
||||
#from webnotes.model.code import get_obj
|
||||
#glc = webnotes.model.code.get_obj('GL Control')
|
||||
|
||||
# Get Year Start Date
|
||||
ysd = sql("select year_start_date from `tabFiscal Year` where name='%s'" % filter_values['fiscal_year'])
|
||||
ysd = ysd and ysd[0][0] or ''
|
||||
|
||||
# get as_on_date for opening
|
||||
as_on_date = ''
|
||||
if filter_values.get('posting_date'):
|
||||
as_on_date = add_days(filter_values['posting_date'], -1)
|
||||
|
||||
# Get Opening Balance
|
||||
def get_opening_balance(acc, fy, as_on_date, ysd, get_opening_balance):
|
||||
#import webnotes
|
||||
#import webnotes.model.code
|
||||
#from webnotes.model.code import get_obj
|
||||
#glc = webnotes.model.code.get_obj('GL Control')
|
||||
glc = get_obj('GL Control')
|
||||
acc_det = sql("select debit_or_credit, is_pl_account, lft, rgt, group_or_ledger from tabAccount where name = '%s'" % acc)
|
||||
return glc.get_as_on_balance(acc, fy, as_on_date, acc_det[0][0], acc_det[0][2], acc_det[0][3])[2]
|
||||
|
||||
cum_sum_main_acc_head = cum_sum_edu_cess_acc_head = cum_sum_sh_edu_cess_acc_head = 0
|
||||
openg_main_acc_head = openg_edu_cess_acc_head = openg_sh_edu_cess_acc_head = 0
|
||||
|
||||
# Get Opening of Basic Excise Duty
|
||||
if not filter_values['main_acc_head']:
|
||||
msgprint("Please Enter Main Account Head")
|
||||
raise Exception
|
||||
cum_sum_main_acc_head = openg_main_acc_head = get_opening_balance(filter_values['main_acc_head'], filter_values['fiscal_year'], as_on_date, ysd, get_opening_balance)
|
||||
|
||||
# Get Opening of edu_cess_acc_head
|
||||
if not filter_values['edu_cess_acc_head'] :
|
||||
msgprint("Please Enter Edu Cess Account Head")
|
||||
raise Exception
|
||||
cum_sum_edu_cess_acc_head = openg_edu_cess_acc_head = get_opening_balance(filter_values['edu_cess_acc_head'], filter_values['fiscal_year'], as_on_date, ysd, get_opening_balance)
|
||||
|
||||
# Get Opening of sh_edu_cess_acc_head
|
||||
if not filter_values['sh_edu_cess_acc_head'] :
|
||||
msgprint("Please Enter S.H.Edu Cess Account Head")
|
||||
raise Exception
|
||||
cum_sum_sh_edu_cess_acc_head = openg_sh_edu_cess_acc_head = get_opening_balance(filter_values['sh_edu_cess_acc_head'], filter_values['fiscal_year'], as_on_date, ysd, get_opening_balance)
|
||||
|
||||
msgprint("Column No "+ cstr(len(col_idx)))
|
||||
msgprint(openg_sh_edu_cess_acc_head)
|
||||
msgprint(openg_main_acc_head)
|
||||
for r in res:
|
||||
msgprint(r)
|
||||
r[col_idx['Service Tax']] = flt(r[col_idx['Education Cess']])
|
||||
r[col_idx['Education Cess']] = flt(r[col_idx['S.H.Education Cess']])
|
||||
r[col_idx['S.H.Education Cess']] = flt(r[col_idx[' Service Tax ']])
|
||||
|
||||
remarks = r[col_idx[' Education Cess ']]
|
||||
|
||||
cum_sum_main_acc_head = flt(cum_sum_main_acc_head) + flt(r[col_idx['Service Tax']])
|
||||
r[col_idx[' Service Tax ']] = cum_sum_main_acc_head
|
||||
|
||||
cum_sum_edu_cess_acc_head = flt(cum_sum_edu_cess_acc_head) + flt(r[col_idx['Education Cess']])
|
||||
r[col_idx[' Education Cess ']] = cum_sum_edu_cess_acc_head
|
||||
|
||||
cum_sum_sh_edu_cess_acc_head = flt(cum_sum_sh_edu_cess_acc_head) + flt(r[col_idx['S.H.Education Cess']])
|
||||
r.append(cum_sum_sh_edu_cess_acc_head)
|
||||
|
||||
r.append('')
|
||||
r.append('')
|
||||
|
||||
r.append(0)
|
||||
r.append(0)
|
||||
r.append(0)
|
||||
|
||||
r.append(cum_sum_main_acc_head)
|
||||
r.append(cum_sum_edu_cess_acc_head)
|
||||
r.append(cum_sum_sh_edu_cess_acc_head)
|
||||
|
||||
r.append(remarks)
|
||||
|
||||
#msgprint(len(res))
|
||||
#msgprint(query)
|
||||
out = []
|
||||
|
||||
msgprint(len(['Opening Balance of Duty in Credit', '', '', '', '', '', '', '', '', '', '', '', '', '', flt(openg_main_acc_head) , flt(openg_edu_cess_acc_head), flt(openg_sh_edu_cess_acc_head)]))
|
||||
out.append(['Opening Balance of Duty in Credit', '', '', '', '', '', '', '', '', '', '', '', '', '', flt(openg_main_acc_head) , flt(openg_edu_cess_acc_head), flt(openg_sh_edu_cess_acc_head)])
|
||||
out += res
|
||||
#if from_export == 0:
|
||||
# msgprint("This is a very large report and cannot be shown in the browser as it is likely to make your browser very slow.Please click on 'Export' to open in a spreadsheet")
|
||||
# raise Exception
|
@ -1,13 +0,0 @@
|
||||
SELECT t1.posting_date, t1.bill_no, t1.bill_date, t1.name, SUM(CASE WHEN t2.account like '%(main_acc_head)s%' THEN t2.debit ELSE 0.00 END), SUM(CASE WHEN t2.account like '%(edu_cess_acc_head)s' THEN t2.debit ELSE 0.00 END), SUM(CASE WHEN t2.account like '%(sh_edu_cess_acc_head)s' THEN t2.debit ELSE 0.00 END), t1.`remark`
|
||||
FROM `tabJournal Voucher` t1, `tabJournal Voucher Detail` t2
|
||||
WHERE (t2.debit is not NULL OR t2.debit != '')
|
||||
AND t2.debit > 0
|
||||
AND t2.parent = t1.name
|
||||
AND (t2.account LIKE '%(main_acc_head)s%%'
|
||||
OR t2.account LIKE '%(edu_cess_acc_head)s%%'
|
||||
OR t2.account LIKE '%(sh_edu_cess_acc_head)s%%')
|
||||
AND t1.`posting_date` >= '%(posting_date)s'
|
||||
AND t1.`posting_date` <= '%(posting_date1)s'
|
||||
AND t1.docstatus =1
|
||||
GROUP BY t2.`parent`
|
||||
ORDER BY t1.`posting_date`,t1.`name`
|
@ -1,34 +0,0 @@
|
||||
# Search Criteria, service_tax_credit_account_-_inputs
|
||||
[
|
||||
|
||||
# These values are common in all dictionaries
|
||||
{
|
||||
'creation': '2012-04-03 12:49:52',
|
||||
'docstatus': 0,
|
||||
'modified': '2012-04-03 12:49:52',
|
||||
'modified_by': u'Administrator',
|
||||
'owner': u'jai@webnotestech.com'
|
||||
},
|
||||
|
||||
# These values are common for all Search Criteria
|
||||
{
|
||||
'columns': u'Journal Voucher\x01ID,Journal Voucher\x01Owner,Journal Voucher\x01Voucher Type,Journal Voucher\x01Voucher Date,Journal Voucher\x01Posting Date,Journal Voucher\x01Is Opening,Journal Voucher\x01Fiscal Year,Journal Voucher\x01Company,Journal Voucher\x01Cheque No,Journal Voucher\x01Clearance Date,Journal Voucher\x01TDS Applicable,Journal Voucher\x01TDS Category,Journal Voucher Detail\x01Account,Journal Voucher Detail\x01Cost Center,Journal Voucher Detail\x01Against Payable,Journal Voucher Detail\x01Against Receivable',
|
||||
'criteria_name': u'Service Tax Credit Account - Inputs',
|
||||
'doc_type': u'Journal Voucher Detail',
|
||||
'doctype': 'Search Criteria',
|
||||
'filters': u"{'Journal Voucher\x01Saved':1,'Journal Voucher\x01Submitted':1,'Journal Voucher\x01Voucher Type':'','Journal Voucher\x01Is Opening':'','Journal Voucher\x01Fiscal Year':'','Journal Voucher\x01Company':'','Journal Voucher\x01TDS Applicable':'','Journal Voucher\x01TDS Category':''}",
|
||||
'module': u'Accounts',
|
||||
'name': '__common__',
|
||||
'page_len': 50,
|
||||
'parent_doc_type': u'Journal Voucher',
|
||||
'sort_by': u'ID',
|
||||
'sort_order': u'DESC',
|
||||
'standard': u'Yes'
|
||||
},
|
||||
|
||||
# Search Criteria, service_tax_credit_account_-_inputs
|
||||
{
|
||||
'doctype': 'Search Criteria',
|
||||
'name': u'service_tax_credit_account_-_inputs'
|
||||
}
|
||||
]
|
@ -1,42 +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.add_filter({fieldname:'transaction_date', label:'Date', fieldtype:'Date', options:'',ignore : 1, parent:'Account'});
|
||||
|
||||
this.filter_fields_dict['Account'+FILTER_SEP +'Company'].df.filter_hide = 0;
|
||||
this.filter_fields_dict['Account'+FILTER_SEP +'From Date'].df.filter_hide = 0;
|
||||
this.filter_fields_dict['Account'+FILTER_SEP +'To Date'].df.filter_hide = 0;
|
||||
|
||||
this.filter_fields_dict['Account'+FILTER_SEP +'From Date'].df.in_first_page = 1;
|
||||
this.filter_fields_dict['Account'+FILTER_SEP +'To Date'].df.in_first_page = 1;
|
||||
this.filter_fields_dict['Account'+FILTER_SEP +'Company'].df.in_first_page = 1;
|
||||
|
||||
this.filter_fields_dict['Account'+FILTER_SEP +'From Date'].df['report_default']=sys_defaults.year_start_date;
|
||||
this.filter_fields_dict['Account'+FILTER_SEP +'To Date'].df['report_default']=dateutil.obj_to_str(new Date());
|
||||
this.filter_fields_dict['Account'+FILTER_SEP+'Company'].df['report_default']=sys_defaults.company;
|
||||
|
||||
this.dt.set_no_limit(1);
|
||||
|
||||
report.aftertableprint = function(t) {
|
||||
$yt(t,'*',1,{whiteSpace:'pre'});
|
||||
}
|
||||
}
|
||||
|
||||
this.mytabs.items['Select Columns'].hide();
|
||||
this.mytabs.items['More Filters'].hide();
|
@ -1,60 +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/>.
|
||||
|
||||
# columns
|
||||
colnames[0] = 'Account'
|
||||
col_idx['Account'] = 0
|
||||
coltypes[0] = 'Link'
|
||||
coloptions[0] = 'Account'
|
||||
colwidths[0] = '200px'
|
||||
|
||||
cl = [['Debit', 'Data', '100px'],['Credit', 'Data', '100px']]
|
||||
for c in cl:
|
||||
colnames.append(c[0])
|
||||
coltypes.append(c[1])
|
||||
colwidths.append(c[2])
|
||||
coloptions.append('')
|
||||
col_idx[c[0]] = len(colnames)-1
|
||||
|
||||
|
||||
# transaction date
|
||||
if not filter_values.get('transaction_date') or not filter_values.get('transaction_date1'):
|
||||
msgprint("Please enter From Date and To Date")
|
||||
raise Exception
|
||||
else:
|
||||
from_date = add_days(filter_values['transaction_date'], -1)
|
||||
to_date = filter_values['transaction_date1']
|
||||
|
||||
# if output is more than 300 lines then it will ask to export
|
||||
if len(res) > 300 and from_export == 0:
|
||||
msgprint("This is a very large report and cannot be shown in the browser as it is likely to make your browser very slow.Please click on 'Export' to open in a spreadsheet")
|
||||
raise Exception
|
||||
|
||||
total_debit, total_credit = 0,0
|
||||
|
||||
for r in res:
|
||||
amount = sql("select sum(debit), sum(credit) from `tabGL Entry` WHERE posting_date >= '%s' AND posting_date <= '%s' and ifnull(is_opening,'No') = 'No' AND account = '%s' AND ifnull(is_cancelled, 'No') = 'No'" % (from_date,to_date, r[col_idx['Account']].strip()))
|
||||
total_debit = flt(total_debit) + flt(amount[0][0])
|
||||
total_credit = flt(total_credit) + flt(amount[0][1])
|
||||
|
||||
r.append(flt(amount[0][0]))
|
||||
r.append(flt(amount[0][1]))
|
||||
|
||||
t_row = ['' for i in range(len(colnames))]
|
||||
t_row[col_idx['Account']] = 'Total'
|
||||
t_row[col_idx['Debit']] = total_debit
|
||||
t_row[col_idx['Credit']] = total_credit
|
||||
res.append(t_row)
|
@ -1,36 +0,0 @@
|
||||
# Search Criteria, total_amout_collection_for_a_period_-_customerwise
|
||||
[
|
||||
|
||||
# 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
|
||||
{
|
||||
'add_cond': u'(master_type = "Customer" or parent_account like "Sundry Debtors%" or parent_account like "Accounts Receivable%")',
|
||||
'columns': u'Account\x01ID',
|
||||
'criteria_name': u'Total amout collection for a period - Customerwise',
|
||||
'dis_filters': u'transaction_date',
|
||||
'disabled': 0,
|
||||
'doc_type': u'Account',
|
||||
'doctype': 'Search Criteria',
|
||||
'filters': u"{'Account\x01Saved':1,'Account\x01Group or Ledger':'','Account\x01Is PL Account':'','Account\x01Account Type':'','Account\x01From Date\x01lower':'2010-04-01','Account\x01To Date\x01upper':'2010-06-09'}",
|
||||
'module': u'Accounts',
|
||||
'name': '__common__',
|
||||
'page_len': 50,
|
||||
'sort_by': u'`tabAccount`.`name`',
|
||||
'sort_order': u'DESC',
|
||||
'standard': u'Yes'
|
||||
},
|
||||
|
||||
# Search Criteria, total_amout_collection_for_a_period_-_customerwise
|
||||
{
|
||||
'doctype': 'Search Criteria',
|
||||
'name': u'total_amout_collection_for_a_period_-_customerwise'
|
||||
}
|
||||
]
|
@ -17,7 +17,7 @@
|
||||
'doc_type': u'Profile',
|
||||
'doctype': 'Search Criteria',
|
||||
'filters': u'{}',
|
||||
'module': u'Analysis',
|
||||
'module': u'Accounts',
|
||||
'name': '__common__',
|
||||
'page_len': 50,
|
||||
'sort_by': u'`tabProfile`.`name`',
|
||||
@ -30,4 +30,4 @@
|
||||
'doctype': 'Search Criteria',
|
||||
'name': u'trend_analyzer'
|
||||
}
|
||||
]
|
||||
]
|
@ -17,7 +17,7 @@
|
||||
'doc_type': u'Profile',
|
||||
'doctype': 'Search Criteria',
|
||||
'filters': u"{'DocType\x01Fiscal Year':'2009-2010','DocType\x01Company':'Alpha Company','DocType\x01Period':'Monthly'}",
|
||||
'module': u'Analysis',
|
||||
'module': u'Accounts',
|
||||
'name': '__common__',
|
||||
'sort_by': u'`tabProfile`.`name`',
|
||||
'sort_order': u'DESC',
|
||||
@ -29,4 +29,4 @@
|
||||
'doctype': 'Search Criteria',
|
||||
'name': u'yearly_transaction_summary'
|
||||
}
|
||||
]
|
||||
]
|
@ -1,253 +0,0 @@
|
||||
[
|
||||
{
|
||||
'_last_update': '1300959286',
|
||||
'creation': '2010-11-30 17:31:05',
|
||||
'disabled': 'No',
|
||||
'docstatus': 0,
|
||||
'doctype': u'Module Def',
|
||||
'doctype_list': None,
|
||||
'file_list': None,
|
||||
'idx': None,
|
||||
'is_hidden': 'No',
|
||||
'last_updated_date': '2010-12-02 09:25:40',
|
||||
'modified': '2011-03-24 15:28:54',
|
||||
'modified_by': 'Administrator',
|
||||
'module_desc': None,
|
||||
'module_icon': 'chart.png',
|
||||
'module_label': 'Analysis',
|
||||
'module_name': 'Analysis',
|
||||
'module_page': None,
|
||||
'module_seq': 10,
|
||||
'name': 'Analysis',
|
||||
'owner': 'Administrator',
|
||||
'parent': None,
|
||||
'parentfield': None,
|
||||
'parenttype': None,
|
||||
'trash_reason': None,
|
||||
'widget_code': None
|
||||
},
|
||||
{
|
||||
'click_function': None,
|
||||
'creation': '2011-03-24 12:00:50',
|
||||
'description': None,
|
||||
'display_name': None,
|
||||
'doc_name': 'Reports',
|
||||
'doc_type': 'Separator',
|
||||
'docstatus': 0,
|
||||
'doctype': 'Module Def Item',
|
||||
'fields': None,
|
||||
'hide': None,
|
||||
'icon': None,
|
||||
'idx': 1,
|
||||
'modified': '2011-03-24 15:28:54',
|
||||
'modified_by': 'Administrator',
|
||||
'name': '000003012',
|
||||
'owner': 'Administrator',
|
||||
'parent': 'Analysis',
|
||||
'parentfield': 'items',
|
||||
'parenttype': 'Module Def'
|
||||
},
|
||||
{
|
||||
'click_function': None,
|
||||
'creation': '2011-03-24 12:00:50',
|
||||
'description': None,
|
||||
'display_name': 'Yearly Transaction Summary',
|
||||
'doc_name': 'Profile',
|
||||
'doc_type': 'Reports',
|
||||
'docstatus': 0,
|
||||
'doctype': 'Module Def Item',
|
||||
'fields': None,
|
||||
'hide': None,
|
||||
'icon': None,
|
||||
'idx': 2,
|
||||
'modified': '2011-03-24 15:28:54',
|
||||
'modified_by': 'Administrator',
|
||||
'name': '000003014',
|
||||
'owner': 'Administrator',
|
||||
'parent': 'Analysis',
|
||||
'parentfield': 'items',
|
||||
'parenttype': 'Module Def'
|
||||
},
|
||||
{
|
||||
'click_function': None,
|
||||
'creation': '2010-11-30 17:31:05',
|
||||
'description': 'A quick glance at your work in progress and pipeline',
|
||||
'display_name': 'Work in Progress Monitor',
|
||||
'doc_name': 'WIP Monitor',
|
||||
'doc_type': 'Pages',
|
||||
'docstatus': 0,
|
||||
'doctype': 'Module Def Item',
|
||||
'fields': None,
|
||||
'hide': None,
|
||||
'icon': 'magnifier.gif',
|
||||
'idx': 3,
|
||||
'modified': '2011-03-24 15:28:54',
|
||||
'modified_by': 'Administrator',
|
||||
'name': 'MDI00063',
|
||||
'owner': 'Administrator',
|
||||
'parent': 'Analysis',
|
||||
'parentfield': 'items',
|
||||
'parenttype': 'Module Def'
|
||||
},
|
||||
{
|
||||
'click_function': None,
|
||||
'creation': '2011-03-24 12:00:50',
|
||||
'description': 'Analyze trend of sales, purchase and stock over any period',
|
||||
'display_name': 'Monthly Trend Analyzer',
|
||||
'doc_name': 'Profile',
|
||||
'doc_type': 'Reports',
|
||||
'docstatus': 0,
|
||||
'doctype': 'Module Def Item',
|
||||
'fields': None,
|
||||
'hide': None,
|
||||
'icon': 'chart_bar.gif',
|
||||
'idx': 4,
|
||||
'modified': '2011-03-24 15:28:54',
|
||||
'modified_by': 'Administrator',
|
||||
'name': '000003013',
|
||||
'owner': 'saumil@webnotestech.com',
|
||||
'parent': 'Analysis',
|
||||
'parentfield': 'items',
|
||||
'parenttype': 'Module Def'
|
||||
},
|
||||
{
|
||||
'click_function': None,
|
||||
'creation': '2011-03-24 12:00:50',
|
||||
'description': None,
|
||||
'display_name': None,
|
||||
'doc_name': 'Reports',
|
||||
'doc_type': 'Separator',
|
||||
'docstatus': 0,
|
||||
'doctype': 'Module Def Item',
|
||||
'fields': None,
|
||||
'hide': None,
|
||||
'icon': None,
|
||||
'idx': 1,
|
||||
'modified': '2011-03-24 15:28:54',
|
||||
'modified_by': 'Administrator',
|
||||
'name': '000003012',
|
||||
'owner': 'Administrator',
|
||||
'parent': 'Analysis',
|
||||
'parentfield': 'items',
|
||||
'parenttype': 'Module Def'
|
||||
},
|
||||
{
|
||||
'click_function': None,
|
||||
'creation': '2011-03-24 12:00:50',
|
||||
'description': None,
|
||||
'display_name': 'Yearly Transaction Summary',
|
||||
'doc_name': 'Profile',
|
||||
'doc_type': 'Reports',
|
||||
'docstatus': 0,
|
||||
'doctype': 'Module Def Item',
|
||||
'fields': None,
|
||||
'hide': None,
|
||||
'icon': None,
|
||||
'idx': 2,
|
||||
'modified': '2011-03-24 15:28:54',
|
||||
'modified_by': 'Administrator',
|
||||
'name': '000003014',
|
||||
'owner': 'Administrator',
|
||||
'parent': 'Analysis',
|
||||
'parentfield': 'items',
|
||||
'parenttype': 'Module Def'
|
||||
},
|
||||
{
|
||||
'click_function': None,
|
||||
'creation': '2010-11-30 17:31:05',
|
||||
'description': 'A quick glance at your work in progress and pipeline',
|
||||
'display_name': 'Work in Progress Monitor',
|
||||
'doc_name': 'WIP Monitor',
|
||||
'doc_type': 'Pages',
|
||||
'docstatus': 0,
|
||||
'doctype': 'Module Def Item',
|
||||
'fields': None,
|
||||
'hide': None,
|
||||
'icon': 'magnifier.gif',
|
||||
'idx': 3,
|
||||
'modified': '2011-03-24 15:28:54',
|
||||
'modified_by': 'Administrator',
|
||||
'name': 'MDI00063',
|
||||
'owner': 'Administrator',
|
||||
'parent': 'Analysis',
|
||||
'parentfield': 'items',
|
||||
'parenttype': 'Module Def'
|
||||
},
|
||||
{
|
||||
'click_function': None,
|
||||
'creation': '2011-03-24 12:00:50',
|
||||
'description': 'Analyze trend of sales, purchase and stock over any period',
|
||||
'display_name': 'Monthly Trend Analyzer',
|
||||
'doc_name': 'Profile',
|
||||
'doc_type': 'Reports',
|
||||
'docstatus': 0,
|
||||
'doctype': 'Module Def Item',
|
||||
'fields': None,
|
||||
'hide': None,
|
||||
'icon': 'chart_bar.gif',
|
||||
'idx': 4,
|
||||
'modified': '2011-03-24 15:28:54',
|
||||
'modified_by': 'Administrator',
|
||||
'name': '000003013',
|
||||
'owner': 'saumil@webnotestech.com',
|
||||
'parent': 'Analysis',
|
||||
'parentfield': 'items',
|
||||
'parenttype': 'Module Def'
|
||||
},
|
||||
{
|
||||
'creation': '2010-11-30 17:31:05',
|
||||
'docstatus': 0,
|
||||
'doctype': 'Module Def Role',
|
||||
'idx': 1,
|
||||
'modified': '2011-03-24 15:28:54',
|
||||
'modified_by': 'Administrator',
|
||||
'name': 'MDR00004',
|
||||
'owner': 'saumil@webnotestech.com',
|
||||
'parent': 'Analysis',
|
||||
'parentfield': 'roles',
|
||||
'parenttype': 'Module Def',
|
||||
'role': 'Sales Manager'
|
||||
},
|
||||
{
|
||||
'creation': '2010-11-30 17:31:05',
|
||||
'docstatus': 0,
|
||||
'doctype': 'Module Def Role',
|
||||
'idx': 2,
|
||||
'modified': '2011-03-24 15:28:54',
|
||||
'modified_by': 'Administrator',
|
||||
'name': 'MDR00005',
|
||||
'owner': 'saumil@webnotestech.com',
|
||||
'parent': 'Analysis',
|
||||
'parentfield': 'roles',
|
||||
'parenttype': 'Module Def',
|
||||
'role': 'Purchase Manager'
|
||||
},
|
||||
{
|
||||
'creation': '2010-11-30 17:31:05',
|
||||
'docstatus': 0,
|
||||
'doctype': 'Module Def Role',
|
||||
'idx': 3,
|
||||
'modified': '2011-03-24 15:28:54',
|
||||
'modified_by': 'Administrator',
|
||||
'name': 'MDR00006',
|
||||
'owner': 'saumil@webnotestech.com',
|
||||
'parent': 'Analysis',
|
||||
'parentfield': 'roles',
|
||||
'parenttype': 'Module Def',
|
||||
'role': 'Material Manager'
|
||||
},
|
||||
{
|
||||
'creation': '2010-11-30 17:31:05',
|
||||
'docstatus': 0,
|
||||
'doctype': 'Module Def Role',
|
||||
'idx': 4,
|
||||
'modified': '2011-03-24 15:28:54',
|
||||
'modified_by': 'Administrator',
|
||||
'name': 'MDR00007',
|
||||
'owner': 'saumil@webnotestech.com',
|
||||
'parent': 'Analysis',
|
||||
'parentfield': 'roles',
|
||||
'parenttype': 'Module Def',
|
||||
'role': 'Accounts Manager'
|
||||
}
|
||||
]
|
@ -1,28 +0,0 @@
|
||||
[
|
||||
{
|
||||
'creation': '2011-06-09 16:14:42',
|
||||
'disabled': 'No',
|
||||
'docstatus': 0,
|
||||
'doctype': 'Module Def',
|
||||
'doctype_list': None,
|
||||
'file_list': None,
|
||||
'idx': None,
|
||||
'is_hidden': 'No',
|
||||
'last_updated_date': None,
|
||||
'modified': '2011-06-09 16:57:36',
|
||||
'modified_by': 'Administrator',
|
||||
'module_desc': None,
|
||||
'module_icon': None,
|
||||
'module_label': 'Home',
|
||||
'module_name': 'Home',
|
||||
'module_page': 'Event Updates',
|
||||
'module_seq': -1,
|
||||
'name': 'Home',
|
||||
'owner': 'Administrator',
|
||||
'parent': None,
|
||||
'parentfield': None,
|
||||
'parenttype': None,
|
||||
'trash_reason': None,
|
||||
'widget_code': None
|
||||
}
|
||||
]
|
@ -1,33 +0,0 @@
|
||||
# Search Criteria, invoices-to_be_submitted
|
||||
[
|
||||
|
||||
# These values are common in all dictionaries
|
||||
{
|
||||
'creation': '2012-04-03 12:49:51',
|
||||
'docstatus': 0,
|
||||
'modified': '2012-04-03 12:49:51',
|
||||
'modified_by': u'Administrator',
|
||||
'owner': u'Administrator'
|
||||
},
|
||||
|
||||
# These values are common for all Search Criteria
|
||||
{
|
||||
'columns': u'Sales Invoice\x01ID,Sales Invoice\x01Debit To,Sales Invoice\x01Voucher Date,Sales Invoice\x01Due Date',
|
||||
'criteria_name': u'Invoices-To be submitted',
|
||||
'doc_type': u'Sales Invoice',
|
||||
'doctype': 'Search Criteria',
|
||||
'filters': u"{'Sales Invoice\x01Saved':1,'Sales Invoice\x01Is Opening':'','Sales Invoice\x01Fiscal Year':''}",
|
||||
'module': u'Home',
|
||||
'name': '__common__',
|
||||
'page_len': 50,
|
||||
'sort_by': u'`tabSales Invoice`.`name`',
|
||||
'sort_order': u'DESC',
|
||||
'standard': u'Yes'
|
||||
},
|
||||
|
||||
# Search Criteria, invoices-to_be_submitted
|
||||
{
|
||||
'doctype': 'Search Criteria',
|
||||
'name': u'invoices-to_be_submitted'
|
||||
}
|
||||
]
|
@ -1,34 +0,0 @@
|
||||
# Search Criteria, invoices-to_receive_payment
|
||||
[
|
||||
|
||||
# These values are common in all dictionaries
|
||||
{
|
||||
'creation': '2012-04-03 12:49:51',
|
||||
'docstatus': 0,
|
||||
'modified': '2012-04-03 12:49:51',
|
||||
'modified_by': u'Administrator',
|
||||
'owner': u'Administrator'
|
||||
},
|
||||
|
||||
# These values are common for all Search Criteria
|
||||
{
|
||||
'add_cond': u'`tabSales Invoice`.due_date>now() \n`tabSales Invoice`.outstanding_amount!=0\n`tabSales Invoice`.docstatus=1',
|
||||
'columns': u'Sales Invoice\x01ID,Sales Invoice\x01Owner,Sales Invoice\x01Debit To,Sales Invoice\x01Voucher Date,Sales Invoice\x01Due Date,Sales Invoice\x01Outstanding Amount',
|
||||
'criteria_name': u'Invoices-To receive payment',
|
||||
'doc_type': u'Sales Invoice',
|
||||
'doctype': 'Search Criteria',
|
||||
'filters': u"{'Sales Invoice\x01Submitted':1,'Sales Invoice\x01Is Opening':'','Sales Invoice\x01Fiscal Year':''}",
|
||||
'module': u'Home',
|
||||
'name': '__common__',
|
||||
'page_len': 50,
|
||||
'sort_by': u'`tabSales Invoice`.`name`',
|
||||
'sort_order': u'DESC',
|
||||
'standard': u'Yes'
|
||||
},
|
||||
|
||||
# Search Criteria, invoices-to_receive_payment
|
||||
{
|
||||
'doctype': 'Search Criteria',
|
||||
'name': u'invoices-to_receive_payment'
|
||||
}
|
||||
]
|
@ -1,35 +0,0 @@
|
||||
# Search Criteria, opportunity-quotations_to_be_sent
|
||||
[
|
||||
|
||||
# These values are common in all dictionaries
|
||||
{
|
||||
'creation': '2012-03-30 14:50:44',
|
||||
'docstatus': 0,
|
||||
'modified': '2012-03-30 14:50:44',
|
||||
'modified_by': u'Administrator',
|
||||
'owner': u'Administrator'
|
||||
},
|
||||
|
||||
# These values are common for all Search Criteria
|
||||
{
|
||||
'add_cond': u'`tabQuotation`.enq_no!=`tabOpportunity`.name\n',
|
||||
'add_tab': u'tabQuotation',
|
||||
'columns': u'Opportunity\x01ID,Opportunity\x01Owner',
|
||||
'criteria_name': u'Opportunity-Quotations to be sent',
|
||||
'doc_type': u'Opportunity',
|
||||
'doctype': 'Search Criteria',
|
||||
'filters': u'{}',
|
||||
'module': u'Home',
|
||||
'name': '__common__',
|
||||
'page_len': 50,
|
||||
'sort_by': u'`tabOpportunity`.`name`',
|
||||
'sort_order': u'DESC',
|
||||
'standard': u'Yes'
|
||||
},
|
||||
|
||||
# Search Criteria, opportunity-quotations_to_be_sent
|
||||
{
|
||||
'doctype': 'Search Criteria',
|
||||
'name': u'opportunity-quotations_to_be_sent'
|
||||
}
|
||||
]
|
@ -1,34 +0,0 @@
|
||||
# Search Criteria, purchase_order-to_be_billed
|
||||
[
|
||||
|
||||
# These values are common in all dictionaries
|
||||
{
|
||||
'creation': '2012-04-03 12:49:52',
|
||||
'docstatus': 0,
|
||||
'modified': '2012-04-03 12:49:52',
|
||||
'modified_by': u'Administrator',
|
||||
'owner': u'Administrator'
|
||||
},
|
||||
|
||||
# These values are common for all Search Criteria
|
||||
{
|
||||
'add_cond': u"ifnull(`tabPurchase Order`.per_billed,0)<100\n`tabPurchase Order`.status='Submitted'",
|
||||
'columns': u'Purchase Order\x01ID,Purchase Order\x01Supplier,Purchase Order\x01PO Date,Purchase Order\x01Company,Purchase Order\x01Grand Total',
|
||||
'criteria_name': u'Purchase Order-To be billed',
|
||||
'doc_type': u'Purchase Order',
|
||||
'doctype': 'Search Criteria',
|
||||
'filters': u"{'Purchase Order\x01Submitted':1,'Purchase Order\x01Status':'Submitted','Purchase Order\x01Fiscal Year':''}",
|
||||
'module': u'Home',
|
||||
'name': '__common__',
|
||||
'page_len': 50,
|
||||
'sort_by': u'`tabPurchase Order`.`name`',
|
||||
'sort_order': u'DESC',
|
||||
'standard': u'Yes'
|
||||
},
|
||||
|
||||
# Search Criteria, purchase_order-to_be_billed
|
||||
{
|
||||
'doctype': 'Search Criteria',
|
||||
'name': u'purchase_order-to_be_billed'
|
||||
}
|
||||
]
|
@ -1,33 +0,0 @@
|
||||
# Search Criteria, purchase_order-to_be_submitted
|
||||
[
|
||||
|
||||
# These values are common in all dictionaries
|
||||
{
|
||||
'creation': '2012-04-03 12:49:52',
|
||||
'docstatus': 0,
|
||||
'modified': '2012-04-03 12:49:52',
|
||||
'modified_by': u'Administrator',
|
||||
'owner': u'Administrator'
|
||||
},
|
||||
|
||||
# These values are common for all Search Criteria
|
||||
{
|
||||
'columns': u'Purchase Order\x01ID,Purchase Order\x01Supplier,Purchase Order\x01PO Date,Purchase Order\x01Company,Purchase Order\x01Grand Total',
|
||||
'criteria_name': u'Purchase Order-To be submitted',
|
||||
'doc_type': u'Purchase Order',
|
||||
'doctype': 'Search Criteria',
|
||||
'filters': u"{'Purchase Order\x01Saved':1,'Purchase Order\x01Submitted':0,'Purchase Order\x01Status':'Draft','Purchase Order\x01Fiscal Year':''}",
|
||||
'module': u'Home',
|
||||
'name': '__common__',
|
||||
'page_len': 50,
|
||||
'sort_by': u'`tabPurchase Order`.`name`',
|
||||
'sort_order': u'DESC',
|
||||
'standard': u'Yes'
|
||||
},
|
||||
|
||||
# Search Criteria, purchase_order-to_be_submitted
|
||||
{
|
||||
'doctype': 'Search Criteria',
|
||||
'name': u'purchase_order-to_be_submitted'
|
||||
}
|
||||
]
|
@ -1,34 +0,0 @@
|
||||
# Search Criteria, purchase_order-to_receive_items
|
||||
[
|
||||
|
||||
# These values are common in all dictionaries
|
||||
{
|
||||
'creation': '2012-04-03 12:49:52',
|
||||
'docstatus': 0,
|
||||
'modified': '2012-04-03 12:49:52',
|
||||
'modified_by': u'Administrator',
|
||||
'owner': u'Administrator'
|
||||
},
|
||||
|
||||
# These values are common for all Search Criteria
|
||||
{
|
||||
'add_cond': u"ifnull(`tabPurchase Order`.per_received,0)<100\n`tabPurchase Order`.status='Submitted'",
|
||||
'columns': u'Purchase Order\x01ID,Purchase Order\x01Supplier,Purchase Order\x01PO Date,Purchase Order\x01Company,Purchase Order\x01% Received,Purchase Order\x01Grand Total',
|
||||
'criteria_name': u'Purchase Order-To receive items',
|
||||
'doc_type': u'Purchase Order',
|
||||
'doctype': 'Search Criteria',
|
||||
'filters': u"{'Purchase Order\x01Submitted':1,'Purchase Order\x01Status':'Submitted','Purchase Order\x01Fiscal Year':''}",
|
||||
'module': u'Home',
|
||||
'name': '__common__',
|
||||
'page_len': 50,
|
||||
'sort_by': u'`tabPurchase Order`.`name`',
|
||||
'sort_order': u'DESC',
|
||||
'standard': u'Yes'
|
||||
},
|
||||
|
||||
# Search Criteria, purchase_order-to_receive_items
|
||||
{
|
||||
'doctype': 'Search Criteria',
|
||||
'name': u'purchase_order-to_receive_items'
|
||||
}
|
||||
]
|
@ -1,34 +0,0 @@
|
||||
# Search Criteria, purchase_request-purchase_order_to_be_made
|
||||
[
|
||||
|
||||
# These values are common in all dictionaries
|
||||
{
|
||||
'creation': '2012-03-30 13:33:32',
|
||||
'docstatus': 0,
|
||||
'modified': '2012-03-30 13:33:32',
|
||||
'modified_by': u'Administrator',
|
||||
'owner': u'Administrator'
|
||||
},
|
||||
|
||||
# These values are common for all Search Criteria
|
||||
{
|
||||
'add_cond': u"`tabPurchase Request`.status='Submitted'\nifnull(`tabPurchase Request`.per_ordered,0)<100",
|
||||
'columns': u'Purchase Request\x01ID,Purchase Request\x01Purchase Request Date,Purchase Request\x01Requested By,Purchase Request\x01Owner,Purchase Request\x01% Ordered',
|
||||
'criteria_name': u'Purchase Request-Purchase Order to be made',
|
||||
'doc_type': u'Purchase Request',
|
||||
'doctype': 'Search Criteria',
|
||||
'filters': u"{'Purchase Request\x01Submitted':1,'Purchase Request\x01Status':'Submitted','Purchase Request\x01Fiscal Year':''}",
|
||||
'module': u'Home',
|
||||
'name': '__common__',
|
||||
'page_len': 50,
|
||||
'sort_by': u'`tabPurchase Request`.`name`',
|
||||
'sort_order': u'DESC',
|
||||
'standard': u'Yes'
|
||||
},
|
||||
|
||||
# Search Criteria, purchase_request-purchase_order_to_be_made
|
||||
{
|
||||
'doctype': 'Search Criteria',
|
||||
'name': u'purchase_request-purchase_order_to_be_made'
|
||||
}
|
||||
]
|
@ -1,34 +0,0 @@
|
||||
# Search Criteria, purchase_request-to_be_submitted
|
||||
[
|
||||
|
||||
# These values are common in all dictionaries
|
||||
{
|
||||
'creation': '2012-03-30 13:33:32',
|
||||
'docstatus': 0,
|
||||
'modified': '2012-03-30 13:33:32',
|
||||
'modified_by': u'Administrator',
|
||||
'owner': u'Administrator'
|
||||
},
|
||||
|
||||
# These values are common for all Search Criteria
|
||||
{
|
||||
'add_cond': u"`tabPurchase Request`.status='Draft'",
|
||||
'columns': u'Purchase Request\x01ID,Purchase Request\x01Owner,Purchase Request\x01Purchase Request Date,Purchase Request\x01Remarks',
|
||||
'criteria_name': u'Purchase Request-To be submitted',
|
||||
'doc_type': u'Purchase Request',
|
||||
'doctype': 'Search Criteria',
|
||||
'filters': u"{'Purchase Request\x01Saved':1,'Purchase Request\x01Status':'Draft','Purchase Request\x01Fiscal Year':''}",
|
||||
'module': u'Home',
|
||||
'name': '__common__',
|
||||
'page_len': 50,
|
||||
'sort_by': u'`tabPurchase Request`.`name`',
|
||||
'sort_order': u'DESC',
|
||||
'standard': u'Yes'
|
||||
},
|
||||
|
||||
# Search Criteria, purchase_request-to_be_submitted
|
||||
{
|
||||
'doctype': 'Search Criteria',
|
||||
'name': u'purchase_request-to_be_submitted'
|
||||
}
|
||||
]
|
@ -1,34 +0,0 @@
|
||||
# Search Criteria, sales_order-overdue
|
||||
[
|
||||
|
||||
# These values are common in all dictionaries
|
||||
{
|
||||
'creation': '2012-04-03 12:49:52',
|
||||
'docstatus': 0,
|
||||
'modified': '2012-04-03 12:49:52',
|
||||
'modified_by': u'Administrator',
|
||||
'owner': u'Administrator'
|
||||
},
|
||||
|
||||
# These values are common for all Search Criteria
|
||||
{
|
||||
'add_cond': u'`tabSales Order`.delivery_date<now()\nifnull(`tabSales Order`.per_delivered,0)<100',
|
||||
'columns': u'Sales Order\x01ID,Sales Order\x01Customer,Sales Order\x01Sales Order Date,Sales Order\x01Expected Delivery Date,Sales Order\x01Quotation No,Sales Order\x01Company,Sales Order\x01% Delivered',
|
||||
'criteria_name': u'Sales Order-Overdue',
|
||||
'doc_type': u'Sales Order',
|
||||
'doctype': 'Search Criteria',
|
||||
'filters': u"{'Sales Order\x01Submitted':1,'Sales Order\x01Status':'Submitted','Sales Order\x01Fiscal Year':''}",
|
||||
'module': u'Home',
|
||||
'name': '__common__',
|
||||
'page_len': 50,
|
||||
'sort_by': u'`tabSales Order`.`name`',
|
||||
'sort_order': u'DESC',
|
||||
'standard': u'Yes'
|
||||
},
|
||||
|
||||
# Search Criteria, sales_order-overdue
|
||||
{
|
||||
'doctype': 'Search Criteria',
|
||||
'name': u'sales_order-overdue'
|
||||
}
|
||||
]
|
@ -1,34 +0,0 @@
|
||||
# Search Criteria, sales_order-to_be_billed
|
||||
[
|
||||
|
||||
# These values are common in all dictionaries
|
||||
{
|
||||
'creation': '2012-04-03 12:49:52',
|
||||
'docstatus': 0,
|
||||
'modified': '2012-04-03 12:49:52',
|
||||
'modified_by': u'Administrator',
|
||||
'owner': u'Administrator'
|
||||
},
|
||||
|
||||
# These values are common for all Search Criteria
|
||||
{
|
||||
'add_cond': u"ifnull(`tabSales Order`.per_billed,0)<100\n`tabSales Order`.status='Submitted'",
|
||||
'columns': u'Sales Order\x01ID,Sales Order\x01Status,Sales Order\x01Quotation No,Sales Order\x01Sales Order Date,Sales Order\x01Expected Delivery Date,Sales Order\x01% Billed,Sales Order\x01Customer',
|
||||
'criteria_name': u'Sales Order-To be billed',
|
||||
'doc_type': u'Sales Order',
|
||||
'doctype': 'Search Criteria',
|
||||
'filters': u"{'Sales Order\x01Submitted':1,'Sales Order\x01Fiscal Year':''}",
|
||||
'module': u'Home',
|
||||
'name': '__common__',
|
||||
'page_len': 50,
|
||||
'sort_by': u'`tabSales Order`.`name`',
|
||||
'sort_order': u'DESC',
|
||||
'standard': u'Yes'
|
||||
},
|
||||
|
||||
# Search Criteria, sales_order-to_be_billed
|
||||
{
|
||||
'doctype': 'Search Criteria',
|
||||
'name': u'sales_order-to_be_billed'
|
||||
}
|
||||
]
|
@ -1,34 +0,0 @@
|
||||
# Search Criteria, sales_order-to_be_delivered
|
||||
[
|
||||
|
||||
# These values are common in all dictionaries
|
||||
{
|
||||
'creation': '2012-04-03 12:49:52',
|
||||
'docstatus': 0,
|
||||
'modified': '2012-04-03 12:49:52',
|
||||
'modified_by': u'Administrator',
|
||||
'owner': u'Administrator'
|
||||
},
|
||||
|
||||
# These values are common for all Search Criteria
|
||||
{
|
||||
'add_cond': u"ifnull(`tabSales Order`.per_delivered,0)<100\n`tabSales Order`.status = 'Submitted'\n`tabSales Order`. delivery_date > now()",
|
||||
'columns': u'Sales Order\x01ID,Sales Order\x01Owner,Sales Order\x01Status,Sales Order\x01Customer,Sales Order\x01Sales Order Date,Sales Order\x01Expected Delivery Date,Sales Order\x01Quotation No',
|
||||
'criteria_name': u'Sales Order-To be delivered',
|
||||
'doc_type': u'Sales Order',
|
||||
'doctype': 'Search Criteria',
|
||||
'filters': u"{'Sales Order\x01Saved':1,'Sales Order\x01Submitted':1,'Sales Order\x01Fiscal Year':''}",
|
||||
'module': u'Home',
|
||||
'name': '__common__',
|
||||
'page_len': 100,
|
||||
'sort_by': u'`tabSales Order`.`name`',
|
||||
'sort_order': u'DESC',
|
||||
'standard': u'Yes'
|
||||
},
|
||||
|
||||
# Search Criteria, sales_order-to_be_delivered
|
||||
{
|
||||
'doctype': 'Search Criteria',
|
||||
'name': u'sales_order-to_be_delivered'
|
||||
}
|
||||
]
|
@ -1,34 +0,0 @@
|
||||
# Search Criteria, sales_order-to_be_submitted
|
||||
[
|
||||
|
||||
# These values are common in all dictionaries
|
||||
{
|
||||
'creation': '2012-04-03 12:49:52',
|
||||
'docstatus': 0,
|
||||
'modified': '2012-04-03 12:49:52',
|
||||
'modified_by': u'Administrator',
|
||||
'owner': u'Administrator'
|
||||
},
|
||||
|
||||
# These values are common for all Search Criteria
|
||||
{
|
||||
'add_cond': u"`tabSales Order`.status='Draft'",
|
||||
'columns': u'Sales Order\x01ID,Sales Order\x01Customer,Sales Order\x01Sales Order Date,Sales Order\x01Quotation No',
|
||||
'criteria_name': u'Sales Order-To be submitted',
|
||||
'doc_type': u'Sales Order',
|
||||
'doctype': 'Search Criteria',
|
||||
'filters': u"{'Sales Order\x01Saved':1,'Sales Order\x01Fiscal Year':''}",
|
||||
'module': u'Home',
|
||||
'name': '__common__',
|
||||
'page_len': 100,
|
||||
'sort_by': u'`tabSales Order`.`name`',
|
||||
'sort_order': u'DESC',
|
||||
'standard': u'Yes'
|
||||
},
|
||||
|
||||
# Search Criteria, sales_order-to_be_submitted
|
||||
{
|
||||
'doctype': 'Search Criteria',
|
||||
'name': u'sales_order-to_be_submitted'
|
||||
}
|
||||
]
|
@ -1,34 +0,0 @@
|
||||
# Search Criteria, task-open
|
||||
[
|
||||
|
||||
# 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
|
||||
{
|
||||
'add_cond': u"`tabTask`.status='Open'",
|
||||
'columns': u'Task\x01ID,Task\x01Subject,Task\x01Priority,Task\x01Raised By,Task\x01Allocated To',
|
||||
'criteria_name': u'Task-Open',
|
||||
'doc_type': u'Task',
|
||||
'doctype': 'Search Criteria',
|
||||
'filters': u"{'Task\x01Priority':''}",
|
||||
'module': u'Home',
|
||||
'name': '__common__',
|
||||
'page_len': 50,
|
||||
'sort_by': u'`tabTask`.`name`',
|
||||
'sort_order': u'DESC',
|
||||
'standard': u'Yes'
|
||||
},
|
||||
|
||||
# Search Criteria, task-open
|
||||
{
|
||||
'doctype': 'Search Criteria',
|
||||
'name': u'task-open'
|
||||
}
|
||||
]
|
@ -1,318 +0,0 @@
|
||||
# Module Def, HR
|
||||
[
|
||||
|
||||
# These values are common in all dictionaries
|
||||
{
|
||||
'creation': '2011-07-01 17:41:43',
|
||||
'docstatus': 0,
|
||||
'modified': '2011-08-25 13:54:43',
|
||||
'modified_by': 'Administrator',
|
||||
'owner': 'Administrator'
|
||||
},
|
||||
|
||||
# These values are common for all Module Def Role
|
||||
{
|
||||
'doctype': 'Module Def Role',
|
||||
'name': '__common__',
|
||||
'parent': 'HR',
|
||||
'parentfield': 'roles',
|
||||
'parenttype': 'Module Def'
|
||||
},
|
||||
|
||||
# These values are common for all Module Def Item
|
||||
{
|
||||
'doctype': 'Module Def Item',
|
||||
'name': '__common__',
|
||||
'parent': 'HR',
|
||||
'parentfield': 'items',
|
||||
'parenttype': 'Module Def'
|
||||
},
|
||||
|
||||
# These values are common for all Module Def
|
||||
{
|
||||
'disabled': 'No',
|
||||
'doctype': u'Module Def',
|
||||
'is_hidden': 'No',
|
||||
'module_desc': 'Human Resource Management - Employee Database, Salaries etc.',
|
||||
'module_icon': 'HR.gif',
|
||||
'module_label': 'HR',
|
||||
'module_name': 'HR',
|
||||
'module_seq': 9,
|
||||
'name': '__common__'
|
||||
},
|
||||
|
||||
# Module Def, HR
|
||||
{
|
||||
'doctype': u'Module Def',
|
||||
'name': 'HR'
|
||||
},
|
||||
|
||||
# Module Def Item
|
||||
{
|
||||
'description': 'Your Employee Database',
|
||||
'display_name': 'Employee',
|
||||
'doc_name': 'Employee',
|
||||
'doc_type': 'Forms',
|
||||
'doctype': 'Module Def Item',
|
||||
'fields': 'employee_name\nemployment_type\nstatus\nbranch\ndesignation\ndepartment\ngrade\nreports_to',
|
||||
'idx': 1
|
||||
},
|
||||
|
||||
# Module Def Item
|
||||
{
|
||||
'description': 'Employees Daily Attendance Tracking Form',
|
||||
'display_name': 'Attendance',
|
||||
'doc_name': 'Attendance',
|
||||
'doc_type': 'Forms',
|
||||
'doctype': 'Module Def Item',
|
||||
'fields': 'employee\nemployee_name\nstatus\natt_date\nfiscal_year\ncompany',
|
||||
'idx': 2
|
||||
},
|
||||
|
||||
# Module Def Item
|
||||
{
|
||||
'description': 'Upload Attendance data',
|
||||
'display_name': 'Attendance Control Panel',
|
||||
'doc_name': 'Attendance Control Panel',
|
||||
'doc_type': 'Single DocType',
|
||||
'doctype': 'Module Def Item',
|
||||
'idx': 3
|
||||
},
|
||||
|
||||
# Module Def Item
|
||||
{
|
||||
'description': 'Leave allocation for selected employees at a time',
|
||||
'display_name': 'Leave Control Panel',
|
||||
'doc_name': 'Leave Control Panel',
|
||||
'doc_type': 'Single DocType',
|
||||
'doctype': 'Module Def Item',
|
||||
'idx': 4
|
||||
},
|
||||
|
||||
# Module Def Item
|
||||
{
|
||||
'description': 'Allocate leave for fiscal year',
|
||||
'display_name': 'Leave Allocation',
|
||||
'doc_name': 'Leave Allocation',
|
||||
'doc_type': 'Forms',
|
||||
'doctype': 'Module Def Item',
|
||||
'fields': 'employee\nleave_type\nfiscal_year\ntotal_leaves_allocated\nposting_date',
|
||||
'idx': 5
|
||||
},
|
||||
|
||||
# Module Def Item
|
||||
{
|
||||
'description': 'Apply Leave',
|
||||
'display_name': 'Leave Application',
|
||||
'doc_name': 'Leave Application',
|
||||
'doc_type': 'Forms',
|
||||
'doctype': 'Module Def Item',
|
||||
'fields': 'employee\nleave_type\nfiscal_year\nfrom_date\nto_date\ntotal_leave_days',
|
||||
'idx': 6
|
||||
},
|
||||
|
||||
# Module Def Item
|
||||
{
|
||||
'description': 'Submit Employees Expenses',
|
||||
'display_name': 'Expense Claim',
|
||||
'doc_name': 'Expense Claim',
|
||||
'doc_type': 'Forms',
|
||||
'doctype': 'Module Def Item',
|
||||
'fields': 'status\nemployee\nemployee_name\nposting_date\ntotal_claimed_amount\ntotal_sanctioned_amount\nexp_approver',
|
||||
'idx': 7
|
||||
},
|
||||
|
||||
# Module Def Item
|
||||
{
|
||||
'description': 'Assign Responsibilities to employee and evaluate',
|
||||
'display_name': 'Appraisal',
|
||||
'doc_name': 'Appraisal',
|
||||
'doc_type': 'Forms',
|
||||
'doctype': 'Module Def Item',
|
||||
'fields': 'status\nemployee\nemployee_name\nstart_date\nend_date\ntotal_score\nkra_approver',
|
||||
'idx': 8
|
||||
},
|
||||
|
||||
# Module Def Item
|
||||
{
|
||||
'description': 'Generate Salary Structure heads for an employee',
|
||||
'display_name': 'Salary Structure',
|
||||
'doc_name': 'Salary Structure',
|
||||
'doc_type': 'Forms',
|
||||
'doctype': 'Module Def Item',
|
||||
'fields': 'employee\nis_active\nfiscal_year\nfrom_date\nctc\ntotal_earning\ntotal_deduction\ntotal',
|
||||
'idx': 9
|
||||
},
|
||||
|
||||
# Module Def Item
|
||||
{
|
||||
'description': 'Generate Salary Slip for an employee',
|
||||
'display_name': 'Salary Slip',
|
||||
'doc_name': 'Salary Slip',
|
||||
'doc_type': 'Forms',
|
||||
'doctype': 'Module Def Item',
|
||||
'fields': 'month\nyear\nemployee\nemployee_name\npayment_days\narrear_amount\nencashment_amount\ngross_pay\ntotal_deduction\nnet_pay',
|
||||
'idx': 10
|
||||
},
|
||||
|
||||
# Module Def Item
|
||||
{
|
||||
'description': 'Generate Salary Slip for multiple employee at a time based on selected criteria',
|
||||
'display_name': 'Salary Manager',
|
||||
'doc_name': 'Salary Manager',
|
||||
'doc_type': 'Single DocType',
|
||||
'doctype': 'Module Def Item',
|
||||
'idx': 11
|
||||
},
|
||||
|
||||
# Module Def Item
|
||||
{
|
||||
'description': 'Job Applications received for various positions',
|
||||
'display_name': 'Job Application',
|
||||
'doc_name': 'Job Application',
|
||||
'doc_type': 'Forms',
|
||||
'doctype': 'Module Def Item',
|
||||
'fields': 'applicant_name\nemail\nposition',
|
||||
'idx': 12
|
||||
},
|
||||
|
||||
# Module Def Item
|
||||
{
|
||||
'display_name': 'Employee Information',
|
||||
'doc_name': 'Employee',
|
||||
'doc_type': 'Reports',
|
||||
'doctype': 'Module Def Item',
|
||||
'idx': 13
|
||||
},
|
||||
|
||||
# Module Def Item
|
||||
{
|
||||
'display_name': "Employee's Birthday",
|
||||
'doc_name': 'Employee',
|
||||
'doc_type': 'Reports',
|
||||
'doctype': 'Module Def Item',
|
||||
'idx': 14
|
||||
},
|
||||
|
||||
# Module Def Item
|
||||
{
|
||||
'display_name': 'New or left employees for a month',
|
||||
'doc_name': 'Employee',
|
||||
'doc_type': 'Reports',
|
||||
'doctype': 'Module Def Item',
|
||||
'idx': 15
|
||||
},
|
||||
|
||||
# Module Def Item
|
||||
{
|
||||
'display_name': 'Monthly Attendance Details',
|
||||
'doc_name': 'Attendance',
|
||||
'doc_type': 'Reports',
|
||||
'doctype': 'Module Def Item',
|
||||
'idx': 16
|
||||
},
|
||||
|
||||
# Module Def Item
|
||||
{
|
||||
'display_name': 'Leave Application Details',
|
||||
'doc_name': 'Leave Application',
|
||||
'doc_type': 'Reports',
|
||||
'doctype': 'Module Def Item',
|
||||
'idx': 17
|
||||
},
|
||||
|
||||
# Module Def Item
|
||||
{
|
||||
'display_name': 'Leave Allocation Details',
|
||||
'doc_name': 'Leave Allocation',
|
||||
'doc_type': 'Reports',
|
||||
'doctype': 'Module Def Item',
|
||||
'idx': 18
|
||||
},
|
||||
|
||||
# Module Def Item
|
||||
{
|
||||
'display_name': 'Employee Leave Balance Report',
|
||||
'doc_name': 'Employee',
|
||||
'doc_type': 'Reports',
|
||||
'doctype': 'Module Def Item',
|
||||
'idx': 19
|
||||
},
|
||||
|
||||
# Module Def Item
|
||||
{
|
||||
'display_name': 'Salary Structure Details',
|
||||
'doc_name': 'Salary Structure',
|
||||
'doc_type': 'Reports',
|
||||
'doctype': 'Module Def Item',
|
||||
'idx': 20
|
||||
},
|
||||
|
||||
# Module Def Item
|
||||
{
|
||||
'display_name': 'Salary Register',
|
||||
'doc_name': 'Salary Slip',
|
||||
'doc_type': 'Reports',
|
||||
'doctype': 'Module Def Item',
|
||||
'idx': 21
|
||||
},
|
||||
|
||||
# Module Def Item
|
||||
{
|
||||
'display_name': 'Salary Slips',
|
||||
'doc_name': 'Salary Slip',
|
||||
'doc_type': 'Reports',
|
||||
'doctype': 'Module Def Item',
|
||||
'idx': 22
|
||||
},
|
||||
|
||||
# Module Def Item
|
||||
{
|
||||
'display_name': 'Pending Appraisals',
|
||||
'doc_name': 'Appraisal',
|
||||
'doc_type': 'Reports',
|
||||
'doctype': 'Module Def Item',
|
||||
'idx': 23
|
||||
},
|
||||
|
||||
# Module Def Item
|
||||
{
|
||||
'display_name': 'Employee Appraisals',
|
||||
'doc_name': 'Appraisal',
|
||||
'doc_type': 'Reports',
|
||||
'doctype': 'Module Def Item',
|
||||
'idx': 24
|
||||
},
|
||||
|
||||
# Module Def Item
|
||||
{
|
||||
'display_name': 'Pending Expense Claims',
|
||||
'doc_name': 'Expense Claim',
|
||||
'doc_type': 'Reports',
|
||||
'doctype': 'Module Def Item',
|
||||
'idx': 25
|
||||
},
|
||||
|
||||
# Module Def Item
|
||||
{
|
||||
'display_name': 'Expense Claims',
|
||||
'doc_name': 'Expense Claim',
|
||||
'doc_type': 'Reports',
|
||||
'doctype': 'Module Def Item',
|
||||
'idx': 26
|
||||
},
|
||||
|
||||
# Module Def Role
|
||||
{
|
||||
'doctype': 'Module Def Role',
|
||||
'idx': 1,
|
||||
'role': 'HR Manager'
|
||||
},
|
||||
|
||||
# Module Def Role
|
||||
{
|
||||
'doctype': 'Module Def Role',
|
||||
'idx': 2,
|
||||
'role': 'HR User'
|
||||
}
|
||||
]
|
@ -1,17 +0,0 @@
|
||||
[
|
||||
{
|
||||
'creation': '2011-02-12 15:07:26',
|
||||
'docstatus': 0,
|
||||
'doctype': 'Role',
|
||||
'idx': None,
|
||||
'modified': '2011-02-14 14:05:55',
|
||||
'modified_by': 'Administrator',
|
||||
'module': 'Roles',
|
||||
'name': 'Employee',
|
||||
'owner': 'Administrator',
|
||||
'parent': None,
|
||||
'parentfield': None,
|
||||
'parenttype': None,
|
||||
'role_name': 'Employee'
|
||||
}
|
||||
]
|
@ -1,26 +0,0 @@
|
||||
# Role, HR Manager
|
||||
[
|
||||
|
||||
# These values are common in all dictionaries
|
||||
{
|
||||
'creation': '2010-08-08 17:08:51',
|
||||
'docstatus': 0,
|
||||
'modified': '2010-04-01 10:19:09',
|
||||
'modified_by': 'Administrator',
|
||||
'owner': 'Administrator'
|
||||
},
|
||||
|
||||
# These values are common for all Role
|
||||
{
|
||||
'doctype': 'Role',
|
||||
'module': 'HR',
|
||||
'name': '__common__',
|
||||
'role_name': 'HR Manager'
|
||||
},
|
||||
|
||||
# Role, HR Manager
|
||||
{
|
||||
'doctype': 'Role',
|
||||
'name': 'HR Manager'
|
||||
}
|
||||
]
|
@ -1,26 +0,0 @@
|
||||
# Role, HR User
|
||||
[
|
||||
|
||||
# These values are common in all dictionaries
|
||||
{
|
||||
'creation': '2010-08-08 17:08:51',
|
||||
'docstatus': 0,
|
||||
'modified': '2010-04-01 10:18:55',
|
||||
'modified_by': 'Administrator',
|
||||
'owner': 'Administrator'
|
||||
},
|
||||
|
||||
# These values are common for all Role
|
||||
{
|
||||
'doctype': 'Role',
|
||||
'module': 'HR',
|
||||
'name': '__common__',
|
||||
'role_name': 'HR User'
|
||||
},
|
||||
|
||||
# Role, HR User
|
||||
{
|
||||
'doctype': 'Role',
|
||||
'name': 'HR User'
|
||||
}
|
||||
]
|
@ -0,0 +1,5 @@
|
||||
install_docs = [
|
||||
{"doctype":"Role", "name":"Employee"},
|
||||
{"doctype":"Role", "name":"HR Manager"},
|
||||
{"doctype":"Role", "name":"HR User"},
|
||||
]
|
@ -1,37 +0,0 @@
|
||||
[
|
||||
{
|
||||
'add_col': None,
|
||||
'add_cond': None,
|
||||
'add_tab': None,
|
||||
'columns': 'Employee\x01ID,Employee\x01Employee Name,Employee\x01Employee Code,Employee\x01Employee Number,Employee\x01Gender,Employee\x01Employment Type,Employee\x01Date of Joining,Employee\x01Scheduled Confirmation Date,Employee\x01Contract End Date,Employee\x01Status,Employee\x01Branch,Employee\x01Department,Employee\x01Designation,Employee\x01Grade,Employee\x01Company Email,Employee\x01Relieving Date',
|
||||
'creation': '2010-12-14 10:33:09',
|
||||
'criteria_name': 'Employee Details',
|
||||
'custom_query': '',
|
||||
'description': None,
|
||||
'dis_filters': None,
|
||||
'disabled': None,
|
||||
'doc_type': 'Employee',
|
||||
'docstatus': 0,
|
||||
'doctype': 'Search Criteria',
|
||||
'filters': "{'Employee\x01Gender':'','Employee\x01Month of Birth':'','Employee\x01Status':''}",
|
||||
'graph_series': None,
|
||||
'graph_values': None,
|
||||
'group_by': None,
|
||||
'idx': None,
|
||||
'modified': '2010-04-01 14:27:15',
|
||||
'modified_by': 'Administrator',
|
||||
'module': 'Payroll',
|
||||
'name': 'employee_details',
|
||||
'owner': 'Administrator',
|
||||
'page_len': 50,
|
||||
'parent': None,
|
||||
'parent_doc_type': None,
|
||||
'parentfield': None,
|
||||
'parenttype': None,
|
||||
'report_script': '',
|
||||
'server_script': None,
|
||||
'sort_by': 'ID',
|
||||
'sort_order': 'DESC',
|
||||
'standard': 'Yes'
|
||||
}
|
||||
]
|
@ -1,37 +0,0 @@
|
||||
[
|
||||
{
|
||||
'add_col': None,
|
||||
'add_cond': None,
|
||||
'add_tab': None,
|
||||
'columns': 'Employee Profile\x01Employee,Employee Internal Work History\x01Branch,Employee Internal Work History\x01Department,Employee Internal Work History\x01Designation,Employee Internal Work History\x01Grade,Employee Internal Work History\x01From Date,Employee Internal Work History\x01To Date',
|
||||
'creation': '2010-12-14 10:33:09',
|
||||
'criteria_name': 'Employee In Company Experience',
|
||||
'custom_query': '',
|
||||
'description': None,
|
||||
'dis_filters': None,
|
||||
'disabled': 1,
|
||||
'doc_type': 'Employee Internal Work History',
|
||||
'docstatus': 0,
|
||||
'doctype': 'Search Criteria',
|
||||
'filters': '{}',
|
||||
'graph_series': None,
|
||||
'graph_values': None,
|
||||
'group_by': None,
|
||||
'idx': None,
|
||||
'modified': '2010-04-01 14:27:15',
|
||||
'modified_by': 'Administrator',
|
||||
'module': 'Payroll',
|
||||
'name': 'employee_in_company_experience',
|
||||
'owner': 'Administrator',
|
||||
'page_len': 50,
|
||||
'parent': None,
|
||||
'parent_doc_type': 'Employee Profile',
|
||||
'parentfield': None,
|
||||
'parenttype': None,
|
||||
'report_script': '',
|
||||
'server_script': '',
|
||||
'sort_by': 'ID',
|
||||
'sort_order': 'DESC',
|
||||
'standard': 'Yes'
|
||||
}
|
||||
]
|
@ -1,33 +0,0 @@
|
||||
# Search Criteria, employeewise_leave_transaction_details
|
||||
[
|
||||
|
||||
# These values are common in all dictionaries
|
||||
{
|
||||
'creation': '2012-04-03 12:49:51',
|
||||
'docstatus': 0,
|
||||
'modified': '2012-04-03 12:49:51',
|
||||
'modified_by': u'Administrator',
|
||||
'owner': u'Administrator'
|
||||
},
|
||||
|
||||
# These values are common for all Search Criteria
|
||||
{
|
||||
'columns': u'Leave Transaction\x01ID,Leave Transaction\x01Fiscal Year,Leave Transaction\x01Employee,Leave Transaction\x01Leave Type,Leave Transaction\x01Previous Balance,Leave Transaction\x01Leave Transaction Type,Leave Transaction\x01Allocation Type,Leave Transaction\x01Deduction Type,Leave Transaction\x01Half Day,Leave Transaction\x01From Date,Leave Transaction\x01To Date,Leave Transaction\x01Encashment Date,Leave Transaction\x01Total Leave Days,Leave Transaction\x01Status',
|
||||
'criteria_name': u'Employeewise Leave Transaction Details',
|
||||
'doc_type': u'Leave Transaction',
|
||||
'doctype': 'Search Criteria',
|
||||
'filters': u"{'Leave Transaction\x01Saved':1,'Leave Transaction\x01Submitted':1}",
|
||||
'module': u'HR',
|
||||
'name': '__common__',
|
||||
'page_len': 50,
|
||||
'sort_by': u'`tabLeave Transaction`.`name`',
|
||||
'sort_order': u'DESC',
|
||||
'standard': u'Yes'
|
||||
},
|
||||
|
||||
# Search Criteria, employeewise_leave_transaction_details
|
||||
{
|
||||
'doctype': 'Search Criteria',
|
||||
'name': u'employeewise_leave_transaction_details'
|
||||
}
|
||||
]
|
@ -0,0 +1,98 @@
|
||||
colwidths[col_idx['Employee Name']]="120px"
|
||||
colwidths[col_idx['Leave Without Pay']] = '120px'
|
||||
|
||||
sum_net = total_earning = total_deduction = total_lwp = total_arr = 0
|
||||
total = ['Total Net Pay','','']
|
||||
|
||||
|
||||
earn_type_lst = sql("select name from `tabEarning Type`")
|
||||
|
||||
ded_type_lst = sql("select name from `tabDeduction Type`")
|
||||
li=[]
|
||||
for lst in earn_type_lst:
|
||||
|
||||
li.append(lst[0])
|
||||
|
||||
|
||||
|
||||
li.append('Total Earning')
|
||||
for lst in ded_type_lst:
|
||||
|
||||
li.append(lst[0])
|
||||
|
||||
|
||||
li.append('Total Deduction')
|
||||
li.append('Net Pay')
|
||||
|
||||
|
||||
|
||||
for d in li:
|
||||
colnames.append(d)
|
||||
colwidths.append("150px")
|
||||
coltypes.append("Currency")
|
||||
coloptions.append("")
|
||||
col_idx[d] = len(colnames)-1
|
||||
for r in res:
|
||||
r.append("0")
|
||||
|
||||
for r in res:
|
||||
|
||||
total_lwp += r[col_idx['Leave Without Pay']]
|
||||
total_arr += r[col_idx['Arrear Amount']]
|
||||
|
||||
for d1 in li:
|
||||
d2 = '%s'%d1
|
||||
|
||||
earn_ret=convert_to_lists(sql("select e_type,e_amount from `tabSS Earning Detail` where parent = '%s'"%r[col_idx['ID']]))
|
||||
ded_ret=convert_to_lists(sql("select d_type,d_amount from `tabSS Deduction Detail` where parent = '%s'"%r[col_idx['ID']]))
|
||||
|
||||
|
||||
for e in earn_ret:
|
||||
e0 = '%s'%e[0]
|
||||
r[col_idx[e0]]=flt(e[1]) or 0.00
|
||||
|
||||
|
||||
for d in ded_ret:
|
||||
d0 = '%s'%d[0]
|
||||
r[col_idx[d0]]=flt(d[1]) or 0.00
|
||||
|
||||
|
||||
tot_earn_ded_net_ret = sql("select gross_pay, total_deduction,net_pay from `tabSalary Slip` where name = '%s'"%r[col_idx['ID']])
|
||||
if d2 == 'Total Earning':
|
||||
r[col_idx[d2]] = flt(tot_earn_ded_net_ret[0][0]) or 0
|
||||
total_earning += flt(tot_earn_ded_net_ret[0][0]) or 0
|
||||
elif d2 == 'Total Deduction':
|
||||
r[col_idx[d2]] = flt(tot_earn_ded_net_ret[0][1]) or 0
|
||||
total_deduction += flt(tot_earn_ded_net_ret[0][1]) or 0
|
||||
elif d2 == 'Net Pay':
|
||||
r[col_idx[d2]] = flt(tot_earn_ded_net_ret[0][2]) or 0
|
||||
sum_net += flt(tot_earn_ded_net_ret[0][2]) or 0
|
||||
|
||||
|
||||
total.append(total_lwp)
|
||||
total.append(total_arr)
|
||||
|
||||
for lst in earn_type_lst:
|
||||
|
||||
total_ear = 0
|
||||
for r in res:
|
||||
|
||||
lst0 = '%s'%lst[0]
|
||||
total_ear += r[col_idx[lst0]]
|
||||
|
||||
total.append(total_ear)
|
||||
|
||||
total.append(total_earning)
|
||||
for lst in ded_type_lst:
|
||||
total_ded = 0
|
||||
for r in res:
|
||||
lst0 = '%s'%lst[0]
|
||||
total_ded += r[col_idx[lst0]]
|
||||
|
||||
total.append(total_ded)
|
||||
|
||||
|
||||
total.append(total_deduction)
|
||||
total.append(sum_net)
|
||||
|
||||
res.append(total)
|
@ -3,9 +3,9 @@
|
||||
|
||||
# These values are common in all dictionaries
|
||||
{
|
||||
'creation': '2012-04-03 12:49:51',
|
||||
'creation': '2012-03-30 14:50:44',
|
||||
'docstatus': 0,
|
||||
'modified': '2012-04-03 12:49:51',
|
||||
'modified': '2012-04-05 17:23:13',
|
||||
'modified_by': u'Administrator',
|
||||
'owner': u'Administrator'
|
||||
},
|
||||
@ -16,11 +16,11 @@
|
||||
'criteria_name': u'Monthly Salary Register',
|
||||
'doc_type': u'Salary Slip',
|
||||
'doctype': 'Search Criteria',
|
||||
'filters': u"{'Salary Slip\x01Month':'','Salary Slip\x01Year':''}",
|
||||
'filters': u'{"Salary Slip\\u0001Submitted":1,"Salary Slip\\u0001Company":[""],"Salary Slip\\u0001Month":[""]}',
|
||||
'module': u'HR',
|
||||
'name': '__common__',
|
||||
'page_len': 50,
|
||||
'sort_by': u'ID',
|
||||
'sort_by': u'`tabSalary Slip`.`name`',
|
||||
'sort_order': u'DESC',
|
||||
'standard': u'Yes'
|
||||
},
|
||||
|
@ -1,57 +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.add_filter({fieldname:'approver', label:'Approver', fieldtype:'Link', options:'Profile', ignore : 1, parent:'Appraisal'});
|
||||
this.filter_fields_dict['Appraisal'+FILTER_SEP +'Approver'].df.in_first_page = 1;
|
||||
|
||||
this.filter_fields_dict['Appraisal'+FILTER_SEP +'Employee'].df.filter_hide = 0;
|
||||
this.filter_fields_dict['Appraisal'+FILTER_SEP +'Employee Name'].df.filter_hide = 0;
|
||||
this.filter_fields_dict['Appraisal'+FILTER_SEP +'Fiscal Year'].df.filter_hide = 0;
|
||||
this.filter_fields_dict['Appraisal'+FILTER_SEP +'From Start Date'].df.filter_hide = 0;
|
||||
//this.filter_fields_dict['Appraisal'+FILTER_SEP +'To Start Date'].df.filter_hide = 0;
|
||||
//this.filter_fields_dict['Appraisal'+FILTER_SEP +'From End Date'].df.filter_hide = 0;
|
||||
this.filter_fields_dict['Appraisal'+FILTER_SEP +'To End Date'].df.filter_hide = 0;
|
||||
}
|
||||
this.mytabs.items['Select Columns'].hide();
|
||||
|
||||
report.get_query = function(){
|
||||
//get filter values
|
||||
emp = this.filter_fields_dict['Appraisal'+FILTER_SEP+'Employee'].get_value();
|
||||
emp_nm = this.filter_fields_dict['Appraisal'+FILTER_SEP+'Employee Name'].get_value();
|
||||
frm_start_date = this.filter_fields_dict['Appraisal'+FILTER_SEP+'From Start Date'].get_value();
|
||||
//to_start_date = this.filter_fields_dict['Appraisal'+FILTER_SEP+'To Start Date'].get_value();
|
||||
//frm_end_date = this.filter_fields_dict['Appraisal'+FILTER_SEP+'From End Date'].get_value();
|
||||
to_end_date = this.filter_fields_dict['Appraisal'+FILTER_SEP+'To End Date'].get_value();
|
||||
fiscal_year = this.filter_fields_dict['Appraisal'+FILTER_SEP+'Fiscal Year'].get_value();
|
||||
approver = this.filter_fields_dict['Appraisal'+FILTER_SEP+'Approver'].get_value();
|
||||
|
||||
var cond = '';
|
||||
if(emp) cond += ' AND `tabAppraisal`.employee = "'+emp+'"';
|
||||
if(emp_nm) cond += ' AND `tabAppraisal`.employee_name = "'+emp_nm+'"';
|
||||
if(frm_start_date) cond += ' AND `tabAppraisal`.start_date >= "'+frm_start_date+'"';
|
||||
//if(to_start_date) cond += ' AND `tabAppraisal`.start_date <= "'+to_start_date+'"';
|
||||
//if(frm_end_date) cond += ' AND `tabAppraisal`.end_date >= "'+frm_end_date+'"';
|
||||
if(to_end_date) cond += ' AND `tabAppraisal`.end_date <= "'+to_end_date+'"';
|
||||
if(fiscal_year !='') cond += ' AND `tabAppraisal`.fiscal_year = "'+fiscal_year+'"';
|
||||
if(approver) cond += ' AND `tabAppraisal`.kra_approver = "'+approver+'"';
|
||||
|
||||
//var q = 'SELECT DISTINCT `tabAppraisal`.name, `tabAppraisal`.status, `tabAppraisal`.employee, `tabAppraisal`.employee_name, `tabAppraisal`.start_date,`tabAppraisal`.end_date,`tabAppraisal`.kra_approver, `tabAppraisal`.total_score FROM `tabAppraisal` WHERE `tabAppraisal`.status= "Submitted" AND `tabAppraisal`.kra_approver = "'+ user+'"'+cond;
|
||||
var q = 'SELECT DISTINCT `tabAppraisal`.name, `tabAppraisal`.employee, `tabAppraisal`.employee_name, `tabAppraisal`.start_date,`tabAppraisal`.end_date,`tabAppraisal`.kra_approver, `tabAppraisal`.total_score FROM `tabAppraisal` WHERE `tabAppraisal`.status= "Submitted"'+cond;
|
||||
return q;
|
||||
}
|
@ -1,33 +0,0 @@
|
||||
# Search Criteria, pending_appraisals
|
||||
[
|
||||
|
||||
# These values are common in all dictionaries
|
||||
{
|
||||
'creation': '2012-04-03 12:49:51',
|
||||
'docstatus': 0,
|
||||
'modified': '2012-04-03 12:49:51',
|
||||
'modified_by': u'Administrator',
|
||||
'owner': u'ashwini@webnotestech.com'
|
||||
},
|
||||
|
||||
# These values are common for all Search Criteria
|
||||
{
|
||||
'criteria_name': u'Pending Appraisals',
|
||||
'disabled': 0,
|
||||
'doc_type': u'Appraisal',
|
||||
'doctype': 'Search Criteria',
|
||||
'filters': u"{'Appraisal\x01Submitted':1,'Appraisal\x01Status':'Submitted','Appraisal\x01Fiscal Year':'','Appraisal\x01Approver':''}",
|
||||
'module': u'HR',
|
||||
'name': '__common__',
|
||||
'page_len': 50,
|
||||
'sort_by': u'`tabAppraisal`.`name`',
|
||||
'sort_order': u'DESC',
|
||||
'standard': u'Yes'
|
||||
},
|
||||
|
||||
# Search Criteria, pending_appraisals
|
||||
{
|
||||
'doctype': 'Search Criteria',
|
||||
'name': u'pending_appraisals'
|
||||
}
|
||||
]
|
@ -1,31 +0,0 @@
|
||||
# Search Criteria, pending_expense_claims
|
||||
[
|
||||
|
||||
# These values are common in all dictionaries
|
||||
{
|
||||
'creation': '2012-03-30 14:50:44',
|
||||
'docstatus': 0,
|
||||
'modified': '2012-03-30 14:50:44',
|
||||
'modified_by': u'Administrator',
|
||||
'owner': u'ashwini@webnotestech.com'
|
||||
},
|
||||
|
||||
# These values are common for all Search Criteria
|
||||
{
|
||||
'criteria_name': u'Pending Expense Claims',
|
||||
'doc_type': u'Expense Claim',
|
||||
'doctype': 'Search Criteria',
|
||||
'filters': u"{'Expense Claim\x01Approval Status':'','Expense Claim\x01Fiscal Year':''}",
|
||||
'module': u'HR',
|
||||
'name': '__common__',
|
||||
'page_len': 50,
|
||||
'sort_order': u'DESC',
|
||||
'standard': u'Yes'
|
||||
},
|
||||
|
||||
# Search Criteria, pending_expense_claims
|
||||
{
|
||||
'doctype': 'Search Criteria',
|
||||
'name': u'pending_expense_claims'
|
||||
}
|
||||
]
|
@ -1,42 +0,0 @@
|
||||
[
|
||||
{
|
||||
'creation': '2010-08-08 17:35:42',
|
||||
'disabled': 'Yes',
|
||||
'docstatus': 0,
|
||||
'doctype': u'Module Def',
|
||||
'doctype_list': None,
|
||||
'file_list': None,
|
||||
'idx': None,
|
||||
'is_hidden': None,
|
||||
'last_updated_date': None,
|
||||
'modified': '2011-05-02 12:40:40',
|
||||
'modified_by': 'Administrator',
|
||||
'module_desc': '<p>Maintain your knowledge base of Questions & Answers</p>',
|
||||
'module_icon': 'help.png',
|
||||
'module_label': 'Knowledge Base',
|
||||
'module_name': 'Knowledge Base',
|
||||
'module_page': 'questions',
|
||||
'module_seq': 13,
|
||||
'name': 'Knowledge Base',
|
||||
'owner': 'Administrator',
|
||||
'parent': None,
|
||||
'parentfield': None,
|
||||
'parenttype': None,
|
||||
'trash_reason': None,
|
||||
'widget_code': None
|
||||
},
|
||||
{
|
||||
'creation': '2010-08-08 17:35:42',
|
||||
'docstatus': 0,
|
||||
'doctype': 'Module Def Role',
|
||||
'idx': 1,
|
||||
'modified': '2010-08-08 17:35:42',
|
||||
'modified_by': 'Administrator',
|
||||
'name': 'MDR00106',
|
||||
'owner': 'Administrator',
|
||||
'parent': 'Knowledge Base',
|
||||
'parentfield': 'roles',
|
||||
'parenttype': 'Module Def',
|
||||
'role': 'All'
|
||||
}
|
||||
]
|
@ -7,13 +7,13 @@ from webnotes.modules import reload_doc
|
||||
from webnotes.utils import make_esc
|
||||
import os
|
||||
|
||||
def execute():
|
||||
def execute1():
|
||||
#rendt = get_dt_to_be_renamed()
|
||||
#rename_dt_files(rendt)
|
||||
#update_local_file_system()
|
||||
replace_labels_with_fieldnames()
|
||||
|
||||
def execute1():
|
||||
def execute():
|
||||
# delete dt, mapper
|
||||
delete_dt_and_mapper()
|
||||
|
||||
@ -65,7 +65,35 @@ def execute1():
|
||||
'lease_receipt_summary_month_wise', 'lease_receipts_client_wise',
|
||||
'lease_yearly_future_installment_inflows',
|
||||
'monthly_ledger_summary_report', 'payables_-_as_on_outstanding',
|
||||
'payment_report')""")
|
||||
'payment_report', 'progressive_total_excise_duty',
|
||||
'service_tax_credit_account_-_inputs',
|
||||
'total_amout_collection_for_a_period_-_customerwise',
|
||||
'invoices-to_be_submitted', 'invoices-to_receive_payment',
|
||||
'opportunity-quotations_to_be_sent', 'purchase_order-to_be_billed',
|
||||
'purchase_order-to_be_submitted',
|
||||
'purchase_order-to_receive_items',
|
||||
'purchase_request-purchase_order_to_be_made',
|
||||
'purchase_request-to_be_submitted',
|
||||
'sales-order_to_be_submitted', 'sales_order-overdue',
|
||||
'sales_order-to_be_billed', 'sales_order-to_be_delivered',
|
||||
'sales_order-to_be_submitted', 'task-open', 'appraisal_custom',
|
||||
'employee_details', 'employee_in_company_experience',
|
||||
'employee_leave_balance_report', 'employeewise_leave_transaction_details',
|
||||
'pending_appraisals', 'pending_expense_claims', 'delivery_plan', 'flat_bom_report',
|
||||
'dispatch_report', 'projectwise_delivered_qty_and_costs_as_per_purchase_cost',
|
||||
'projectwise_pending_qty_and_costs_as_per_purchase_cost', 'custom_test', 'custom_test1',
|
||||
'delivery_notes', 'delivery_note_disabled', 'lead', 'lead_interested', 'lead_report',
|
||||
'periodic_sales_summary', 'monthly_despatched_trend', 'sales', 'sales_order',
|
||||
'sales_order1', 'sales_agentwise_commission', 'test_report', 'territory_wise_sales_-_target_vs_actual_')""")
|
||||
|
||||
webnotes.conn.sql("""
|
||||
DELETE FROM `tabSearch Criteria`
|
||||
WHERE name IN ('monthly_transaction_summary', 'trend_analyzer',
|
||||
'yearly_transaction_summary', 'invoices-overdue', 'lead-to_follow_up',
|
||||
'opportunity-to_follow_up', 'serial_no-amc_expiring_this_month',
|
||||
'serial_no-warranty_expiring_this_month', )
|
||||
AND IFNULL(standard, 'No') = 'Yes'
|
||||
""")
|
||||
|
||||
# reload custom search criteria
|
||||
for d in webnotes.conn.sql("""select name, module from
|
||||
|
@ -1,519 +0,0 @@
|
||||
[
|
||||
{
|
||||
'_last_update': '1300959287',
|
||||
'creation': '2010-11-30 22:42:49',
|
||||
'disabled': 'No',
|
||||
'docstatus': 0,
|
||||
'doctype': u'Module Def',
|
||||
'doctype_list': None,
|
||||
'file_list': 'support.gif,FileData/00214',
|
||||
'idx': None,
|
||||
'is_hidden': 'No',
|
||||
'last_updated_date': '2010-11-29 12:02:02',
|
||||
'modified': '2011-03-24 15:29:36',
|
||||
'modified_by': 'Administrator',
|
||||
'module_desc': '<p>Production Documents</p>',
|
||||
'module_icon': 'process.png',
|
||||
'module_label': 'Production',
|
||||
'module_name': 'Production',
|
||||
'module_page': None,
|
||||
'module_seq': 7,
|
||||
'name': 'Production',
|
||||
'owner': 'Administrator',
|
||||
'parent': None,
|
||||
'parentfield': None,
|
||||
'parenttype': None,
|
||||
'trash_reason': None,
|
||||
'widget_code': None
|
||||
},
|
||||
{
|
||||
'click_function': None,
|
||||
'creation': '2010-11-30 22:42:49',
|
||||
'description': 'Bill of material master containing raw materials, operation and costs',
|
||||
'display_name': 'BOM',
|
||||
'doc_name': 'BOM',
|
||||
'doc_type': 'Forms',
|
||||
'docstatus': 0,
|
||||
'doctype': 'Module Def Item',
|
||||
'fields': 'id\nitem\ndescription\noperating_cost\nmaintained_by',
|
||||
'hide': None,
|
||||
'icon': None,
|
||||
'idx': 1,
|
||||
'modified': '2011-03-24 15:29:36',
|
||||
'modified_by': 'Administrator',
|
||||
'name': 'MDI00209',
|
||||
'owner': 'Administrator',
|
||||
'parent': 'Production',
|
||||
'parentfield': 'items',
|
||||
'parenttype': 'Module Def'
|
||||
},
|
||||
{
|
||||
'click_function': None,
|
||||
'creation': '2010-11-30 22:42:49',
|
||||
'description': 'Machinery in warehouse where operations are performed on raw materials',
|
||||
'display_name': 'Workstation',
|
||||
'doc_name': 'Workstation',
|
||||
'doc_type': 'Forms',
|
||||
'docstatus': 0,
|
||||
'doctype': 'Module Def Item',
|
||||
'fields': 'id\nworkstation_name\nwarehouse\ndescription',
|
||||
'hide': None,
|
||||
'icon': None,
|
||||
'idx': 2,
|
||||
'modified': '2011-03-24 15:29:36',
|
||||
'modified_by': 'Administrator',
|
||||
'name': 'MDI00210',
|
||||
'owner': 'Administrator',
|
||||
'parent': 'Production',
|
||||
'parentfield': 'items',
|
||||
'parenttype': 'Module Def'
|
||||
},
|
||||
{
|
||||
'click_function': None,
|
||||
'creation': '2010-11-30 22:42:49',
|
||||
'description': 'Explode Bill of Materials in a tree and calculate the cost',
|
||||
'display_name': 'Bill of Materials (Tree)',
|
||||
'doc_name': 'Bill of Materials',
|
||||
'doc_type': 'Pages',
|
||||
'docstatus': 0,
|
||||
'doctype': 'Module Def Item',
|
||||
'fields': None,
|
||||
'hide': None,
|
||||
'icon': None,
|
||||
'idx': 3,
|
||||
'modified': '2011-03-24 15:29:36',
|
||||
'modified_by': 'Administrator',
|
||||
'name': 'MDI00211',
|
||||
'owner': 'Administrator',
|
||||
'parent': 'Production',
|
||||
'parentfield': 'items',
|
||||
'parenttype': 'Module Def'
|
||||
},
|
||||
{
|
||||
'click_function': None,
|
||||
'creation': '2010-11-30 22:42:49',
|
||||
'description': 'Update confirmed delivery dates in Sales Orders included in Production Plan',
|
||||
'display_name': 'Update Delivery Dates',
|
||||
'doc_name': 'Update Delivery Date',
|
||||
'doc_type': 'Single DocType',
|
||||
'docstatus': 0,
|
||||
'doctype': 'Module Def Item',
|
||||
'fields': None,
|
||||
'hide': None,
|
||||
'icon': None,
|
||||
'idx': 4,
|
||||
'modified': '2011-03-24 15:29:36',
|
||||
'modified_by': 'Administrator',
|
||||
'name': 'MDI00212',
|
||||
'owner': 'jai@webnotestech.com',
|
||||
'parent': 'Production',
|
||||
'parentfield': 'items',
|
||||
'parenttype': 'Module Def'
|
||||
},
|
||||
{
|
||||
'click_function': None,
|
||||
'creation': '2010-11-30 22:42:49',
|
||||
'description': 'Plan your production by including relevant Sales Orders in your plan',
|
||||
'display_name': 'Production Planning Tool',
|
||||
'doc_name': 'Production Planning Tool',
|
||||
'doc_type': 'Single DocType',
|
||||
'docstatus': 0,
|
||||
'doctype': 'Module Def Item',
|
||||
'fields': None,
|
||||
'hide': None,
|
||||
'icon': None,
|
||||
'idx': 5,
|
||||
'modified': '2011-03-24 15:29:36',
|
||||
'modified_by': 'Administrator',
|
||||
'name': 'MDI00213',
|
||||
'owner': 'saumil@webnotestech.com',
|
||||
'parent': 'Production',
|
||||
'parentfield': 'items',
|
||||
'parenttype': 'Module Def'
|
||||
},
|
||||
{
|
||||
'click_function': None,
|
||||
'creation': '2010-11-30 22:42:49',
|
||||
'description': 'Change raw materials used in a Bill of Material through BOM replace utility',
|
||||
'display_name': 'BOM Replace Utility',
|
||||
'doc_name': 'BOM Replace Utility',
|
||||
'doc_type': 'Single DocType',
|
||||
'docstatus': 0,
|
||||
'doctype': 'Module Def Item',
|
||||
'fields': None,
|
||||
'hide': None,
|
||||
'icon': None,
|
||||
'idx': 6,
|
||||
'modified': '2011-03-24 15:29:36',
|
||||
'modified_by': 'Administrator',
|
||||
'name': 'MDI00214',
|
||||
'owner': 'jai@webnotestech.com',
|
||||
'parent': 'Production',
|
||||
'parentfield': 'items',
|
||||
'parenttype': 'Module Def'
|
||||
},
|
||||
{
|
||||
'click_function': None,
|
||||
'creation': '2010-11-30 22:42:49',
|
||||
'description': 'Raise your Production Orders Manually',
|
||||
'display_name': 'Production Order',
|
||||
'doc_name': 'Production Order',
|
||||
'doc_type': 'Forms',
|
||||
'docstatus': 0,
|
||||
'doctype': 'Module Def Item',
|
||||
'fields': None,
|
||||
'hide': None,
|
||||
'icon': None,
|
||||
'idx': 7,
|
||||
'modified': '2011-03-24 15:29:36',
|
||||
'modified_by': 'Administrator',
|
||||
'name': 'MDI00215',
|
||||
'owner': 'Administrator',
|
||||
'parent': 'Production',
|
||||
'parentfield': 'items',
|
||||
'parenttype': 'Module Def'
|
||||
},
|
||||
{
|
||||
'click_function': None,
|
||||
'creation': '2011-03-24 15:04:47',
|
||||
'description': None,
|
||||
'display_name': None,
|
||||
'doc_name': 'Reports',
|
||||
'doc_type': 'Separator',
|
||||
'docstatus': 0,
|
||||
'doctype': 'Module Def Item',
|
||||
'fields': None,
|
||||
'hide': None,
|
||||
'icon': None,
|
||||
'idx': 8,
|
||||
'modified': '2011-03-24 15:29:36',
|
||||
'modified_by': 'Administrator',
|
||||
'name': '000003093',
|
||||
'owner': 'saumil@webnotestech.com',
|
||||
'parent': 'Production',
|
||||
'parentfield': 'items',
|
||||
'parenttype': 'Module Def'
|
||||
},
|
||||
{
|
||||
'click_function': None,
|
||||
'creation': '2011-03-24 15:04:47',
|
||||
'description': None,
|
||||
'display_name': 'Delivery Plan',
|
||||
'doc_name': 'Sales Order Item',
|
||||
'doc_type': 'Reports',
|
||||
'docstatus': 0,
|
||||
'doctype': 'Module Def Item',
|
||||
'fields': None,
|
||||
'hide': None,
|
||||
'icon': None,
|
||||
'idx': 9,
|
||||
'modified': '2011-03-24 15:29:36',
|
||||
'modified_by': 'Administrator',
|
||||
'name': '000003094',
|
||||
'owner': 'Administrator',
|
||||
'parent': 'Production',
|
||||
'parentfield': 'items',
|
||||
'parenttype': 'Module Def'
|
||||
},
|
||||
{
|
||||
'click_function': None,
|
||||
'creation': '2011-03-24 15:04:47',
|
||||
'description': None,
|
||||
'display_name': 'Itemwise Production Report',
|
||||
'doc_name': 'Stock Entry Detail',
|
||||
'doc_type': 'Reports',
|
||||
'docstatus': 0,
|
||||
'doctype': 'Module Def Item',
|
||||
'fields': None,
|
||||
'hide': None,
|
||||
'icon': None,
|
||||
'idx': 10,
|
||||
'modified': '2011-03-24 15:29:36',
|
||||
'modified_by': 'Administrator',
|
||||
'name': '000003095',
|
||||
'owner': 'jai@webnotestech.com',
|
||||
'parent': 'Production',
|
||||
'parentfield': 'items',
|
||||
'parenttype': 'Module Def'
|
||||
},
|
||||
{
|
||||
'click_function': None,
|
||||
'creation': '2011-03-24 15:04:47',
|
||||
'description': None,
|
||||
'display_name': 'Production Orders In Process',
|
||||
'doc_name': 'Production Order',
|
||||
'doc_type': 'Reports',
|
||||
'docstatus': 0,
|
||||
'doctype': 'Module Def Item',
|
||||
'fields': None,
|
||||
'hide': None,
|
||||
'icon': None,
|
||||
'idx': 11,
|
||||
'modified': '2011-03-24 15:29:36',
|
||||
'modified_by': 'Administrator',
|
||||
'name': '000003096',
|
||||
'owner': 'jai@webnotestech.com',
|
||||
'parent': 'Production',
|
||||
'parentfield': 'items',
|
||||
'parenttype': 'Module Def'
|
||||
},
|
||||
{
|
||||
'click_function': None,
|
||||
'creation': '2010-11-30 22:42:49',
|
||||
'description': 'Bill of material master containing raw materials, operation and costs',
|
||||
'display_name': 'BOM',
|
||||
'doc_name': 'BOM',
|
||||
'doc_type': 'Forms',
|
||||
'docstatus': 0,
|
||||
'doctype': 'Module Def Item',
|
||||
'fields': 'id\nitem\ndescription\noperating_cost\nmaintained_by',
|
||||
'hide': None,
|
||||
'icon': None,
|
||||
'idx': 1,
|
||||
'modified': '2011-03-24 15:29:36',
|
||||
'modified_by': 'Administrator',
|
||||
'name': 'MDI00209',
|
||||
'owner': 'Administrator',
|
||||
'parent': 'Production',
|
||||
'parentfield': 'items',
|
||||
'parenttype': 'Module Def'
|
||||
},
|
||||
{
|
||||
'click_function': None,
|
||||
'creation': '2010-11-30 22:42:49',
|
||||
'description': 'Machinery in warehouse where operations are performed on raw materials',
|
||||
'display_name': 'Workstation',
|
||||
'doc_name': 'Workstation',
|
||||
'doc_type': 'Forms',
|
||||
'docstatus': 0,
|
||||
'doctype': 'Module Def Item',
|
||||
'fields': 'id\nworkstation_name\nwarehouse\ndescription',
|
||||
'hide': None,
|
||||
'icon': None,
|
||||
'idx': 2,
|
||||
'modified': '2011-03-24 15:29:36',
|
||||
'modified_by': 'Administrator',
|
||||
'name': 'MDI00210',
|
||||
'owner': 'Administrator',
|
||||
'parent': 'Production',
|
||||
'parentfield': 'items',
|
||||
'parenttype': 'Module Def'
|
||||
},
|
||||
{
|
||||
'click_function': None,
|
||||
'creation': '2010-11-30 22:42:49',
|
||||
'description': 'Explode Bill of Materials in a tree and calculate the cost',
|
||||
'display_name': 'Bill of Materials (Tree)',
|
||||
'doc_name': 'Bill of Materials',
|
||||
'doc_type': 'Pages',
|
||||
'docstatus': 0,
|
||||
'doctype': 'Module Def Item',
|
||||
'fields': None,
|
||||
'hide': None,
|
||||
'icon': None,
|
||||
'idx': 3,
|
||||
'modified': '2011-03-24 15:29:36',
|
||||
'modified_by': 'Administrator',
|
||||
'name': 'MDI00211',
|
||||
'owner': 'Administrator',
|
||||
'parent': 'Production',
|
||||
'parentfield': 'items',
|
||||
'parenttype': 'Module Def'
|
||||
},
|
||||
{
|
||||
'click_function': None,
|
||||
'creation': '2010-11-30 22:42:49',
|
||||
'description': 'Update confirmed delivery dates in Sales Orders included in Production Plan',
|
||||
'display_name': 'Update Delivery Dates',
|
||||
'doc_name': 'Update Delivery Date',
|
||||
'doc_type': 'Single DocType',
|
||||
'docstatus': 0,
|
||||
'doctype': 'Module Def Item',
|
||||
'fields': None,
|
||||
'hide': None,
|
||||
'icon': None,
|
||||
'idx': 4,
|
||||
'modified': '2011-03-24 15:29:36',
|
||||
'modified_by': 'Administrator',
|
||||
'name': 'MDI00212',
|
||||
'owner': 'jai@webnotestech.com',
|
||||
'parent': 'Production',
|
||||
'parentfield': 'items',
|
||||
'parenttype': 'Module Def'
|
||||
},
|
||||
{
|
||||
'click_function': None,
|
||||
'creation': '2010-11-30 22:42:49',
|
||||
'description': 'Plan your production by including relevant Sales Orders in your plan',
|
||||
'display_name': 'Production Planning Tool',
|
||||
'doc_name': 'Production Planning Tool',
|
||||
'doc_type': 'Single DocType',
|
||||
'docstatus': 0,
|
||||
'doctype': 'Module Def Item',
|
||||
'fields': None,
|
||||
'hide': None,
|
||||
'icon': None,
|
||||
'idx': 5,
|
||||
'modified': '2011-03-24 15:29:36',
|
||||
'modified_by': 'Administrator',
|
||||
'name': 'MDI00213',
|
||||
'owner': 'saumil@webnotestech.com',
|
||||
'parent': 'Production',
|
||||
'parentfield': 'items',
|
||||
'parenttype': 'Module Def'
|
||||
},
|
||||
{
|
||||
'click_function': None,
|
||||
'creation': '2010-11-30 22:42:49',
|
||||
'description': 'Change raw materials used in a Bill of Material through BOM replace utility',
|
||||
'display_name': 'BOM Replace Utility',
|
||||
'doc_name': 'BOM Replace Utility',
|
||||
'doc_type': 'Single DocType',
|
||||
'docstatus': 0,
|
||||
'doctype': 'Module Def Item',
|
||||
'fields': None,
|
||||
'hide': None,
|
||||
'icon': None,
|
||||
'idx': 6,
|
||||
'modified': '2011-03-24 15:29:36',
|
||||
'modified_by': 'Administrator',
|
||||
'name': 'MDI00214',
|
||||
'owner': 'jai@webnotestech.com',
|
||||
'parent': 'Production',
|
||||
'parentfield': 'items',
|
||||
'parenttype': 'Module Def'
|
||||
},
|
||||
{
|
||||
'click_function': None,
|
||||
'creation': '2010-11-30 22:42:49',
|
||||
'description': 'Raise your Production Orders Manually',
|
||||
'display_name': 'Production Order',
|
||||
'doc_name': 'Production Order',
|
||||
'doc_type': 'Forms',
|
||||
'docstatus': 0,
|
||||
'doctype': 'Module Def Item',
|
||||
'fields': None,
|
||||
'hide': None,
|
||||
'icon': None,
|
||||
'idx': 7,
|
||||
'modified': '2011-03-24 15:29:36',
|
||||
'modified_by': 'Administrator',
|
||||
'name': 'MDI00215',
|
||||
'owner': 'Administrator',
|
||||
'parent': 'Production',
|
||||
'parentfield': 'items',
|
||||
'parenttype': 'Module Def'
|
||||
},
|
||||
{
|
||||
'click_function': None,
|
||||
'creation': '2011-03-24 15:04:47',
|
||||
'description': None,
|
||||
'display_name': None,
|
||||
'doc_name': 'Reports',
|
||||
'doc_type': 'Separator',
|
||||
'docstatus': 0,
|
||||
'doctype': 'Module Def Item',
|
||||
'fields': None,
|
||||
'hide': None,
|
||||
'icon': None,
|
||||
'idx': 8,
|
||||
'modified': '2011-03-24 15:29:36',
|
||||
'modified_by': 'Administrator',
|
||||
'name': '000003093',
|
||||
'owner': 'saumil@webnotestech.com',
|
||||
'parent': 'Production',
|
||||
'parentfield': 'items',
|
||||
'parenttype': 'Module Def'
|
||||
},
|
||||
{
|
||||
'click_function': None,
|
||||
'creation': '2011-03-24 15:04:47',
|
||||
'description': None,
|
||||
'display_name': 'Delivery Plan',
|
||||
'doc_name': 'Sales Order Item',
|
||||
'doc_type': 'Reports',
|
||||
'docstatus': 0,
|
||||
'doctype': 'Module Def Item',
|
||||
'fields': None,
|
||||
'hide': None,
|
||||
'icon': None,
|
||||
'idx': 9,
|
||||
'modified': '2011-03-24 15:29:36',
|
||||
'modified_by': 'Administrator',
|
||||
'name': '000003094',
|
||||
'owner': 'Administrator',
|
||||
'parent': 'Production',
|
||||
'parentfield': 'items',
|
||||
'parenttype': 'Module Def'
|
||||
},
|
||||
{
|
||||
'click_function': None,
|
||||
'creation': '2011-03-24 15:04:47',
|
||||
'description': None,
|
||||
'display_name': 'Itemwise Production Report',
|
||||
'doc_name': 'Stock Entry Detail',
|
||||
'doc_type': 'Reports',
|
||||
'docstatus': 0,
|
||||
'doctype': 'Module Def Item',
|
||||
'fields': None,
|
||||
'hide': None,
|
||||
'icon': None,
|
||||
'idx': 10,
|
||||
'modified': '2011-03-24 15:29:36',
|
||||
'modified_by': 'Administrator',
|
||||
'name': '000003095',
|
||||
'owner': 'jai@webnotestech.com',
|
||||
'parent': 'Production',
|
||||
'parentfield': 'items',
|
||||
'parenttype': 'Module Def'
|
||||
},
|
||||
{
|
||||
'click_function': None,
|
||||
'creation': '2011-03-24 15:04:47',
|
||||
'description': None,
|
||||
'display_name': 'Production Orders In Process',
|
||||
'doc_name': 'Production Order',
|
||||
'doc_type': 'Reports',
|
||||
'docstatus': 0,
|
||||
'doctype': 'Module Def Item',
|
||||
'fields': None,
|
||||
'hide': None,
|
||||
'icon': None,
|
||||
'idx': 11,
|
||||
'modified': '2011-03-24 15:29:36',
|
||||
'modified_by': 'Administrator',
|
||||
'name': '000003096',
|
||||
'owner': 'jai@webnotestech.com',
|
||||
'parent': 'Production',
|
||||
'parentfield': 'items',
|
||||
'parenttype': 'Module Def'
|
||||
},
|
||||
{
|
||||
'creation': '2010-11-30 22:42:49',
|
||||
'docstatus': 0,
|
||||
'doctype': 'Module Def Role',
|
||||
'idx': 1,
|
||||
'modified': '2011-03-24 15:29:36',
|
||||
'modified_by': 'Administrator',
|
||||
'name': 'MDR00040',
|
||||
'owner': 'Administrator',
|
||||
'parent': 'Production',
|
||||
'parentfield': 'roles',
|
||||
'parenttype': 'Module Def',
|
||||
'role': 'Production User'
|
||||
},
|
||||
{
|
||||
'creation': '2010-11-30 22:42:49',
|
||||
'docstatus': 0,
|
||||
'doctype': 'Module Def Role',
|
||||
'idx': 2,
|
||||
'modified': '2011-03-24 15:29:36',
|
||||
'modified_by': 'Administrator',
|
||||
'name': 'MDR00041',
|
||||
'owner': 'Administrator',
|
||||
'parent': 'Production',
|
||||
'parentfield': 'roles',
|
||||
'parenttype': 'Module Def',
|
||||
'role': 'Production Manager'
|
||||
}
|
||||
]
|
@ -1,26 +0,0 @@
|
||||
# Role, Production Manager
|
||||
[
|
||||
|
||||
# These values are common in all dictionaries
|
||||
{
|
||||
'creation': '2010-08-08 17:08:51',
|
||||
'docstatus': 0,
|
||||
'modified': '2009-09-23 16:35:35',
|
||||
'modified_by': 'Administrator',
|
||||
'owner': 'Administrator'
|
||||
},
|
||||
|
||||
# These values are common for all Role
|
||||
{
|
||||
'doctype': 'Role',
|
||||
'module': 'Production',
|
||||
'name': '__common__',
|
||||
'role_name': 'Production Manager'
|
||||
},
|
||||
|
||||
# Role, Production Manager
|
||||
{
|
||||
'doctype': 'Role',
|
||||
'name': 'Production Manager'
|
||||
}
|
||||
]
|
@ -1,26 +0,0 @@
|
||||
# Role, Production User
|
||||
[
|
||||
|
||||
# These values are common in all dictionaries
|
||||
{
|
||||
'creation': '2010-08-08 17:08:51',
|
||||
'docstatus': 0,
|
||||
'modified': '2009-09-23 16:36:08',
|
||||
'modified_by': 'Administrator',
|
||||
'owner': 'Administrator'
|
||||
},
|
||||
|
||||
# These values are common for all Role
|
||||
{
|
||||
'doctype': 'Role',
|
||||
'module': 'Production',
|
||||
'name': '__common__',
|
||||
'role_name': 'Production User'
|
||||
},
|
||||
|
||||
# Role, Production User
|
||||
{
|
||||
'doctype': 'Role',
|
||||
'name': 'Production User'
|
||||
}
|
||||
]
|
@ -0,0 +1,4 @@
|
||||
install_docs = [
|
||||
{"doctype":"Role", "name":"Production Manager"},
|
||||
{"doctype":"Role", "name":"Production User"},
|
||||
]
|
@ -1,34 +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() {
|
||||
|
||||
//to hide all filters
|
||||
//this.hide_all_filters();
|
||||
|
||||
// to disable a filter from query set
|
||||
this.filter_fields_dict['Sales Order'+FILTER_SEP +'Status'].df.ignore = 1;
|
||||
|
||||
// to unhide required filters
|
||||
this.filter_fields_dict['Sales Order'+FILTER_SEP +'Customer'].df.filter_hide = 0;
|
||||
this.filter_fields_dict['Sales Order'+FILTER_SEP +'Customer Name'].df.filter_hide = 0;
|
||||
this.filter_fields_dict['Sales Order Item'+FILTER_SEP +'From Confirmed Delivery Date'].df.filter_hide = 0;
|
||||
this.filter_fields_dict['Sales Order Item'+FILTER_SEP +'To Confirmed Delivery Date'].df.filter_hide = 0;
|
||||
|
||||
|
||||
this.filter_fields_dict['Sales Order'+FILTER_SEP +'Company'].df['report_default'] = sys_defaults.company;
|
||||
this.filter_fields_dict['Sales Order'+FILTER_SEP +'Fiscal Year'].df['report_default'] = sys_defaults.fiscal_year;
|
||||
}
|
@ -1,37 +0,0 @@
|
||||
# Search Criteria, delivery_plan
|
||||
[
|
||||
|
||||
# These values are common in all dictionaries
|
||||
{
|
||||
'creation': '2012-04-03 12:49:51',
|
||||
'docstatus': 0,
|
||||
'modified': '2012-04-03 12:49:51',
|
||||
'modified_by': u'Administrator',
|
||||
'owner': u'Administrator'
|
||||
},
|
||||
|
||||
# These values are common for all Search Criteria
|
||||
{
|
||||
'add_col': u"SUM(`tabSales Order Item`.`pending_qty` * `tabSales Order Item`.`basic_rate` ) AS 'Amount'",
|
||||
'add_cond': u"`tabSales Order Item`.pending_qty > 0 and (`tabSales Order Item`.confirmation_date is not null or `tabSales Order Item`.confirmation_date!='' or `tabSales Order Item`.confirmation_date != '00-00-0000')",
|
||||
'columns': u'Sales Order\x01ID,Sales Order\x01Customer,Sales Order\x01Customer Name',
|
||||
'criteria_name': u'Delivery Plan',
|
||||
'doc_type': u'Sales Order Item',
|
||||
'doctype': 'Search Criteria',
|
||||
'filters': u"{'Sales Order\x01Saved':1,'Sales Order\x01Submitted':1,'Sales Order\x01Status':'','Sales Order\x01Fiscal Year':''}",
|
||||
'group_by': u'`tabSales Order Item`.`confirmation_date`, `tabSales Order`.`name`',
|
||||
'module': u'Production',
|
||||
'name': '__common__',
|
||||
'page_len': 50,
|
||||
'parent_doc_type': u'Sales Order',
|
||||
'sort_by': u'`tabSales Order`.`name`',
|
||||
'sort_order': u'DESC',
|
||||
'standard': u'Yes'
|
||||
},
|
||||
|
||||
# Search Criteria, delivery_plan
|
||||
{
|
||||
'doctype': 'Search Criteria',
|
||||
'name': u'delivery_plan'
|
||||
}
|
||||
]
|
@ -1,26 +0,0 @@
|
||||
# Role, Projects User
|
||||
[
|
||||
|
||||
# These values are common in all dictionaries
|
||||
{
|
||||
'creation': '2010-08-08 17:08:51',
|
||||
'docstatus': 0,
|
||||
'modified': '2010-05-08 09:40:07',
|
||||
'modified_by': 'Administrator',
|
||||
'owner': 'Administrator'
|
||||
},
|
||||
|
||||
# These values are common for all Role
|
||||
{
|
||||
'doctype': 'Role',
|
||||
'module': 'Projects',
|
||||
'name': '__common__',
|
||||
'role_name': 'Projects User'
|
||||
},
|
||||
|
||||
# Role, Projects User
|
||||
{
|
||||
'doctype': 'Role',
|
||||
'name': 'Projects User'
|
||||
}
|
||||
]
|
@ -0,0 +1,3 @@
|
||||
install_docs = [
|
||||
{"doctype":"Role", "name":"Projects User"},
|
||||
]
|
@ -1,21 +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.mytabs.items['Select Columns'].hide()
|
||||
//this.mytabs.items['More Filters'].hide()
|
||||
//this.hide_all_filters();
|
||||
}
|
@ -1,34 +0,0 @@
|
||||
# Search Criteria, dispatch_report
|
||||
[
|
||||
|
||||
# These values are common in all dictionaries
|
||||
{
|
||||
'creation': '2012-04-03 12:49:51',
|
||||
'docstatus': 0,
|
||||
'modified': '2012-04-03 12:49:51',
|
||||
'modified_by': u'Administrator',
|
||||
'owner': u'ashwini@webnotestech.com'
|
||||
},
|
||||
|
||||
# These values are common for all Search Criteria
|
||||
{
|
||||
'columns': u'Delivery Note\x01ID,Delivery Note\x01Project Name,Delivery Note\x01Customer,Delivery Note\x01Customer Name,Delivery Note\x01Posting Date,Delivery Note Item\x01Item Code,Delivery Note Item\x01Item Name,Delivery Note Item\x01Quantity,Delivery Note Item\x01Amount*',
|
||||
'criteria_name': u'Dispatch Report',
|
||||
'doc_type': u'Delivery Note Item',
|
||||
'doctype': 'Search Criteria',
|
||||
'filters': u"{'Delivery Note\x01Saved':1,'Delivery Note\x01Submitted':1,'Delivery Note\x01Status':'Submitted','Delivery Note\x01Fiscal Year':''}",
|
||||
'module': u'Projects',
|
||||
'name': '__common__',
|
||||
'page_len': 50,
|
||||
'parent_doc_type': u'Delivery Note',
|
||||
'sort_by': u'`tabDelivery Note`.`name`',
|
||||
'sort_order': u'DESC',
|
||||
'standard': u'Yes'
|
||||
},
|
||||
|
||||
# Search Criteria, dispatch_report
|
||||
{
|
||||
'doctype': 'Search Criteria',
|
||||
'name': u'dispatch_report'
|
||||
}
|
||||
]
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user