fixed for pm key changed

This commit is contained in:
Yan
2017-06-05 18:52:19 +06:30
parent f004db9b19
commit f1877408be
16 changed files with 40 additions and 10 deletions

View File

@@ -1,5 +1,7 @@
class SaleTax < ApplicationRecord
#primary key - need to be unique generated for multiple shops
self.primary_key = "sale_tax_id"
#primary key - need to be unique generated for multiple shops
before_create :generate_custom_id
belongs_to :sale