mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-09 16:12:53 +00:00
restructured erpnext and deleted unwanted
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
report.customize_filters = function() {
|
||||
this.filter_fields_dict['Delivery Note'+FILTER_SEP +'From Voucher Date'].df['report_default'] = sys_defaults.year_start_date;
|
||||
this.filter_fields_dict['Delivery Note'+FILTER_SEP +'To Voucher Date'].df['report_default'] = dateutil.obj_to_str(new Date());
|
||||
this.filter_fields_dict['Delivery Note'+FILTER_SEP +'From Posting Date'].df['report_default'] = sys_defaults.year_start_date;
|
||||
this.filter_fields_dict['Delivery Note'+FILTER_SEP +'To Posting Date'].df['report_default'] = dateutil.obj_to_str(new Date());
|
||||
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
out=[]
|
||||
qty,amt,bil_qty=0,0,0
|
||||
|
||||
for r in res:
|
||||
qty += flt(r[col_idx['Quantity']])
|
||||
amt += flt(r[col_idx['Amount*']])
|
||||
bil_qty += flt(r[col_idx['Billed Qty']])
|
||||
out.append(r)
|
||||
|
||||
|
||||
#Add the totals row
|
||||
l_row = ['' for i in range(len(colnames))]
|
||||
l_row[col_idx['Item Name']] = '<b>TOTALS</b>'
|
||||
l_row[col_idx['Quantity']] = qty
|
||||
l_row[col_idx['Amount*']] = amt
|
||||
l_row[col_idx['Billed Qty']] = bil_qty
|
||||
out.append(l_row)
|
||||
@@ -0,0 +1,37 @@
|
||||
[
|
||||
{
|
||||
'add_col': None,
|
||||
'add_cond': None,
|
||||
'add_tab': None,
|
||||
'columns': 'Delivery Note\x01ID,Delivery Note Detail\x01Item Code,Delivery Note Detail\x01Item Name,Delivery Note Detail\x01Quantity,Delivery Note Detail\x01Rate*,Delivery Note Detail\x01Amount*,Delivery Note Detail\x01Billed Qty,Delivery Note\x01Company',
|
||||
'creation': '2010-11-10 15:04:42',
|
||||
'criteria_name': 'Itemwise Delivery Details',
|
||||
'custom_query': '',
|
||||
'description': None,
|
||||
'dis_filters': None,
|
||||
'disabled': None,
|
||||
'doc_type': 'Delivery Note Detail',
|
||||
'docstatus': 0,
|
||||
'doctype': 'Search Criteria',
|
||||
'filters': "{'Delivery Note\x01Submitted':1,'Delivery Note\x01Status':'','Delivery Note\x01From Voucher Date\x01lower':'','Delivery Note\x01To Voucher Date\x01upper':'','Delivery Note\x01Fiscal Year':''}",
|
||||
'graph_series': None,
|
||||
'graph_values': None,
|
||||
'group_by': None,
|
||||
'idx': None,
|
||||
'modified': '2010-10-26 09:10:53',
|
||||
'modified_by': 'Administrator',
|
||||
'module': 'CRM',
|
||||
'name': 'itemwise_delivery_details',
|
||||
'owner': 'Administrator',
|
||||
'page_len': 50,
|
||||
'parent': None,
|
||||
'parent_doc_type': 'Delivery Note',
|
||||
'parentfield': None,
|
||||
'parenttype': None,
|
||||
'report_script': None,
|
||||
'server_script': None,
|
||||
'sort_by': '`tabDelivery Note`.`name`',
|
||||
'sort_order': 'DESC',
|
||||
'standard': 'Yes'
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user