Make StockEvent a base class for Delivery and StockTaking
This helps to share code between the two entities and allows easier extensions in the future.
This commit is contained in:
parent
a5582e9542
commit
785313ac23
9 changed files with 69 additions and 33 deletions
|
|
@ -9,6 +9,7 @@ class DeliveriesController < ApplicationController
|
|||
|
||||
def show
|
||||
@delivery = Delivery.find(params[:id])
|
||||
@stock_changes = @delivery.stock_changes.includes(:stock_article).order('articles.name ASC')
|
||||
end
|
||||
|
||||
def new
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue