seed_generators prefix

This commit is contained in:
Zoey
2019-06-21 11:50:48 +06:30
parent 7e987587c9
commit 9d95dc0f8e
17 changed files with 20 additions and 96 deletions

View File

@@ -1004,11 +1004,6 @@ class SalePayment < ApplicationRecord
private
def generate_custom_id
prefix = "SPI"
if ENV["SERVER_MODE"] == 'cloud'
prefix = "CSPI"
end
self.sale_payment_id = SeedGenerator.generate_id(self.class.name, prefix)
self.sale_payment_id = SeedGenerator.generate_id(self.class.name, "SPI")
end
end