shop code

This commit is contained in:
Myat Zin Wai Maw
2019-11-22 18:24:02 +06:30
parent 5a3f328789
commit d1ab2c194d
106 changed files with 834 additions and 895 deletions

View File

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