Add color marking to items in group orders that have missing items
This commit is contained in:
parent
f049da7573
commit
75967bad22
5 changed files with 40 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue