2020-08-01 20:11:25 +02:00
|
|
|
class StockTaking < StockEvent
|
2009-02-12 18:32:20 +01:00
|
|
|
def stock_change_attributes=(stock_change_attributes)
|
|
|
|
for attributes in stock_change_attributes
|
|
|
|
stock_changes.build(attributes) unless attributes[:quantity].to_i == 0
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|