2009-01-06 11:49:19 +01:00
|
|
|
%p
|
|
|
|
%b=h @order.supplier ? @order.supplier.name : _('nonexistent')
|
|
|
|
| Rechnungsnummer:
|
|
|
|
= @order.invoice_number
|
|
|
|
| Rechnungsdatum:
|
|
|
|
= @order.invoice_date
|
|
|
|
|
|
|
|
|
= link_to_remote image_tag('b_edit.png', :size => "16x16", :border => 0, :alt => 'Rechnungsbetrag ändern'), |
|
|
|
|
:url => {:action => "editOrderSummary", :id => @order}, |
|
|
|
|
:before => "Element.show('loader')", |
|
|
|
|
:success => "Element.hide('loader')" |
|
|
|
|
%table
|
|
|
|
%tr
|
|
|
|
%td{:colspan => "2"}
|
|
|
|
%b Foodcoop
|
|
|
|
%td{:colspan => "2"}
|
|
|
|
%b Lieferant
|
|
|
|
%tr
|
|
|
|
%td
|
|
|
|
%abbr{:title => "gelieferten Artikel x Nettopreis"} Nettobetrag:
|
2009-01-29 01:57:51 +01:00
|
|
|
%td= number_to_currency(@order.sum(:clear))
|
2009-01-06 11:49:19 +01:00
|
|
|
%td
|
|
|
|
Rechnungsbetrag
|
|
|
|
%small (incl. Pfand/Gutschriften)
|
|
|
|
%td#invoice_amount= number_to_currency(@order.invoice_amount)
|
|
|
|
%tr
|
|
|
|
%td
|
|
|
|
%abbr{:title => "Nettobetrag mit Pfand und MwSt."} Bruttobetrag:
|
2009-01-29 01:57:51 +01:00
|
|
|
%td= number_to_currency(@order.sum(:gross))
|
2009-01-06 11:49:19 +01:00
|
|
|
%td
|
|
|
|
%span - extra Pfand
|
|
|
|
%small (Kistenpfand etc.)
|
|
|
|
%td#deposit= number_to_currency(@order.deposit)
|
|
|
|
%tr
|
|
|
|
%td
|
|
|
|
%abbr{:title => "Bruttobetrag mit Foodcoop Aufschlag"} FC Summe:
|
2009-01-29 01:57:51 +01:00
|
|
|
%td= number_to_currency(@order.sum(:fc))
|
2009-01-06 11:49:19 +01:00
|
|
|
%td{:style => "border-bottom: 1px solid grey"}
|
|
|
|
+ Pfandgutschriften
|
|
|
|
%td{:style => "border-bottom: 1px solid grey"}
|
|
|
|
#deposit_credit= number_to_currency(@order.deposit_credit)
|
|
|
|
%tr
|
|
|
|
%td
|
|
|
|
%abbr{:title => "Zugeteilte Mengen x Bruttopreise (inkl. Aufschlag)"} Gruppenbeträge:
|
2009-01-29 01:57:51 +01:00
|
|
|
%td#groups_amount= number_to_currency(@order.sum(:groups))
|
2009-01-06 11:49:19 +01:00
|
|
|
%td
|
|
|
|
Summe
|
|
|
|
%small (Rechungsbetrag ohne Pfand)
|
|
|
|
%td#clear_invoice= number_to_currency(@order.invoice_amount - @order.deposit + @order.deposit_credit)
|
|
|
|
%tr
|
|
|
|
%td{:colspan => "4"}
|
|
|
|
%abbr{:title => "Gruppenbeträge ohne Aufschlag minus Rechnung ohne Pfand. |
|
|
|
|
Im Idealfall sollte hier 0.00 stehen."} Differenz ohne Aufschlag: |
|
2009-01-29 01:57:51 +01:00
|
|
|
%span#profit= number_to_currency(@order.profit(false))
|
2009-01-06 11:49:19 +01:00
|
|
|
%tr
|
|
|
|
%td{:colspan => "4"}
|
|
|
|
%b
|
|
|
|
%abbr{:title => "= Gruppenbeträge - Rechnung ohne Pfand"} Differenz mit Aufschlag
|
2009-01-06 15:45:19 +01:00
|
|
|
= "(#{number_to_percentage(APP_CONFIG[:price_markup])}):"
|
2009-01-29 01:57:51 +01:00
|
|
|
%span#profit= number_to_currency(@order.profit)
|