| Item | Produto | UM | Quant. / Entregue |
Valor Unit. (R$) | Desc. (%) | Desc. (R$) | IPI (%) | Valor Item (R$) | <% unless readonly_dados_basicos %>Ações | <% end %>||
|---|---|---|---|---|---|---|---|---|---|---|---|
| <%= num_item %> | <%= link_to objProduto.nome, objProduto %> | <%= link_to objUnidadeMedida.sigla, objUnidadeMedida %> | <%= h number_with_precision(pedido_item.quantidade, 4) %> <%= h number_with_precision(pedido_item.quantidade_entregue, 4) %> |
<% hint_valor = 'Tabela de Preço: R$ ' %> <% unless pedido_item.tabela_preco_item.nil? %> <% hint_valor += number_to_currency(pedido_item.tabela_preco_item.preco, :unit => "", :separator =>",", :delimiter => ".", :format => "%u %n") %> <% end %> <% unless pedido_item.valor_liberado.nil? %> <% hint_valor += ". Liberado por #{usuario_que_liberou}: R$ " %> <% hint_valor += number_to_currency(pedido_item.valor_liberado, :unit => "", :separator =>",", :delimiter => ".", :format => "%u %n") %> <% end %> <% if pedido_item.pendente_liberacao %> <% classe_valor = 'valor_pendente_liberacao' %> <% else %> <% classe_valor = 'valor_ok' %> <% end %> <%= link_to number_to_currency(pedido_item.valor_unitario, :unit => "", :separator =>",", :delimiter => ".", :format => "%u %n"), '', :title => hint_valor, :class => classe_valor %> | <%= h number_to_percentage (pedido_item.desconto, :precision => 2, :separator => ",") %> | <%= h number_to_currency(pedido_item.desconto_valor, :unit => "", :separator =>",", :delimiter => ".", :format => "%u %n") %> | <%= h number_to_percentage (pedido_item.ipi, :precision => 2, :separator => ",") %> | <%= h number_to_currency(pedido_item.valor_item, :unit => "", :separator =>",", :delimiter => ".", :format => "%u %n") %> | <% unless readonly_dados_basicos %> <%= render :partial => 'layouts/colunas_multi_edit', :locals => {:edit_id => 'edit_pedido_item_', :objeto => pedido_item, :edit => edit_pedido_item_path(pedido_item), :controller => controller} %> <% end %>|||
| Total Quant: | <%= h number_with_precision(totalQtde, 4) %> <%= h number_with_precision(totalQtdeEntregue, 4) %> |
Total do Pedido: | <% unless readonly_dados_basicos %><%= h number_to_currency(totalPedido, :unit => "", :separator =>",", :delimiter => ".", :format => "%u %n") %> reais | <% else %><%= h number_to_currency(totalPedido, :unit => "", :separator =>",", :delimiter => ".", :format => "%u %n") %> reais | <% end %>|||||||
| Total Líquido: | <% unless readonly_dados_basicos %><%= h number_to_currency(totalLiquido, :unit => "", :separator =>",", :delimiter => ".", :format => "%u %n") %> reais | <% else %><%= h number_to_currency(totalLiquido, :unit => "", :separator =>",", :delimiter => ".", :format => "%u %n") %> reais | <% end %>|||||||||