2019-05-01 19:33:33 +02:00
|
|
|
%td.closed.name
|
2012-06-21 17:19:00 +02:00
|
|
|
= link_to order_article.article.name, '#', 'data-toggle-this' => "#group_order_articles_#{order_article.id}"
|
2009-01-29 21:28:22 +01:00
|
|
|
%td= order_article.article.order_number
|
2017-05-05 21:03:03 +02:00
|
|
|
%td{title: units_history_line(order_article, :plain => true)}
|
2013-12-18 22:08:02 +01:00
|
|
|
= order_article.units
|
2014-01-03 12:42:36 +01:00
|
|
|
= pkg_helper order_article.article_price
|
2013-12-23 12:32:26 +01:00
|
|
|
- if s=order_article.ordered_quantities_different_from_group_orders?
|
|
|
|
%span{:style => "color:red;font-weight: bold"}= s
|
2014-01-03 12:42:36 +01:00
|
|
|
%td #{order_article.article.unit}
|
2009-03-22 11:58:01 +01:00
|
|
|
%td
|
2009-08-06 16:14:36 +02:00
|
|
|
= number_to_currency(order_article.price.price, :unit => "")
|
|
|
|
:plain
|
|
|
|
/
|
|
|
|
= number_to_currency(order_article.total_price, :unit => "")
|
2009-03-22 11:58:01 +01:00
|
|
|
%td
|
2023-09-28 22:42:52 +02:00
|
|
|
- if FoodsoftConfig[:group_order_invoices]&.[](:separate_deposits)
|
|
|
|
= number_to_currency(order_article.price.gross_price_without_deposit, :unit => "")
|
|
|
|
:plain
|
|
|
|
/
|
|
|
|
= number_to_currency(order_article.total_gross_price_without_deposit, :unit => "")
|
|
|
|
-else
|
|
|
|
= number_to_currency(order_article.price.gross_price, :unit => "")
|
|
|
|
:plain
|
|
|
|
/
|
|
|
|
= number_to_currency(order_article.total_gross_price, :unit => "")
|
|
|
|
%td= number_to_percentage(order_article.price.tax) unless order_article.price.tax.zero?
|
|
|
|
%td
|
|
|
|
= number_to_currency(order_article.price.deposit, :unit => "") unless order_article.price.deposit.zero?
|
2009-08-06 16:14:36 +02:00
|
|
|
:plain
|
|
|
|
/
|
2023-09-28 22:42:52 +02:00
|
|
|
= number_to_currency(order_article.total_deposit_price, :unit => "") unless order_article.price.deposit.zero?
|
2009-01-29 21:28:22 +01:00
|
|
|
%td
|
2013-12-31 11:41:14 +01:00
|
|
|
= link_to t('ui.edit'), edit_order_order_article_path(order_article.order, order_article), remote: true,
|
2019-03-26 20:14:39 +01:00
|
|
|
class: 'btn btn-mini' unless order_article.order.closed?
|
2009-01-29 21:28:22 +01:00
|
|
|
%td
|
2013-12-31 11:41:14 +01:00
|
|
|
= link_to t('ui.delete'), order_order_article_path(order_article.order, order_article), method: :delete,
|
2019-03-26 20:14:39 +01:00
|
|
|
remote: true, data: {confirm: t('.confirm')}, class: 'btn btn-danger btn-mini' unless order_article.order.closed?
|