add out of stock
This commit is contained in:
8
app/models/out_of_stock.rb
Normal file
8
app/models/out_of_stock.rb
Normal file
@@ -0,0 +1,8 @@
|
||||
class OutOfStock < ApplicationRecord
|
||||
def self.create_out_of_stock(date,item_instance_code)
|
||||
OutOfStock.create(
|
||||
date: date,
|
||||
item_instance_code: item_instance_code
|
||||
)
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user