Merge branch 'shf_rename' of github.com:webnotes/erpnext into shf_rename
This commit is contained in:
commit
22cd09beb3
@ -145,7 +145,7 @@ cur_frm.fields_dict['lead'].get_query = function(doc,cdt,cdn){
|
|||||||
|
|
||||||
cur_frm.cscript.lead = function(doc, cdt, cdn) {
|
cur_frm.cscript.lead = function(doc, cdt, cdn) {
|
||||||
if(doc.lead) {
|
if(doc.lead) {
|
||||||
get_server_fields('get_lead_details', doc.lead,'', doc, cdt, cdn, 1, callback);
|
get_server_fields('get_lead_details', doc.lead,'', doc, cdt, cdn, 1);
|
||||||
unhide_field('territory');
|
unhide_field('territory');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -15,9 +15,7 @@
|
|||||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
report.customize_filters = function() {
|
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 +'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());
|
this.filter_fields_dict['Delivery Note'+FILTER_SEP +'To Posting Date'].df['report_default'] = dateutil.obj_to_str(new Date());
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -15,12 +15,12 @@
|
|||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
out=[]
|
out=[]
|
||||||
qty,amt,bil_qty=0,0,0
|
qty,amt,bill_amt=0,0,0
|
||||||
|
|
||||||
for r in res:
|
for r in res:
|
||||||
qty += flt(r[col_idx['Quantity']])
|
qty += flt(r[col_idx['Quantity']])
|
||||||
amt += flt(r[col_idx['Amount*']])
|
amt += flt(r[col_idx['Amount*']])
|
||||||
bil_qty += flt(r[col_idx['Billed Qty']])
|
bill_amt += flt(r[col_idx['Billed Amt']])
|
||||||
out.append(r)
|
out.append(r)
|
||||||
|
|
||||||
|
|
||||||
@ -29,5 +29,5 @@ l_row = ['' for i in range(len(colnames))]
|
|||||||
l_row[col_idx['Item Name']] = '<b>TOTALS</b>'
|
l_row[col_idx['Item Name']] = '<b>TOTALS</b>'
|
||||||
l_row[col_idx['Quantity']] = qty
|
l_row[col_idx['Quantity']] = qty
|
||||||
l_row[col_idx['Amount*']] = amt
|
l_row[col_idx['Amount*']] = amt
|
||||||
l_row[col_idx['Billed Qty']] = bil_qty
|
l_row[col_idx['Billed Amt']] = bill_amt
|
||||||
out.append(l_row)
|
out.append(l_row)
|
||||||
|
@ -3,20 +3,20 @@
|
|||||||
|
|
||||||
# These values are common in all dictionaries
|
# These values are common in all dictionaries
|
||||||
{
|
{
|
||||||
'creation': '2012-04-03 12:49:51',
|
'creation': '2012-04-23 12:46:00',
|
||||||
'docstatus': 0,
|
'docstatus': 0,
|
||||||
'modified': '2012-04-03 12:49:51',
|
'modified': '2012-05-03 18:13:49',
|
||||||
'modified_by': u'Administrator',
|
'modified_by': u'Administrator',
|
||||||
'owner': u'Administrator'
|
'owner': u'Administrator'
|
||||||
},
|
},
|
||||||
|
|
||||||
# These values are common for all Search Criteria
|
# These values are common for all Search Criteria
|
||||||
{
|
{
|
||||||
'columns': u'Delivery Note\x01ID,Delivery Note Item\x01Item Code,Delivery Note Item\x01Item Name,Delivery Note Item\x01Quantity,Delivery Note Item\x01Rate*,Delivery Note Item\x01Amount*,Delivery Note Item\x01Billed Qty,Delivery Note\x01Company',
|
'columns': u'Delivery Note\x01ID,Delivery Note Item\x01Item Code,Delivery Note Item\x01Item Name,Delivery Note Item\x01Quantity,Delivery Note Item\x01Rate*,Delivery Note Item\x01Amount*,Delivery Note Item\x01Billed Amt',
|
||||||
'criteria_name': u'Itemwise Delivery Details',
|
'criteria_name': u'Itemwise Delivery Details',
|
||||||
'doc_type': u'Delivery Note Item',
|
'doc_type': u'Delivery Note Item',
|
||||||
'doctype': 'Search Criteria',
|
'doctype': 'Search Criteria',
|
||||||
'filters': u"{'Delivery Note\x01Submitted':1,'Delivery Note\x01Status':'','Delivery Note\x01From Voucher Date\x01lower':'','Delivery Note\x01To Voucher Date\x01upper':'','Delivery Note\x01Fiscal Year':''}",
|
'filters': u'{"Delivery Note\\u0001Submitted":1,"Delivery Note\\u0001Status":[""],"Delivery Note\\u0001Fiscal Year":[""]}',
|
||||||
'module': u'Selling',
|
'module': u'Selling',
|
||||||
'name': '__common__',
|
'name': '__common__',
|
||||||
'page_len': 50,
|
'page_len': 50,
|
||||||
|
@ -15,13 +15,13 @@
|
|||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
out=[]
|
out=[]
|
||||||
qty,amt,del_qty,bil_qty=0,0,0,0
|
qty,amt,del_qty,bill_amt=0,0,0,0
|
||||||
|
|
||||||
for r in res:
|
for r in res:
|
||||||
qty += flt(r[col_idx['Quantity']])
|
qty += flt(r[col_idx['Quantity']])
|
||||||
amt += flt(r[col_idx['Amount*']])
|
amt += flt(r[col_idx['Amount*']])
|
||||||
del_qty += flt(r[col_idx['Delivered Qty']])
|
del_qty += flt(r[col_idx['Delivered Qty']])
|
||||||
bil_qty += flt(r[col_idx['Billed Qty']])
|
bill_amt += flt(r[col_idx['Billed Amt']])
|
||||||
out.append(r)
|
out.append(r)
|
||||||
|
|
||||||
|
|
||||||
@ -31,5 +31,5 @@ l_row[col_idx['Item Name']] = '<b>TOTALS</b>'
|
|||||||
l_row[col_idx['Quantity']] = qty
|
l_row[col_idx['Quantity']] = qty
|
||||||
l_row[col_idx['Amount*']] = amt
|
l_row[col_idx['Amount*']] = amt
|
||||||
l_row[col_idx['Delivered Qty']] = del_qty
|
l_row[col_idx['Delivered Qty']] = del_qty
|
||||||
l_row[col_idx['Billed Qty']] = bil_qty
|
l_row[col_idx['Billed Amt']] = bill_amt
|
||||||
out.append(l_row)
|
out.append(l_row)
|
||||||
|
@ -3,20 +3,20 @@
|
|||||||
|
|
||||||
# These values are common in all dictionaries
|
# These values are common in all dictionaries
|
||||||
{
|
{
|
||||||
'creation': '2012-04-03 12:49:51',
|
'creation': '2012-04-23 12:46:00',
|
||||||
'docstatus': 0,
|
'docstatus': 0,
|
||||||
'modified': '2012-04-03 12:49:51',
|
'modified': '2012-05-03 18:18:31',
|
||||||
'modified_by': u'Administrator',
|
'modified_by': u'Administrator',
|
||||||
'owner': u'Administrator'
|
'owner': u'Administrator'
|
||||||
},
|
},
|
||||||
|
|
||||||
# These values are common for all Search Criteria
|
# These values are common for all Search Criteria
|
||||||
{
|
{
|
||||||
'columns': u'Sales Order\x01ID,Sales Order\x01Customer,Sales Order Item\x01Item Code,Sales Order Item\x01Item Name,Sales Order Item\x01Quantity,Sales Order Item\x01Basic Rate*,Sales Order Item\x01Amount*,Sales Order Item\x01Delivered Qty,Sales Order Item\x01Billed Qty,Sales Order\x01Company',
|
'columns': u'Sales Order\x01ID,Sales Order\x01Customer,Sales Order Item\x01Item Code,Sales Order Item\x01Item Name,Sales Order Item\x01Quantity,Sales Order Item\x01Basic Rate*,Sales Order Item\x01Amount*,Sales Order Item\x01Delivered Qty,Sales Order Item\x01Billed Amt',
|
||||||
'criteria_name': u'Itemwise Sales Details',
|
'criteria_name': u'Itemwise Sales Details',
|
||||||
'doc_type': u'Sales Order Item',
|
'doc_type': u'Sales Order Item',
|
||||||
'doctype': 'Search Criteria',
|
'doctype': 'Search Criteria',
|
||||||
'filters': u"{'Sales Order\x01Submitted':1,'Sales Order\x01Status':'','Sales Order\x01Fiscal Year':''}",
|
'filters': u'{"Sales Order\\u0001Submitted":1,"Sales Order\\u0001Fiscal Year":[""],"Sales Order\\u0001Status":[""]}',
|
||||||
'module': u'Selling',
|
'module': u'Selling',
|
||||||
'name': '__common__',
|
'name': '__common__',
|
||||||
'page_len': 50,
|
'page_len': 50,
|
||||||
|
@ -3,9 +3,9 @@
|
|||||||
|
|
||||||
# These values are common in all dictionaries
|
# These values are common in all dictionaries
|
||||||
{
|
{
|
||||||
'creation': '2012-04-16 15:08:16',
|
'creation': '2012-05-03 11:12:49',
|
||||||
'docstatus': 0,
|
'docstatus': 0,
|
||||||
'modified': '2012-05-01 15:52:31',
|
'modified': '2012-05-03 18:08:43',
|
||||||
'modified_by': u'Administrator',
|
'modified_by': u'Administrator',
|
||||||
'owner': u'Administrator'
|
'owner': u'Administrator'
|
||||||
},
|
},
|
||||||
@ -277,7 +277,7 @@
|
|||||||
'fieldtype': u'Link',
|
'fieldtype': u'Link',
|
||||||
'hidden': 1,
|
'hidden': 1,
|
||||||
'label': u'Sales Invoice No',
|
'label': u'Sales Invoice No',
|
||||||
'options': u'Receivable Voucher',
|
'options': u'Sales Invoice',
|
||||||
'permlevel': 0,
|
'permlevel': 0,
|
||||||
'print_hide': 1
|
'print_hide': 1
|
||||||
},
|
},
|
||||||
@ -333,7 +333,7 @@
|
|||||||
'fieldname': u'bom_no',
|
'fieldname': u'bom_no',
|
||||||
'fieldtype': u'Link',
|
'fieldtype': u'Link',
|
||||||
'label': u'BOM No',
|
'label': u'BOM No',
|
||||||
'options': u'Bill Of Materials',
|
'options': u'BOM',
|
||||||
'permlevel': 0
|
'permlevel': 0
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -839,7 +839,7 @@ if(this.txt){try{this.txt.focus();}catch(e){}
|
|||||||
this.txt.field_object=this;}}
|
this.txt.field_object=this;}}
|
||||||
function DataField(){}DataField.prototype=new Field();DataField.prototype.make_input=function(){var me=this;this.input=$a_input(this.input_area,this.df.fieldtype=='Password'?'password':'text');this.get_value=function(){var v=this.input.value;if(this.validate)
|
function DataField(){}DataField.prototype=new Field();DataField.prototype.make_input=function(){var me=this;this.input=$a_input(this.input_area,this.df.fieldtype=='Password'?'password':'text');this.get_value=function(){var v=this.input.value;if(this.validate)
|
||||||
v=this.validate(v);return v;}
|
v=this.validate(v);return v;}
|
||||||
this.input.name=this.df.fieldname;$(this.input).change(function(){me.set_value(me.get_value&&me.get_value()||$(this.input).val());});this.set_value=function(val){if(!me.last_value)me.last_value='';if(me.validate){val=me.validate(val);me.input.value=val;}
|
this.input.name=this.df.fieldname;$(this.input).change(function(){me.set_value(me.get_value&&me.get_value()||$(this.input).val());});this.set_value=function(val){if(!me.last_value)me.last_value='';if(me.validate){val=me.validate(val);me.input.value=val==undefined?'':val;}
|
||||||
me.set(val);if(me.format_input)
|
me.set(val);if(me.format_input)
|
||||||
me.format_input();if(in_list(['Currency','Float','Int'],me.df.fieldtype)){if(flt(me.last_value)==flt(val)){me.last_value=val;return;}}
|
me.format_input();if(in_list(['Currency','Float','Int'],me.df.fieldtype)){if(flt(me.last_value)==flt(val)){me.last_value=val;return;}}
|
||||||
me.last_value=val;me.run_trigger();}
|
me.last_value=val;me.run_trigger();}
|
||||||
@ -1530,7 +1530,7 @@ if(this.txt){try{this.txt.focus();}catch(e){}
|
|||||||
this.txt.field_object=this;}}
|
this.txt.field_object=this;}}
|
||||||
function DataField(){}DataField.prototype=new Field();DataField.prototype.make_input=function(){var me=this;this.input=$a_input(this.input_area,this.df.fieldtype=='Password'?'password':'text');this.get_value=function(){var v=this.input.value;if(this.validate)
|
function DataField(){}DataField.prototype=new Field();DataField.prototype.make_input=function(){var me=this;this.input=$a_input(this.input_area,this.df.fieldtype=='Password'?'password':'text');this.get_value=function(){var v=this.input.value;if(this.validate)
|
||||||
v=this.validate(v);return v;}
|
v=this.validate(v);return v;}
|
||||||
this.input.name=this.df.fieldname;$(this.input).change(function(){me.set_value(me.get_value&&me.get_value()||$(this.input).val());});this.set_value=function(val){if(!me.last_value)me.last_value='';if(me.validate){val=me.validate(val);me.input.value=val;}
|
this.input.name=this.df.fieldname;$(this.input).change(function(){me.set_value(me.get_value&&me.get_value()||$(this.input).val());});this.set_value=function(val){if(!me.last_value)me.last_value='';if(me.validate){val=me.validate(val);me.input.value=val==undefined?'':val;}
|
||||||
me.set(val);if(me.format_input)
|
me.set(val);if(me.format_input)
|
||||||
me.format_input();if(in_list(['Currency','Float','Int'],me.df.fieldtype)){if(flt(me.last_value)==flt(val)){me.last_value=val;return;}}
|
me.format_input();if(in_list(['Currency','Float','Int'],me.df.fieldtype)){if(flt(me.last_value)==flt(val)){me.last_value=val;return;}}
|
||||||
me.last_value=val;me.run_trigger();}
|
me.last_value=val;me.run_trigger();}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user