2009-01-16 16:19:26 +01:00
|
|
|
- title "Artikeldatenbank"
|
2009-01-08 16:33:27 +01:00
|
|
|
|
2009-02-12 21:38:41 +01:00
|
|
|
.left_column{:style => "width:60%"}
|
2009-01-06 11:49:19 +01:00
|
|
|
.box_title
|
2009-03-22 13:47:31 +01:00
|
|
|
%h2 Lieferantinnen
|
2009-01-06 11:49:19 +01:00
|
|
|
.column_content
|
2009-01-16 16:19:26 +01:00
|
|
|
%p
|
|
|
|
%i
|
|
|
|
Erstelle eine
|
|
|
|
= link_to 'neue Lieferantin', new_supplier_path
|
|
|
|
oder
|
|
|
|
= link_to 'importiere', shared_suppliers_suppliers_path
|
2009-03-22 13:47:31 +01:00
|
|
|
aus der externen Artikeldatenbank.
|
2009-01-16 16:19:26 +01:00
|
|
|
%table.list
|
|
|
|
%thead
|
|
|
|
%tr
|
|
|
|
%th Name
|
|
|
|
%th Telefon
|
2009-03-22 13:47:31 +01:00
|
|
|
%th Kunden-Nr
|
2009-02-11 18:09:04 +01:00
|
|
|
%th
|
|
|
|
%th
|
2009-02-12 21:38:41 +01:00
|
|
|
%th
|
2009-01-16 16:19:26 +01:00
|
|
|
%tbody
|
|
|
|
- for supplier in @suppliers
|
|
|
|
%tr{:class => cycle('even','odd', :name => 'suppliers')}
|
2009-02-11 18:09:04 +01:00
|
|
|
%td= link_to h(supplier.name) , supplier
|
2009-01-16 16:19:26 +01:00
|
|
|
%td=h supplier.phone
|
|
|
|
%td=h supplier.customer_number
|
2011-05-18 15:52:06 +02:00
|
|
|
%td= link_to "Artikel (#{supplier.articles.count})", supplier_articles_path(supplier)
|
|
|
|
%td= link_to "im Lager (#{supplier.stock_articles.count})", stock_articles_path
|
2009-05-17 16:18:14 +02:00
|
|
|
%td= link_to "Lieferungen (#{supplier.deliveries.count})", supplier_deliveries_path(supplier)
|
2009-01-16 16:19:26 +01:00
|
|
|
|
2009-02-12 21:38:41 +01:00
|
|
|
.right_column{:style => "width:37%"}
|
2009-01-16 16:19:26 +01:00
|
|
|
.box_title
|
2009-01-18 17:42:51 +01:00
|
|
|
%h2 Letzte Lieferungen
|
|
|
|
.column_content
|
2009-02-12 21:38:41 +01:00
|
|
|
%table
|
2009-01-18 17:42:51 +01:00
|
|
|
%tr
|
|
|
|
%th Datum
|
|
|
|
%th Betrag
|
2009-03-22 13:56:54 +01:00
|
|
|
%th Lieferantin
|
2009-01-18 17:42:51 +01:00
|
|
|
- for delivery in @deliveries
|
|
|
|
%tr
|
|
|
|
%td= link_to delivery.delivered_on, [delivery.supplier, delivery]
|
|
|
|
%td= link_to_invoice(delivery)
|
|
|
|
%td=h delivery.supplier.name
|