diff --git a/erpnext/projects/doctype/timesheet/timesheet.js b/erpnext/projects/doctype/timesheet/timesheet.js index 0eabb3921f7..8692440dfa1 100644 --- a/erpnext/projects/doctype/timesheet/timesheet.js +++ b/erpnext/projects/doctype/timesheet/timesheet.js @@ -42,12 +42,12 @@ frappe.ui.form.on("Timesheet", { if(frm.doc.docstatus==1) { if(frm.doc.per_billed < 100 && frm.doc.total_billable_hours && frm.doc.total_billable_hours > frm.doc.total_billed_hours){ frm.add_custom_button(__('Create Sales Invoice'), function() { frm.trigger("make_invoice") }, - "fa fa-file-alt"); + "fa fa-file-text"); } if(!frm.doc.salary_slip && frm.doc.employee){ frm.add_custom_button(__('Create Salary Slip'), function() { frm.trigger("make_salary_slip") }, - "fa fa-file-alt"); + "fa fa-file-text"); } } diff --git a/erpnext/stock/get_item_details.py b/erpnext/stock/get_item_details.py index 692fe5d0fbe..4910c428ee3 100644 --- a/erpnext/stock/get_item_details.py +++ b/erpnext/stock/get_item_details.py @@ -252,8 +252,8 @@ def get_basic_details(args, item): item.get("taxes")))), "uom": args.uom, "min_order_qty": flt(item.min_order_qty) if args.doctype == "Material Request" else "", - "qty": args.qty or 1.0, - "stock_qty": args.qty or 1.0, + "qty": flt(args.qty) or 1.0, + "stock_qty": flt(args.qty) or 1.0, "price_list_rate": 0.0, "base_price_list_rate": 0.0, "rate": 0.0,