fix order.ordergroup nil pointer error ~ automatic go invoices
This commit is contained in:
parent
bddaebe1a9
commit
1fc582319f
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@
|
|||
%td= show_user(order.updated_by)
|
||||
%td{id: "generate-invoice#{order.id}"}
|
||||
- if order.closed?
|
||||
-if FoodsoftConfig[:contact][:tax_number]
|
||||
-if FoodsoftConfig[:contact][:tax_number] && order.ordergroups.present?
|
||||
= render :partial => 'group_order_invoices/links', locals:{order: order}
|
||||
-else
|
||||
= I18n.t('activerecord.attributes.group_order_invoice.tax_number_not_set')
|
||||
|
|
Loading…
Reference in a new issue