Merge branch 'develop' of https://github.com/frappe/erpnext into email_digest
This commit is contained in:
commit
2e9c2ff545
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user