prefix encoded times to manufacture_uid
This commit is contained in:
@@ -3,7 +3,7 @@ class Batch < ApplicationRecord
|
||||
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
|
||||
batch.exported_by=""
|
||||
@@ -19,7 +19,7 @@ class Batch < ApplicationRecord
|
||||
batch.client_id=client_id
|
||||
batch.product_category_id=product_category_id
|
||||
batch.adult_or_child=adult_or_child.upcase
|
||||
|
||||
|
||||
if batch.save
|
||||
return batch
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user