2d0c163f13
see https://github.com/foodcoops/foodsoft/pull/907 for reference and original work by viehlieb Co-authored-by: viehlieb <pf@pragma-shift.net> fix PDF Pdf make explicit deposit in invoices work add ordergroupname to invoice file name mark bold sum for vat exempt foodcoops download multiple group order invoice as zip
24 lines
1 KiB
Text
24 lines
1 KiB
Text
%dl
|
|
%dt= heading_helper(Ordergroup, :description) + ':'
|
|
%dd=h group.description
|
|
- if group.is_a?(Ordergroup) and (@current_user.role_admin? or @current_user.role_finance?)
|
|
%dt= heading_helper(Ordergroup, :contact) + ':'
|
|
%dd=h group.contact
|
|
%dt= heading_helper(Ordergroup, :contact_address) + ':'
|
|
%dd= link_to_gmaps group.contact_address
|
|
%dt= heading_helper(Ordergroup, :customer_number) + ':'
|
|
%dd=h group.customer_number
|
|
- if group.break_start? or group.break_end?
|
|
%dt= heading_helper(Ordergroup, :break) + ':'
|
|
%dd= raw t '.break', start: format_date(group.break_start), end: format_date(group.break_end)
|
|
- if group.is_a?(Workgroup)
|
|
%dt= t('.access') + ':'
|
|
%dd= format_roles(group)
|
|
%dt= heading_helper(Ordergroup, :user_tokens) + ':'
|
|
%dd
|
|
- members = group.users
|
|
= "(#{members.size})"
|
|
= members.collect{|u| show_user(u)}.join(", ")
|
|
- if group.is_a?(Ordergroup) and FoodsoftConfig[:use_apple_points]
|
|
%dt= t '.apple_limit'
|
|
%dd= group.ignore_apple_restriction ? t('.deactivated') : t('.activated')
|