add out of stock

This commit is contained in:
NyanLinHtut
2019-12-13 10:07:20 +06:30
parent 7a9e270627
commit c6c605bb01
20 changed files with 1041 additions and 44 deletions

View 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