Introduced invoices and deliveries. Integration (especially of deliveries) isn't finished yet.
This commit is contained in:
parent
1894f27fe0
commit
30f3d199d3
65 changed files with 1193 additions and 209 deletions
|
|
@ -1,6 +1,5 @@
|
|||
= error_messages_for 'supplier'
|
||||
|
||||
<!--[form:supplier]-->
|
||||
- if @supplier.shared_supplier
|
||||
%p Lieferantin wird mit externer Datenbank verknüpft.
|
||||
.edit_form{:style=>"width:30em"}
|
||||
|
|
@ -58,5 +57,4 @@
|
|||
%label{:for => "supplier_min_order_quantity"} Mindestbestellmenge
|
||||
%td= @f.text_field :min_order_quantity
|
||||
= @f.hidden_field :shared_supplier_id
|
||||
<!--[eoform:supplier]-->
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
%h1 Lieferantin bearbeiten
|
||||
- form_for :supplier, @supplier, :url => {:action => 'update', :id => @supplier} do |@f|
|
||||
- form_for @supplier do |@f|
|
||||
= render :partial => 'form'
|
||||
= submit_tag 'Speichern'
|
||||
|
|
||||
= link_to 'Abbrechen', :action => 'list'
|
||||
= link_to 'Abbrechen', suppliers_path
|
||||
|
|
@ -1,11 +1,12 @@
|
|||
%h1 Lieferantinnen
|
||||
- title "LieferantInnen"
|
||||
|
||||
- if @current_user.role_suppliers?
|
||||
%p
|
||||
%i
|
||||
Erstelle eine
|
||||
= link_to 'neue Lieferantin', :action => 'new'
|
||||
= link_to 'neue Lieferantin', new_supplier_path
|
||||
oder
|
||||
= link_to 'importiere', :action => 'shared_suppliers'
|
||||
= link_to 'importiere', shared_suppliers_suppliers_path
|
||||
aus der externen ArtikelDatenbank.
|
||||
|
||||
.left_column{:style => "width:100%"}
|
||||
|
|
@ -22,7 +23,7 @@
|
|||
- for column in @supplier_columns
|
||||
%td
|
||||
- if column == 'name'
|
||||
= link_to supplier[column], :action => 'show', :id => supplier
|
||||
= link_to supplier[column], supplier
|
||||
- else
|
||||
=h supplier[column]
|
||||
%td= link_to 'Artikel anzeigen', :controller => 'articles', :action => 'list', :id => supplier
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
%h1 Neue Lieferantinn
|
||||
- form_for :supplier, @supplier, :url => {:action => 'create'} do |@f|
|
||||
- form_for @supplier do |@f|
|
||||
= render :partial => 'form'
|
||||
= submit_tag "Speichern"
|
||||
|
|
||||
= link_to 'Abbrechen', :action => 'list'
|
||||
= link_to 'Abbrechen', suppliers_path
|
||||
|
||||
|
|
@ -24,4 +24,4 @@
|
|||
%td=h shared_supplier.note
|
||||
%td=h shared_supplier.delivery_days
|
||||
%td= image_tag("icon_message.gif", :size => "16x16", :border => "0",:alt => "abonniert!") if shared_supplier.supplier
|
||||
%td= link_to "abonnieren", :action => "new", :shared_supplier_id => shared_supplier unless shared_supplier.supplier
|
||||
%td= link_to "abonnieren", new_supplier_path(:shared_supplier_id => shared_supplier) unless shared_supplier.supplier
|
||||
|
|
@ -47,8 +47,8 @@
|
|||
%td{:style => "font-weight:bold"}=h @supplier.min_order_quantity
|
||||
%br/
|
||||
- if @current_user.role_suppliers?
|
||||
= link_to 'Bearbeiten', :action => 'edit', :id => @supplier
|
||||
= link_to 'Bearbeiten', edit_supplier_path(@supplier)
|
||||
|
|
||||
= link_to 'Löschen', { :action => 'destroy', :id => @supplier }, :confirm => 'Bist Du sicher?', :method => "post"
|
||||
= link_to 'Löschen', @supplier, :confirm => 'Bist Du sicher?', :method => :delete
|
||||
|
|
||||
= link_to 'zurück', :action => 'list'
|
||||
= link_to 'zurück', suppliers_path
|
||||
Loading…
Add table
Add a link
Reference in a new issue