1c62bf8786
* Genderneutralized 'Lieferanten' * Fixed string 'ArtikelDatenbank' * Fixed string 'KundenNr'
46 lines
No EOL
1.4 KiB
Text
46 lines
No EOL
1.4 KiB
Text
- title "Artikeldatenbank"
|
|
|
|
.left_column{:style => "width:60%"}
|
|
.box_title
|
|
%h2 Lieferantinnen
|
|
.column_content
|
|
%p
|
|
%i
|
|
Erstelle eine
|
|
= link_to 'neue Lieferantin', new_supplier_path
|
|
oder
|
|
= link_to 'importiere', shared_suppliers_suppliers_path
|
|
aus der externen Artikeldatenbank.
|
|
%table.list
|
|
%thead
|
|
%tr
|
|
%th Name
|
|
%th Telefon
|
|
%th Kunden-Nr
|
|
%th
|
|
%th
|
|
%th
|
|
%tbody
|
|
- for supplier in @suppliers
|
|
%tr{:class => cycle('even','odd', :name => 'suppliers')}
|
|
%td= link_to h(supplier.name) , supplier
|
|
%td=h supplier.phone
|
|
%td=h supplier.customer_number
|
|
%td= link_to "Artikel (#{supplier.articles.without_deleted.count})", supplier_articles_path(supplier)
|
|
%td= link_to "im Lager (#{supplier.stock_articles.without_deleted.count})", stock_articles_path
|
|
%td= link_to "Lieferungen", supplier_deliveries_path(supplier)
|
|
|
|
.right_column{:style => "width:37%"}
|
|
.box_title
|
|
%h2 Letzte Lieferungen
|
|
.column_content
|
|
%table
|
|
%tr
|
|
%th Datum
|
|
%th Betrag
|
|
%th Lieferant
|
|
- for delivery in @deliveries
|
|
%tr
|
|
%td= link_to delivery.delivered_on, [delivery.supplier, delivery]
|
|
%td= link_to_invoice(delivery)
|
|
%td=h delivery.supplier.name |