sync receipt

This commit is contained in:
Myat Zin Wai Maw
2019-09-03 17:33:27 +06:30
parent 284b451d4e
commit b00b9fc75c
11 changed files with 44 additions and 24 deletions

View File

@@ -34,6 +34,8 @@ class SaleTax < ApplicationRecord
private
def generate_custom_id
self.sale_tax_id = SeedGenerator.generate_id(self.class.name, "STI")
if self.sale_tax_id.nil?
self.sale_tax_id = SeedGenerator.generate_id(self.class.name, "STI")
end
end
end