shop code
This commit is contained in:
@@ -7,7 +7,8 @@ class PaymentJournal < ApplicationRecord
|
||||
self.payment_method = payment_method
|
||||
self.payment_status = 'paid'
|
||||
self.payment_method_references = payment_method_reference
|
||||
self.created_by = current_user
|
||||
self.created_by = current_user.id
|
||||
self.shop_code = current_user.shop_code
|
||||
self.save
|
||||
end
|
||||
|
||||
@@ -16,7 +17,8 @@ class PaymentJournal < ApplicationRecord
|
||||
self.remark = remark
|
||||
self.debit_amount = amount
|
||||
self.payment_status = 'paid'
|
||||
self.created_by = current_user
|
||||
self.created_by = current_user.id
|
||||
self.shop_code = current_user.shop_code
|
||||
self.save
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user