Merge branch 'develop' into drop-shipping
This commit is contained in:
commit
8339987cf1
@ -290,4 +290,8 @@ def rename_temporarily_named_docs(doctype):
|
||||
oldname = doc.name
|
||||
set_name_from_naming_options(frappe.get_meta(doctype).autoname, doc)
|
||||
newname = doc.name
|
||||
frappe.db.sql("""UPDATE `tab{}` SET name = %s, to_rename = 0 where name = %s""".format(doctype), (newname, oldname))
|
||||
frappe.db.sql(
|
||||
"UPDATE `tab{}` SET name = %s, to_rename = 0 where name = %s".format(doctype),
|
||||
(newname, oldname),
|
||||
auto_commit=True
|
||||
)
|
||||
|
@ -110,7 +110,7 @@ def get_item_details(args, doc=None, for_validate=False, overwrite_warehouse=Tru
|
||||
get_gross_profit(out)
|
||||
if args.doctype == 'Material Request':
|
||||
out.rate = args.rate or out.price_list_rate
|
||||
out.amount = flt(args.qty * out.rate)
|
||||
out.amount = flt(args.qty) * flt(out.rate)
|
||||
|
||||
return out
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user