qr code generate

This commit is contained in:
nandar
2018-03-05 11:07:59 +06:30
parent 55bf089d8d
commit b81a6dbc96
10 changed files with 190 additions and 15 deletions

View File

@@ -1,5 +1,8 @@
class Batch < ApplicationRecord
has_many :batch_line_item
belongs_to :client
belongs_to :product_category
belongs_to :user
def self.create_batch(date,order_ref,user_id,adult_or_child,client_id,product_category_id)
batch = Batch.new