prefix encoded times to manufacture_uid

This commit is contained in:
Thein Lin Kyaw
2023-08-28 14:37:04 +06:30
parent 019902872b
commit 1b619e8dc1
2 changed files with 64 additions and 63 deletions

View File

@@ -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