2009-01-18 17:42:51 +01:00
|
|
|
- title "Lieferantin #{h(@supplier.name)}"
|
2009-01-06 11:49:19 +01:00
|
|
|
|
2009-01-18 17:42:51 +01:00
|
|
|
.left_column{:style => "width:45%"}
|
|
|
|
.box_title
|
|
|
|
%h2=h @supplier.name
|
|
|
|
.column_content
|
|
|
|
- if shared_supplier = @supplier.shared_supplier
|
|
|
|
%p
|
2009-03-22 13:56:54 +01:00
|
|
|
%strong Die Lieferantin ist mit der externen Artikledatenbank verknüpft.
|
2009-01-18 17:42:51 +01:00
|
|
|
|
|
|
|
%table{:style => "width:40em"}
|
|
|
|
%tr
|
|
|
|
%td Adresse:
|
|
|
|
%td{:style => "font-weight:bold"}=h @supplier.address
|
|
|
|
%tr
|
|
|
|
%td Telefon:
|
|
|
|
%td{:style => "font-weight:bold"}=h @supplier.phone
|
|
|
|
%tr
|
|
|
|
%td Telefon2:
|
|
|
|
%td{:style => "font-weight:bold"}=h @supplier.phone2
|
|
|
|
%tr
|
|
|
|
%td FAX:
|
|
|
|
%td{:style => "font-weight:bold"}=h @supplier.fax
|
2009-08-15 12:29:08 +02:00
|
|
|
%tr
|
|
|
|
%td Email:
|
|
|
|
%td{:style => "font-weight:bold"}=h @supplier.email
|
2009-01-18 17:42:51 +01:00
|
|
|
%tr
|
|
|
|
%td Hompage:
|
|
|
|
%td{:style => "font-weight:bold"}=h @supplier.url
|
|
|
|
%tr
|
|
|
|
%td Kontakt-Person:
|
|
|
|
%td{:style => "font-weight:bold"}=h @supplier.contact_person
|
|
|
|
%tr
|
|
|
|
%td Kundennummer:
|
|
|
|
%td{:style => "font-weight:bold"}=h @supplier.customer_number
|
|
|
|
%tr
|
|
|
|
%td Liefertage:
|
|
|
|
%td{:style => "font-weight:bold"}=h @supplier.delivery_days
|
|
|
|
%tr
|
|
|
|
%td BestellHowTo:
|
|
|
|
%td{:style => "font-weight:bold"}=h @supplier.order_howto
|
|
|
|
%tr
|
|
|
|
%td Notiz:
|
|
|
|
%td{:style => "font-weight:bold"}=h @supplier.note
|
|
|
|
%tr
|
|
|
|
%td Liefertage:
|
|
|
|
%td{:style => "font-weight:bold"}=h @supplier.delivery_days
|
|
|
|
%tr
|
|
|
|
%td Mindestbestellmenge:
|
|
|
|
%td{:style => "font-weight:bold"}=h @supplier.min_order_quantity
|
|
|
|
%br/
|
|
|
|
- if @current_user.role_suppliers?
|
|
|
|
= link_to 'Bearbeiten', edit_supplier_path(@supplier)
|
|
|
|
|
|
|
|
|
= link_to 'Löschen', @supplier, :confirm => 'Bist Du sicher?', :method => :delete
|
|
|
|
|
|
|
|
|
= link_to 'zurück', suppliers_path
|
|
|
|
|
|
|
|
.right_column{:style => "width:45%"}
|
|
|
|
.box_title
|
|
|
|
%h2 Letzte Lieferungen
|
|
|
|
.column_content
|
|
|
|
%table
|
|
|
|
%tr
|
|
|
|
%th Datum
|
|
|
|
%th Betrag
|
|
|
|
- for delivery in @deliveries
|
|
|
|
%tr
|
|
|
|
%td= link_to delivery.delivered_on, [@supplier, delivery]
|
|
|
|
%td= link_to_invoice(delivery)
|
|
|
|
%p
|
|
|
|
= link_to "Neue Lieferung anlegen", new_supplier_delivery_path(@supplier)
|
|
|
|
|
|
|
|
|
= link_to "Zeige alle Lieferungen", supplier_deliveries_path(@supplier)
|