[fix] [minor] null issue

This commit is contained in:
Nabin Hait 2013-07-31 17:31:23 +05:30
parent 0fa631944c
commit 2d57e51112
2 changed files with 3 additions and 3 deletions

View File

@ -153,7 +153,7 @@ def _get_price_list_rate(args, item_bean, meta):
from utilities.transaction_base import validate_currency
validate_currency(args, item_bean.doc, meta)
return {"ref_rate": flt(base_ref_rate[0].ref_rate * args.plc_conversion_rate / args.conversion_rate)}
return {"ref_rate": flt(base_ref_rate[0].ref_rate) * flt(args.plc_conversion_rate) / flt(args.conversion_rate)}
def _get_item_discount(item_group, customer):
parent_item_groups = [x[0] for x in webnotes.conn.sql("""SELECT parent.name

View File

@ -2,7 +2,7 @@
{
"creation": "2013-05-02 16:29:48",
"docstatus": 0,
"modified": "2013-07-10 14:54:09",
"modified": "2013-07-31 17:30:34",
"modified_by": "Administrator",
"owner": "Administrator"
},
@ -49,7 +49,7 @@
"oldfieldname": "ref_rate",
"oldfieldtype": "Currency",
"options": "ref_currency",
"reqd": 0,
"reqd": 1,
"search_index": 0
},
{