Commit Graph

5043 Commits

Author SHA1 Message Date
Min Zeya Phyo
f9c748ca0c Merge branch 'r-1902001-01' of gitlab.com:code2lab/SXRestaurant into r-1902001-01 2019-12-20 11:56:02 +06:30
Min Zeya Phyo
704af3ce27 production deployment changes 2019-12-20 11:55:45 +06:30
Thein Lin Kyaw
d87ffee65b update seed generator and remove hard-coded customer id 2019-12-20 10:35:31 +06:30
Thein Lin Kyaw
92e467d512 Fix bugs and improvements
fix payment outstanding with amount <= 0
fix payment outstanding with other payments
2019-12-18 15:41:18 +06:30
Nweni
40871c30fb Merge branch 'r-1902001-01' of https://gitlab.com/code2lab/SXRestaurant into r-1902001-01 2019-12-18 10:43:30 +06:30
Nweni
58d4ffebab secrets.yml 2019-12-18 10:43:09 +06:30
Thein Lin Kyaw
e6392c3bd4 update for addorder and printer 2019-12-17 15:02:58 +06:30
Thein Lin Kyaw
40ad724e77 update split bill 2019-12-16 11:20:15 +06:30
Min Zeya Phyo
e3f2f139e4 Merge branch 'r-1902001-01' of gitlab.com:code2lab/SXRestaurant into r-1902001-01 2019-12-13 14:10:17 +06:30
Min Zeya Phyo
996e79c947 remove ruby version in file 2019-12-13 14:09:24 +06:30
Nweni
9971d5fa4c Merge branch 'r-1902001-01' of https://gitlab.com/code2lab/SXRestaurant into r-1902001-01 2019-12-13 13:58:36 +06:30
Nweni
1216208fb0 secret.yml 2019-12-13 13:58:18 +06:30
Min Zeya Phyo
36910355c3 Merge branch 'r-1902001-01' of gitlab.com:code2lab/SXRestaurant into r-1902001-01 2019-12-13 13:04:41 +06:30
Min Zeya Phyo
39d57e05ac production deployment file change 2019-12-13 13:03:48 +06:30
Thein Lin Kyaw
a4c2b47f7a remove certificate files 2019-12-11 18:43:27 +06:30
Thein Lin Kyaw
58117d0f48 update order and request bill 2019-12-11 17:56:39 +06:30
NyanLinHtut
26edf23b46 fixed autoremove tax when discount & precision at receipt no report 2019-12-11 11:34:23 +06:30
Myat Zin Wai Maw
bb0335ce6b member sync 2019-12-10 17:23:52 +06:30
Thein Lin Kyaw
b0452030b0 fix menu attributes error 2019-12-10 16:34:58 +06:30
Nweni
56ec8c83b2 Merge branch 'r-1902001-01-dev' of https://gitlab.com/code2lab/SXRestaurant into r-1902001-01-dev 2019-12-09 16:31:19 +06:30
Nweni
53faa6d2fe addorderjs 2019-12-09 16:31:02 +06:30
Nweni
4ef84ef96e fixed conflict 2019-12-09 16:29:09 +06:30
Nweni
31e6599be1 addorder 2019-12-09 16:28:12 +06:30
a705f0df9a Update addorder.js 2019-12-09 09:44:03 +00:00
Thein Lin Kyaw
d93443ab2a remove undenfined helper 2019-12-09 10:57:43 +06:30
Thein Lin Kyaw
3a99e1bb09 update for order process
Add activereocrd-import gem for bulk insert
2019-12-09 10:33:19 +06:30
Thein Lin Kyaw
67e7658e56 Merge branch 'r-1902001-01-dev' of gitlab.com:code2lab/SXRestaurant into r-1902001-01-dev 2019-12-09 10:30:13 +06:30
Nweni
d4e6b8a453 ssl 2019-12-04 17:32:56 +06:30
Thein Lin Kyaw
dc1f464b7f update api/resturant/menu 2019-12-04 15:49:03 +06:30
Nweni
3b5b6c78f3 fixed conflict 2019-12-04 10:37:52 +06:30
Thein Lin Kyaw
37380f6bfb Fix json rendering error 2019-12-03 19:37:59 +06:30
Thein Lin Kyaw
c8c39b0636 update origami/home/index 2019-12-03 16:15:48 +06:30
Thein Lin Kyaw
108415ed3f update dine-in pay bill 2019-12-03 10:02:49 +06:30
Thein Lin Kyaw
1607cb70d3 Single database for multiple shops
Use ActsAsTenant as Multi-tenancy for shops

