eHealthAfrica/LMIS-Chrome — pull request #500 by thanasio (2014-08-01 08:43:43+00:00)
Title: Defect/stock level graph

stock level graph only shows non zero records now!

in home.js:

if (product.stockLevel <= 0 && filtered.length === 0) {
stockOutWarning.push(uuid);
} else if (product.stockLevel > 0){

values.push({
label: utility.ellipsize(product.name, 7),
stockAboveReorder: inventoryRulesFactory.stockAboveReorder(
product.stockLevel, product.bufferStock
),
stockBelowReorder: inventoryRulesFactory.stockBelowReorder(
product.stockLevel, product.bufferStock
)
});
}

did the job!