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

@@ -176,6 +176,8 @@ class SaleAudit < ApplicationRecord
private
def generate_custom_id
self.sale_audit_id = SeedGenerator.generate_id(self.class.name, "SAI")
if self.sale_audit_id.nil?
self.sale_audit_id = SeedGenerator.generate_id(self.class.name, "SAI")
end
end
end