Added js,py and txt files related to Lease Agreement and its reports
This commit is contained in:
parent
3085b10224
commit
f1353e231d
@ -5,7 +5,7 @@
|
|||||||
{
|
{
|
||||||
'creation': '2010-09-25 10:50:34',
|
'creation': '2010-09-25 10:50:34',
|
||||||
'docstatus': 0,
|
'docstatus': 0,
|
||||||
'modified': '2011-07-27 11:43:40',
|
'modified': '2011-07-28 12:01:10',
|
||||||
'modified_by': 'Administrator',
|
'modified_by': 'Administrator',
|
||||||
'owner': 'Administrator'
|
'owner': 'Administrator'
|
||||||
},
|
},
|
||||||
@ -358,7 +358,7 @@
|
|||||||
# Module Def Item
|
# Module Def Item
|
||||||
{
|
{
|
||||||
'display_name': 'Lease Agreement List',
|
'display_name': 'Lease Agreement List',
|
||||||
'doc_name': 'Lease Agreement List',
|
'doc_name': 'GL Entry',
|
||||||
'doc_type': 'Reports',
|
'doc_type': 'Reports',
|
||||||
'doctype': 'Module Def Item',
|
'doctype': 'Module Def Item',
|
||||||
'idx': 33
|
'idx': 33
|
||||||
@ -367,7 +367,7 @@
|
|||||||
# Module Def Item
|
# Module Def Item
|
||||||
{
|
{
|
||||||
'display_name': 'Lease Monthly Future Installment Inflows',
|
'display_name': 'Lease Monthly Future Installment Inflows',
|
||||||
'doc_name': 'Lease Monthly Future Installment Inflows',
|
'doc_name': 'GL Entry',
|
||||||
'doc_type': 'Reports',
|
'doc_type': 'Reports',
|
||||||
'doctype': 'Module Def Item',
|
'doctype': 'Module Def Item',
|
||||||
'idx': 34
|
'idx': 34
|
||||||
@ -376,7 +376,7 @@
|
|||||||
# Module Def Item
|
# Module Def Item
|
||||||
{
|
{
|
||||||
'display_name': 'Lease Overdue Age Wise',
|
'display_name': 'Lease Overdue Age Wise',
|
||||||
'doc_name': 'Lease Overdue Age Wise',
|
'doc_name': 'GL Entry',
|
||||||
'doc_type': 'Reports',
|
'doc_type': 'Reports',
|
||||||
'doctype': 'Module Def Item',
|
'doctype': 'Module Def Item',
|
||||||
'idx': 35
|
'idx': 35
|
||||||
@ -385,7 +385,7 @@
|
|||||||
# Module Def Item
|
# Module Def Item
|
||||||
{
|
{
|
||||||
'display_name': 'Lease Overdue List',
|
'display_name': 'Lease Overdue List',
|
||||||
'doc_name': 'Lease Overdue List',
|
'doc_name': 'GL Entry',
|
||||||
'doc_type': 'Reports',
|
'doc_type': 'Reports',
|
||||||
'doctype': 'Module Def Item',
|
'doctype': 'Module Def Item',
|
||||||
'idx': 36
|
'idx': 36
|
||||||
@ -394,7 +394,7 @@
|
|||||||
# Module Def Item
|
# Module Def Item
|
||||||
{
|
{
|
||||||
'display_name': 'Lease Receipts Client Wise',
|
'display_name': 'Lease Receipts Client Wise',
|
||||||
'doc_name': 'Lease Receipts Client Wise',
|
'doc_name': 'GL Entry',
|
||||||
'doc_type': 'Reports',
|
'doc_type': 'Reports',
|
||||||
'doctype': 'Module Def Item',
|
'doctype': 'Module Def Item',
|
||||||
'idx': 37
|
'idx': 37
|
||||||
@ -402,8 +402,8 @@
|
|||||||
|
|
||||||
# Module Def Item
|
# Module Def Item
|
||||||
{
|
{
|
||||||
'display_name': 'Lease Receipt Summary Year to Date',
|
'display_name': 'Lease Receipt Summary Month Wise',
|
||||||
'doc_name': 'Lease Receipt Summary Year to Date',
|
'doc_name': 'GL Entry',
|
||||||
'doc_type': 'Reports',
|
'doc_type': 'Reports',
|
||||||
'doctype': 'Module Def Item',
|
'doctype': 'Module Def Item',
|
||||||
'idx': 38
|
'idx': 38
|
||||||
@ -412,7 +412,7 @@
|
|||||||
# Module Def Item
|
# Module Def Item
|
||||||
{
|
{
|
||||||
'display_name': 'Lease Yearly Future Installment Inflows',
|
'display_name': 'Lease Yearly Future Installment Inflows',
|
||||||
'doc_name': 'Lease Yearly Future Installment Inflows',
|
'doc_name': 'GL Entry',
|
||||||
'doc_type': 'Reports',
|
'doc_type': 'Reports',
|
||||||
'doctype': 'Module Def Item',
|
'doctype': 'Module Def Item',
|
||||||
'idx': 39
|
'idx': 39
|
||||||
|
@ -1,5 +1,17 @@
|
|||||||
$.extend(cur_frm.cscript, {
|
$.extend(cur_frm.cscript, {
|
||||||
Generate: function(doc, dt, dn) {
|
Generate: function(doc, dt, dn) {msgprint(doc);
|
||||||
|
if(doc.installment_amount==''){
|
||||||
|
msgprint('Set Installment Amount before generating schedule');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if(doc.no_of_installments==''){
|
||||||
|
msgprint('Set Number of Installments before generating schedule');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if(doc.start_date==''){
|
||||||
|
msgprint('Set Start Date before generating schedule');
|
||||||
|
return;
|
||||||
|
}
|
||||||
cur_frm.cscript.clear_installments(doc);
|
cur_frm.cscript.clear_installments(doc);
|
||||||
tot=0;i=0;
|
tot=0;i=0;
|
||||||
while(tot<flt(doc.invoice_amount)-flt(doc.down_payment)){
|
while(tot<flt(doc.invoice_amount)-flt(doc.down_payment)){
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
{
|
{
|
||||||
'creation': '2011-07-22 17:47:57',
|
'creation': '2011-07-22 17:47:57',
|
||||||
'docstatus': 0,
|
'docstatus': 0,
|
||||||
'modified': '2011-07-27 12:54:48',
|
'modified': '2011-07-27 15:33:55',
|
||||||
'modified_by': 'Administrator',
|
'modified_by': 'Administrator',
|
||||||
'owner': 'Administrator'
|
'owner': 'Administrator'
|
||||||
},
|
},
|
||||||
@ -19,7 +19,7 @@
|
|||||||
'name': '__common__',
|
'name': '__common__',
|
||||||
'section_style': 'Simple',
|
'section_style': 'Simple',
|
||||||
'show_in_menu': 0,
|
'show_in_menu': 0,
|
||||||
'version': 20
|
'version': 21
|
||||||
},
|
},
|
||||||
|
|
||||||
# These values are common for all DocField
|
# These values are common for all DocField
|
||||||
@ -114,7 +114,7 @@
|
|||||||
'fieldname': 'account',
|
'fieldname': 'account',
|
||||||
'fieldtype': 'Link',
|
'fieldtype': 'Link',
|
||||||
'idx': 3,
|
'idx': 3,
|
||||||
'label': 'Account',
|
'label': 'Lessee Account',
|
||||||
'options': 'Account',
|
'options': 'Account',
|
||||||
'permlevel': 0,
|
'permlevel': 0,
|
||||||
'reqd': 1
|
'reqd': 1
|
||||||
|
@ -0,0 +1,11 @@
|
|||||||
|
report.customize_filters = function() {
|
||||||
|
this.hide_all_filters();
|
||||||
|
|
||||||
|
this.add_filter({fieldname:'date', label:'Date', fieldtype:'Date', options:'',ignore : 1, parent:'GL Entry', 'in_first_page':1});
|
||||||
|
|
||||||
|
this.filter_fields_dict['GL Entry'+FILTER_SEP +'From Date'].df['report_default']=sys_defaults.year_start_date;
|
||||||
|
this.filter_fields_dict['GL Entry'+FILTER_SEP +'To Date'].df['report_default']=dateutil.obj_to_str(new Date());
|
||||||
|
}
|
||||||
|
|
||||||
|
$dh(this.mytabs.tabs['More Filters']);
|
||||||
|
$dh(this.mytabs.tabs['Select Columns']);
|
@ -0,0 +1,13 @@
|
|||||||
|
data =[
|
||||||
|
['Agreement No.','Data','100px',''],
|
||||||
|
['Lessee Name','Data','300px',''],
|
||||||
|
['Amount','Currency','120px','']
|
||||||
|
]
|
||||||
|
|
||||||
|
for d in data:
|
||||||
|
colnames.append(d[0])
|
||||||
|
coltypes.append(d[1])
|
||||||
|
colwidths.append(d[2])
|
||||||
|
coloptions.append(d[3])
|
||||||
|
col_idx[d[0]] = len(colnames)-1
|
||||||
|
|
@ -0,0 +1,3 @@
|
|||||||
|
select la.name, la.account, la.invoice_amount
|
||||||
|
from `tabLease Agreement` la
|
||||||
|
where start_date between '%(date)s' and '%(date1)s' order by la.name
|
@ -5,7 +5,7 @@
|
|||||||
{
|
{
|
||||||
'creation': '2011-07-26 17:01:34',
|
'creation': '2011-07-26 17:01:34',
|
||||||
'docstatus': 0,
|
'docstatus': 0,
|
||||||
'modified': '2011-07-26 18:25:54',
|
'modified': '2011-07-28 11:18:26',
|
||||||
'modified_by': 'Administrator',
|
'modified_by': 'Administrator',
|
||||||
'owner': 'Administrator'
|
'owner': 'Administrator'
|
||||||
},
|
},
|
||||||
|
@ -0,0 +1,14 @@
|
|||||||
|
report.customize_filters = function() {
|
||||||
|
this.hide_all_filters();
|
||||||
|
|
||||||
|
this.add_filter({fieldname:'date', label:'Date', fieldtype:'Date', options:'',ignore : 1, parent:'GL Entry', 'in_first_page':1});
|
||||||
|
|
||||||
|
this.filter_fields_dict['GL Entry'+FILTER_SEP +'From Date'].df['report_default']=dateutil.obj_to_str(new Date());
|
||||||
|
// this.filter_fields_dict['GL Entry'+FILTER_SEP +'To Date'].df['report_default']=dateutil.obj_to_str(new Date());
|
||||||
|
|
||||||
|
this.filter_fields_dict['GL Entry'+FILTER_SEP +'To Date'].df.filter_hide=1;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
$dh(this.mytabs.tabs['More Filters']);
|
||||||
|
$dh(this.mytabs.tabs['Select Columns']);
|
@ -0,0 +1,13 @@
|
|||||||
|
data =[
|
||||||
|
['Month','Data','100px',''],
|
||||||
|
['Year','Data','100px',''],
|
||||||
|
['Amount','Currency','120px','']
|
||||||
|
]
|
||||||
|
|
||||||
|
for d in data:
|
||||||
|
colnames.append(d[0])
|
||||||
|
coltypes.append(d[1])
|
||||||
|
colwidths.append(d[2])
|
||||||
|
coloptions.append(d[3])
|
||||||
|
col_idx[d[0]] = len(colnames)-1
|
||||||
|
|
@ -0,0 +1,9 @@
|
|||||||
|
select date_format(due_date,'%M') as mnt,year(due_date),sum(amount)
|
||||||
|
|
||||||
|
from `tabLease Agreement` la,`tabLease Installment` lai
|
||||||
|
|
||||||
|
where la.name=lai.parent and (lai.cheque_date is null or lai.cheque_date > '%(date)s')
|
||||||
|
|
||||||
|
group by date_format(due_date,'%M-%Y')
|
||||||
|
|
||||||
|
order by year(due_date),month(due_date)
|
@ -0,0 +1,14 @@
|
|||||||
|
report.customize_filters = function() {
|
||||||
|
this.hide_all_filters();
|
||||||
|
|
||||||
|
this.add_filter({fieldname:'date', label:'Date', fieldtype:'Date', options:'',ignore : 1, parent:'GL Entry', 'in_first_page':1});
|
||||||
|
|
||||||
|
this.filter_fields_dict['GL Entry'+FILTER_SEP +'From Date'].df['report_default']=dateutil.obj_to_str(new Date());
|
||||||
|
// this.filter_fields_dict['GL Entry'+FILTER_SEP +'To Date'].df['report_default']=dateutil.obj_to_str(new Date());
|
||||||
|
|
||||||
|
this.filter_fields_dict['GL Entry'+FILTER_SEP +'To Date'].df.filter_hide=1;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
$dh(this.mytabs.tabs['More Filters']);
|
||||||
|
$dh(this.mytabs.tabs['Select Columns']);
|
@ -0,0 +1,14 @@
|
|||||||
|
data =[
|
||||||
|
['Agreement No.','Data','100px',''],
|
||||||
|
['Lessee Name','Data','300px',''],
|
||||||
|
['Amount','Currency','120px',''],
|
||||||
|
['Age','Data','100px','']
|
||||||
|
]
|
||||||
|
|
||||||
|
for d in data:
|
||||||
|
colnames.append(d[0])
|
||||||
|
coltypes.append(d[1])
|
||||||
|
colwidths.append(d[2])
|
||||||
|
coloptions.append(d[3])
|
||||||
|
col_idx[d[0]] = len(colnames)-1
|
||||||
|
|
@ -0,0 +1,7 @@
|
|||||||
|
select la.name,la.account,lai.amount,cast('%(date)s' as date)-due_date as age
|
||||||
|
|
||||||
|
from `tabLease Agreement` la,`tabLease Installment` lai
|
||||||
|
|
||||||
|
where la.name=lai.parent and lai.due_date<cast('%(date)s' as date) and (lai.cheque_date is null or lai.cheque_date > cast('%(date)s' as date))
|
||||||
|
|
||||||
|
order by cast('%(date)s' as date)-due_date desc
|
@ -0,0 +1,14 @@
|
|||||||
|
report.customize_filters = function() {
|
||||||
|
this.hide_all_filters();
|
||||||
|
|
||||||
|
this.add_filter({fieldname:'date', label:'Date', fieldtype:'Date', options:'',ignore : 1, parent:'GL Entry', 'in_first_page':1});
|
||||||
|
|
||||||
|
this.filter_fields_dict['GL Entry'+FILTER_SEP +'From Date'].df['report_default']=dateutil.obj_to_str(new Date());
|
||||||
|
// this.filter_fields_dict['GL Entry'+FILTER_SEP +'To Date'].df['report_default']=dateutil.obj_to_str(new Date());
|
||||||
|
|
||||||
|
this.filter_fields_dict['GL Entry'+FILTER_SEP +'To Date'].df.filter_hide=1;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
$dh(this.mytabs.tabs['More Filters']);
|
||||||
|
$dh(this.mytabs.tabs['Select Columns']);
|
@ -0,0 +1,16 @@
|
|||||||
|
data =[
|
||||||
|
['Lessee Name','Data','300px',''],
|
||||||
|
['Below 30 Days','Currency','120px',''],
|
||||||
|
['Below 90 Days','Currency','120px',''],
|
||||||
|
['Below 180 Days','Currency','120px',''],
|
||||||
|
['Below 360 Days','Currency','120px',''],
|
||||||
|
['Above 360 Days','Currency','120px',''],
|
||||||
|
]
|
||||||
|
|
||||||
|
for d in data:
|
||||||
|
colnames.append(d[0])
|
||||||
|
coltypes.append(d[1])
|
||||||
|
colwidths.append(d[2])
|
||||||
|
coloptions.append(d[3])
|
||||||
|
col_idx[d[0]] = len(colnames)-1
|
||||||
|
|
@ -0,0 +1,9 @@
|
|||||||
|
select account,sum(od_30)as od_30,sum(od_90)as od_90,sum(od_180)as od_180,sum(od_360)as od_360,sum(od_1yr)as od_1yr from
|
||||||
|
(
|
||||||
|
select account,case when age<=30 then amount end as od_30,case when age between 31 and 90 then amount end as od_90,case when age between 91 and 180 then amount end as od_180,case when age between 181 and 360 then amount end as od_360,case when age>360 then amount end as od_1yr from
|
||||||
|
(
|
||||||
|
select la.account,lai.amount,cast('%(date)s' as date)-due_date as age
|
||||||
|
from `tabLease Agreement` la,`tabLease Installment` lai
|
||||||
|
where la.name=lai.parent and lai.due_date<'%(date)s' and (lai.cheque_date is null or lai.cheque_date > '%(date)s')
|
||||||
|
)a
|
||||||
|
)b group by account order by account
|
@ -0,0 +1,11 @@
|
|||||||
|
report.customize_filters = function() {
|
||||||
|
this.hide_all_filters();
|
||||||
|
|
||||||
|
this.add_filter({fieldname:'date', label:'Date', fieldtype:'Date', options:'',ignore : 1, parent:'GL Entry', 'in_first_page':1});
|
||||||
|
|
||||||
|
this.filter_fields_dict['GL Entry'+FILTER_SEP +'From Date'].df['report_default']=sys_defaults.year_start_date;
|
||||||
|
this.filter_fields_dict['GL Entry'+FILTER_SEP +'To Date'].df['report_default']=dateutil.obj_to_str(new Date());
|
||||||
|
}
|
||||||
|
|
||||||
|
$dh(this.mytabs.tabs['More Filters']);
|
||||||
|
$dh(this.mytabs.tabs['Select Columns']);
|
@ -0,0 +1,13 @@
|
|||||||
|
data =[
|
||||||
|
['Month','Data','100px',''],
|
||||||
|
['Year','Data','100px',''],
|
||||||
|
['Amount','Currency','120px','']
|
||||||
|
]
|
||||||
|
|
||||||
|
for d in data:
|
||||||
|
colnames.append(d[0])
|
||||||
|
coltypes.append(d[1])
|
||||||
|
colwidths.append(d[2])
|
||||||
|
coloptions.append(d[3])
|
||||||
|
col_idx[d[0]] = len(colnames)-1
|
||||||
|
|
@ -0,0 +1,5 @@
|
|||||||
|
SELECT date_format(gl.posting_date,'%M'),year(gl.posting_date),sum(gl.credit) as amount
|
||||||
|
FROM `tabGL Entry` gl, `tabAccount` a
|
||||||
|
WHERE gl.account=a.name and a.master_type='Customer' and gl.credit>0 and gl.posting_date between '%(date)s' and '%(date1)s'
|
||||||
|
GROUP BY month(gl.posting_date),year(gl.posting_date)
|
||||||
|
ORDER BY year(gl.posting_date),month(gl.posting_date)
|
@ -1,11 +1,11 @@
|
|||||||
# Search Criteria, lease_receipt_summary_year_to_date
|
# Search Criteria, lease_receipt_summary_month_wise
|
||||||
[
|
[
|
||||||
|
|
||||||
# These values are common in all dictionaries
|
# These values are common in all dictionaries
|
||||||
{
|
{
|
||||||
'creation': '2011-07-26 18:06:32',
|
'creation': '2011-07-27 18:48:29',
|
||||||
'docstatus': 0,
|
'docstatus': 0,
|
||||||
'modified': '2011-07-26 18:27:43',
|
'modified': '2011-07-28 09:59:51',
|
||||||
'modified_by': 'Administrator',
|
'modified_by': 'Administrator',
|
||||||
'owner': 'Administrator'
|
'owner': 'Administrator'
|
||||||
},
|
},
|
||||||
@ -13,21 +13,18 @@
|
|||||||
# These values are common for all Search Criteria
|
# These values are common for all Search Criteria
|
||||||
{
|
{
|
||||||
'columns': 'GL Entry\x01ID,GL Entry\x01Owner,GL Entry\x01Posting Date,GL Entry\x01Aging Date,GL Entry\x01Account,GL Entry\x01Cost Center,GL Entry\x01Against,GL Entry\x01Against Voucher,GL Entry\x01Voucher Type,GL Entry\x01Voucher No,GL Entry\x01Remarks,GL Entry\x01Is Cancelled,GL Entry\x01Is Opening,GL Entry\x01Fiscal Year,GL Entry\x01Company',
|
'columns': 'GL Entry\x01ID,GL Entry\x01Owner,GL Entry\x01Posting Date,GL Entry\x01Aging Date,GL Entry\x01Account,GL Entry\x01Cost Center,GL Entry\x01Against,GL Entry\x01Against Voucher,GL Entry\x01Voucher Type,GL Entry\x01Voucher No,GL Entry\x01Remarks,GL Entry\x01Is Cancelled,GL Entry\x01Is Opening,GL Entry\x01Fiscal Year,GL Entry\x01Company',
|
||||||
'criteria_name': 'Lease Receipt Summary (Year to date)',
|
'criteria_name': 'Lease Receipt Summary Month Wise',
|
||||||
'doc_type': 'GL Entry',
|
'doc_type': 'GL Entry',
|
||||||
'doctype': 'Search Criteria',
|
'doctype': 'Search Criteria',
|
||||||
'filters': "{'GL Entry\x01Voucher Type':'','GL Entry\x01Is Cancelled':'','GL Entry\x01Is Opening':'','GL Entry\x01Fiscal Year':''}",
|
'filters': "{'GL Entry\x01Voucher Type':'','GL Entry\x01Is Cancelled':'','GL Entry\x01Is Opening':'','GL Entry\x01Fiscal Year':''}",
|
||||||
'module': 'Accounts',
|
'module': 'Accounts',
|
||||||
'name': '__common__',
|
'name': '__common__',
|
||||||
'page_len': 50,
|
|
||||||
'sort_by': '`tabGL Entry`.`company`',
|
|
||||||
'sort_order': 'DESC',
|
|
||||||
'standard': 'Yes'
|
'standard': 'Yes'
|
||||||
},
|
},
|
||||||
|
|
||||||
# Search Criteria, lease_receipt_summary_year_to_date
|
# Search Criteria, lease_receipt_summary_month_wise
|
||||||
{
|
{
|
||||||
'doctype': 'Search Criteria',
|
'doctype': 'Search Criteria',
|
||||||
'name': 'lease_receipt_summary_year_to_date'
|
'name': 'lease_receipt_summary_month_wise'
|
||||||
}
|
}
|
||||||
]
|
]
|
@ -0,0 +1,11 @@
|
|||||||
|
report.customize_filters = function() {
|
||||||
|
this.hide_all_filters();
|
||||||
|
|
||||||
|
this.add_filter({fieldname:'date', label:'Date', fieldtype:'Date', options:'',ignore : 1, parent:'GL Entry', 'in_first_page':1});
|
||||||
|
|
||||||
|
this.filter_fields_dict['GL Entry'+FILTER_SEP +'From Date'].df['report_default']=sys_defaults.year_start_date;
|
||||||
|
this.filter_fields_dict['GL Entry'+FILTER_SEP +'To Date'].df['report_default']=dateutil.obj_to_str(new Date());
|
||||||
|
}
|
||||||
|
|
||||||
|
$dh(this.mytabs.tabs['More Filters']);
|
||||||
|
$dh(this.mytabs.tabs['Select Columns']);
|
@ -0,0 +1,12 @@
|
|||||||
|
data =[
|
||||||
|
['Lessee Name','Data','300px',''],
|
||||||
|
['Amount','Currency','120px','']
|
||||||
|
]
|
||||||
|
|
||||||
|
for d in data:
|
||||||
|
colnames.append(d[0])
|
||||||
|
coltypes.append(d[1])
|
||||||
|
colwidths.append(d[2])
|
||||||
|
coloptions.append(d[3])
|
||||||
|
col_idx[d[0]] = len(colnames)-1
|
||||||
|
|
@ -0,0 +1,5 @@
|
|||||||
|
SELECT gl.account,sum(gl.credit) as amount
|
||||||
|
FROM `tabGL Entry` gl, `tabAccount` a
|
||||||
|
WHERE gl.account=a.name and a.master_type='Customer' and gl.posting_date between '%(date)s' and '%(date1)s'
|
||||||
|
GROUP BY gl.account
|
||||||
|
ORDER BY posting_date
|
@ -3,9 +3,9 @@
|
|||||||
|
|
||||||
# These values are common in all dictionaries
|
# These values are common in all dictionaries
|
||||||
{
|
{
|
||||||
'creation': '2011-07-26 18:12:22',
|
'creation': '2011-07-28 12:13:41',
|
||||||
'docstatus': 0,
|
'docstatus': 0,
|
||||||
'modified': '2011-07-26 18:27:18',
|
'modified': '2011-07-28 12:16:13',
|
||||||
'modified_by': 'Administrator',
|
'modified_by': 'Administrator',
|
||||||
'owner': 'Administrator'
|
'owner': 'Administrator'
|
||||||
},
|
},
|
||||||
@ -13,12 +13,13 @@
|
|||||||
# These values are common for all Search Criteria
|
# These values are common for all Search Criteria
|
||||||
{
|
{
|
||||||
'columns': 'GL Entry\x01ID,GL Entry\x01Owner,GL Entry\x01Posting Date,GL Entry\x01Aging Date,GL Entry\x01Account,GL Entry\x01Cost Center,GL Entry\x01Against,GL Entry\x01Against Voucher,GL Entry\x01Voucher Type,GL Entry\x01Voucher No,GL Entry\x01Remarks,GL Entry\x01Is Cancelled,GL Entry\x01Is Opening,GL Entry\x01Fiscal Year,GL Entry\x01Company',
|
'columns': 'GL Entry\x01ID,GL Entry\x01Owner,GL Entry\x01Posting Date,GL Entry\x01Aging Date,GL Entry\x01Account,GL Entry\x01Cost Center,GL Entry\x01Against,GL Entry\x01Against Voucher,GL Entry\x01Voucher Type,GL Entry\x01Voucher No,GL Entry\x01Remarks,GL Entry\x01Is Cancelled,GL Entry\x01Is Opening,GL Entry\x01Fiscal Year,GL Entry\x01Company',
|
||||||
'criteria_name': 'Lease Receipts Client wise',
|
'criteria_name': 'Lease Receipts Client Wise',
|
||||||
'doc_type': 'GL Entry',
|
'doc_type': 'GL Entry',
|
||||||
'doctype': 'Search Criteria',
|
'doctype': 'Search Criteria',
|
||||||
'filters': "{'GL Entry\x01Voucher Type':'','GL Entry\x01Is Cancelled':'','GL Entry\x01Is Opening':'','GL Entry\x01Fiscal Year':''}",
|
'filters': "{'GL Entry\x01Voucher Type':'','GL Entry\x01Is Cancelled':'','GL Entry\x01Is Opening':'','GL Entry\x01Fiscal Year':''}",
|
||||||
'module': 'Accounts',
|
'module': 'Accounts',
|
||||||
'name': '__common__',
|
'name': '__common__',
|
||||||
|
'page_len': 50,
|
||||||
'standard': 'Yes'
|
'standard': 'Yes'
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -0,0 +1,14 @@
|
|||||||
|
report.customize_filters = function() {
|
||||||
|
this.hide_all_filters();
|
||||||
|
|
||||||
|
this.add_filter({fieldname:'date', label:'Date', fieldtype:'Date', options:'',ignore : 1, parent:'GL Entry', 'in_first_page':1});
|
||||||
|
|
||||||
|
this.filter_fields_dict['GL Entry'+FILTER_SEP +'From Date'].df['report_default']=dateutil.obj_to_str(new Date());
|
||||||
|
// this.filter_fields_dict['GL Entry'+FILTER_SEP +'To Date'].df['report_default']=dateutil.obj_to_str(new Date());
|
||||||
|
|
||||||
|
this.filter_fields_dict['GL Entry'+FILTER_SEP +'To Date'].df.filter_hide=1;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
$dh(this.mytabs.tabs['More Filters']);
|
||||||
|
$dh(this.mytabs.tabs['Select Columns']);
|
@ -0,0 +1,12 @@
|
|||||||
|
data =[
|
||||||
|
['Year','Data','100px',''],
|
||||||
|
['Amount','Currency','120px','']
|
||||||
|
]
|
||||||
|
|
||||||
|
for d in data:
|
||||||
|
colnames.append(d[0])
|
||||||
|
coltypes.append(d[1])
|
||||||
|
colwidths.append(d[2])
|
||||||
|
coloptions.append(d[3])
|
||||||
|
col_idx[d[0]] = len(colnames)-1
|
||||||
|
|
@ -0,0 +1,9 @@
|
|||||||
|
select year(date_sub(due_date,interval 6 MONTH)) as yr,sum(amount)
|
||||||
|
|
||||||
|
from `tabLease Agreement` la,`tabLease Installment` lai
|
||||||
|
|
||||||
|
where la.name=lai.parent and (lai.cheque_date is null or lai.cheque_date > '%(date)s')
|
||||||
|
|
||||||
|
group by year(date_sub(due_date,interval 6 MONTH))
|
||||||
|
|
||||||
|
order by yr
|
Loading…
x
Reference in New Issue
Block a user