update order and request bill

This commit is contained in:
Thein Lin Kyaw
2019-12-11 17:56:39 +06:30
parent 26edf23b46
commit 58117d0f48
28 changed files with 336 additions and 448 deletions

View File

@@ -280,6 +280,11 @@ class SaleItem < ApplicationRecord
# Loader Service SFTP End
protected
def self.generate_ids(count = 1)
SeedGenerator.generate_ids(self.name, "SLI", count)
end
private
def generate_custom_id
if self.sale_item_id.nil?