Improved delivery-invoice-workflow.
This commit is contained in:
parent
936e6ef69a
commit
ff6b460cfc
28 changed files with 253 additions and 231 deletions
|
|
@ -9,4 +9,13 @@ module DeliveriesHelper
|
|||
end
|
||||
end
|
||||
|
||||
def link_to_invoice(delivery)
|
||||
if delivery.invoice
|
||||
link_to number_to_currency(delivery.invoice.amount), [:finance, delivery.invoice],
|
||||
:title => "Rechnung anzeigen"
|
||||
else
|
||||
link_to "Rechnung anlegen", new_finance_invoice_path(:supplier_id => delivery.supplier.id, :delivery_id => delivery.id)
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
|||
2
app/helpers/stockit_helper.rb
Normal file
2
app/helpers/stockit_helper.rb
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
module StockitHelper
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue