Add color marking to items in group orders that have missing items

This commit is contained in:
Alexander Kirk 2015-05-03 20:05:39 +02:00
parent f049da7573
commit 75967bad22
5 changed files with 40 additions and 4 deletions

View file

@ -43,4 +43,14 @@ module GroupOrdersHelper
{group_order_article: goa, quantity: quantity, tolerance: tolerance, result: result, sub_total: sub_total}
end
def get_missing_units_css_class(quantity_missing)
if ( quantity_missing == 1 )
return 'missing-few';
elsif ( quantity_missing == 0 )
return ''
else
return 'missing-many'
end
end
end