add readme

This commit is contained in:
NyanLinHtut
2019-11-18 10:22:54 +06:30
parent 07123a25f2
commit 77d0e0a56c
3 changed files with 16 additions and 13 deletions

View File

@@ -1,5 +1,5 @@
source 'https://rubygems.org'
ruby '2.6.3'
ruby '2.4.1'
git_source(:github) do |repo_name|
repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
"https://github.com/#{repo_name}.git"

View File

@@ -299,6 +299,9 @@ settings/lookups => {type:display_type, name: Display Type, value: 2}
For show total before tax in receipt bill
settings/lookups => {type:show_total_before_tax, name:Show Total Before Tax, value: {0 or 1}}
For Using Staff Meal
settings/lookups => { type:customer_type, name: Staff, value:Staff }
* ToDo list
1. Migration

View File

@@ -24,18 +24,18 @@ class InventoryDefinition < ApplicationRecord
end
def self.find_product_in_inventory(item,instance_code)
unless instance_code.empty?
instance_code = instance_code.to_s
instance_code[0] = ""
instance_code = instance_code.chomp("]")
else
instance_code = '"0"'
end
if prod = InventoryDefinition.where("item_code IN(#{instance_code})")
puts "found prodcut+++++++++++++++++++++++++++++++++++==="
puts prod.to_json
end
# unless instance_code.empty?
# instance_code = instance_code.to_s
# instance_code[0] = ""
# instance_code = instance_code.chomp("]")
# else
# instance_code = '"0"'
# end
#
# if prod = InventoryDefinition.where("item_code IN(#{instance_code})")
# puts "found prodcut+++++++++++++++++++++++++++++++++++==="
# puts prod.to_json
# end
if product = InventoryDefinition.find_by_item_code(item.item_instance_code)
if stock_check_item = StockCheckItem.find_by_item_code(item.item_instance_code)