// Copyright (c) 2017, SolutionERP LLC and contributors
// For license information, please see license.txt

/* global xhiveframework, __ */

xhiveframework.listview_settings["Supplier Scorecard"] = {
	add_fields: ["indicator_color", "status"],
	get_indicator: function(doc) {

		if (doc.indicator_color) {
			return [__(doc.status), doc.indicator_color.toLowerCase(), "status,=," + doc.status];
		} else {
			return [__("Unknown"), "gray", "status,=,''"];
		}
	},

};
