removed get_tips() from js file

This commit is contained in:
nabinhait
2011-07-05 14:41:36 +05:30
parent c297df5b16
commit 1bd56b1c08
36 changed files with 68 additions and 78 deletions

View File

@@ -2,9 +2,9 @@
//--------- ONLOAD -------------
cur_frm.cscript.onload = function(doc, cdt, cdn) {
cur_frm.cscript.get_tips(doc, cdt, cdn);
}
cur_frm.cscript.refresh = function(doc, cdt, cdn) {
cur_frm.cscript.get_tips(doc, cdt, cdn);
}

View File

@@ -1,12 +1,12 @@
cur_frm.cscript.onload = function(doc, cdt, cdn) {
cur_frm.cscript.get_tips(doc, cdt, cdn);
if(!doc.price_list) set_multiple(cdt,cdn,{price_list:sys_defaults.price_list_name});
}
cur_frm.cscript.refresh = function(doc, cdt, cdn) {
cur_frm.cscript.get_tips(doc, cdt, cdn);
}
/* Get Item Code */

View File

@@ -127,10 +127,10 @@ class DocType:
# update mar
# -----------
def update_mar(self, d, qty_diff):
if not d[self.label['qty']] and not d[self.label['actual_qty']]:
if not flt(d[self.label['qty']]) and not flt(d[self.label['actual_qty']]):
# seems like a special condition when there is no actual quanitity but there is a rate, may be only for setting a rate!
self.make_sl_entry(1,d,1)
self.make_sl_entry(-1,d,1)
self.make_sl_entry(1,d,1)
self.make_sl_entry(1,d,-1)
else:
self.update_item_valuation_pre_date(d)