See below files:
- app/controllers/concern/multi_tenancy.rb
- app/models/application_record.rb
- app/models/shop.rb

An initializer can be created to control option in ActsAsTenant.

config/initializers/acts_as_tenant.rb
require 'acts_as_tenant/sidekiq'

ActsAsTenant.configure do |config|
  config.require_tenant = false # true
end

more detail: https://github.com/ErwinM/acts_as_tenant
2019-12-02 18:02:39 +06:30
Thein Lin Kyaw
937f40e7c1 Single database for multiple shops
Use ActsAsTenant as Multi-tenancy for shops

See below files:
- app/controllers/concern/multi_tenancy.rb
- app/models/application_record.rb
- app/models/shop.rb

An initializer can be created to control option in ActsAsTenant.
config/initializers/acts_as_tenant.rb
require 'acts_as_tenant/sidekiq'
ActsAsTenant.configure do |config|
  config.require_tenant = false # true
end

more details: https://github.com/ErwinM/acts_as_tenant
2019-12-02 17:19:28 +06:30
Thein Lin Kyaw
5d10d4b6a1 fix origami dashboard 2019-11-29 17:47:16 +06:30
Thein Lin Kyaw
18cb9ba23c fix sub menu category error 2019-11-29 15:47:15 +06:30
Thein Lin Kyaw
e3501cd43c fix stock check error 2019-11-29 14:49:36 +06:30
Thein Lin Kyaw
b2508ac20a fix bugs and update code
Merge branch 'r-1902001-01-dev' into r-1902001-01
2019-11-29 14:36:57 +06:30
Thein Lin Kyaw
0ef1b4fd87 fix request bill error with show_total_before_tax 2019-11-29 14:24:35 +06:30
Thein Lin Kyaw
5b88d16485 update number_formattable 2019-11-28 19:25:52 +06:30
NyanLinHtut
3c5755a028 fixed set items in origami 2019-11-28 17:27:28 +06:30
Nweni
f035c2fe10 fixed conflict 2019-11-28 14:19:37 +06:30
Thein Lin Kyaw
2010b6a4bb update number_formattable. update dashboard query. 2019-11-28 14:13:00 +06:30
Thein Lin Kyaw
47c12c6faa dashboard check current_user for sales 2019-11-26 17:07:56 +06:30
Thein Lin Kyaw
2892dcfe4c Merge branch 'r-1902001-01-dev' of gitlab.com:code2lab/SXRestaurant into r-1902001-01-dev 2019-11-26 01:07:16 +06:30
Thein Lin Kyaw
3c1cc737b5 improve receipt/details reports and implement number formatting
1) eager load reports for receipt/details
2) introduce number_format lookups to replace print_settings for number formatting
3) implement NumberFormattable concern, reference number_format lookups or print_settings if not exist, to get number format settings and number formatting
4) replace rails NumberHelper.number_with_precision with NumberFormattable.number_format hopefully to reduce overhead, formatting numbers for huge lists of data
2019-11-25 23:17:53 +06:30
NyanLinHtut
ecd1bb7931 fixed service charges & commercial tax 2019-11-25 16:24:04 +06:30
NyanLinHtut
ba340292ab fixed no tax 2019-11-25 13:13:31 +06:30
NyanLinHtut
a36e170d94 inventory for set items 2019-11-20 15:14:09 +06:30