Commit Graph

75 Commits

Author SHA1 Message Date
Thein Lin Kyaw
37380f6bfb Fix json rendering error 2019-12-03 19:37:59 +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
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
phyusin
ccd9855281 shop_detail func: update in base 2019-01-07 16:05:18 +06:30
phyusin
de5448b7a0 check function for order and bank 2018-08-07 14:13:00 +06:30
phyusin
456bb61f61 add fun: 2018-08-07 10:43:40 +06:30
phyusin
674632fc9f check shop detail 2018-02-27 17:24:56 +06:30
phyusin
adefd8c034 remove conflict data 2018-02-27 14:35:21 +06:30
Yan
ac470c5747 license and local move to base action and update other base 2018-02-27 11:41:24 +06:30
Yan
13b7b1f800 add action base and update base ctrls 2018-02-26 17:42:54 +06:30
Aung Myo
ac47501e01 update conflic for pull master 2018-02-23 14:58:35 +06:30
Yan
3d2d304654 license update for token 2018-02-21 16:30:14 +06:30
Yan
84b45f03ff Merge branch 'master' of bitbucket.org:code2lab/sxrestaurant 2018-02-21 10:12:19 +06:30
Yan
cd95d1d5c9 license test 2018-02-21 10:12:05 +06:30
Aung Myo
8f239cbb0b update conflix for request bill 2018-02-20 13:32:27 +06:30
Aung Myo
a5640877a3 update request bill 2018-02-20 11:59:57 +06:30
Aung Myo
a2d0aee1ab update applicaton contro and request bill 2018-02-20 09:37:30 +06:30
Aung Myo
47ffc5fa51 update no table quick srevice 2018-02-14 18:21:10 +06:30
Aung Myo
9757c34a09 Merge branch 'master' of bitbucket.org:code2lab/sxrestaurant into quick_service 2018-02-14 15:01:57 +06:30
Aung Myo
5854bd88e1 update liscense file 2018-02-13 10:53:29 +06:30
San Wai Lwin
3f247f731e Shop name in navbar,linke to shop info 2018-02-05 18:11:45 +06:30
Yan
e3fdc68f9a comment licence check 2018-01-23 15:15:12 +06:30
Yan
aa8c2621fc add response in license 2018-01-23 14:40:32 +06:30
Aung Myo
9de47cc5da update check for license file 2018-01-19 11:47:46 +06:30
Yan
384923133b license flash msg and add set Item price 2018-01-19 10:43:08 +06:30
Yan
ad4be54ef2 request key 2018-01-12 18:11:52 +06:30
Yan
649711f72d license key api for redis 2018-01-12 15:07:11 +06:30
Yan
c9f44e5f21 license disable 2017-12-22 17:51:21 +06:30
Yan
da4af7bfc5 license updated 2017-12-22 16:33:12 +06:30
Yan
3be8a56ac6 need to fix license 2017-12-19 16:54:11 +06:30
Yan
368405451f need to fix license 2017-12-19 11:49:03 +06:30
Yan
48f08d00af nothing 2017-12-14 12:04:31 +06:30
Yan
308e007372 license updating 2017-12-08 11:51:38 +06:30
Yan
4548813bfd license verify 2017-12-01 17:35:56 +06:30
Yan
b1217c19a2 add order for subcat 2017-12-01 13:57:56 +06:30
Yan
aa1d2e4f59 cloud change 2017-11-30 17:29:56 +06:30
Yan
b1d9027d5b subdomain + domain 2017-11-29 11:21:26 +06:30
Yan
b394643991 license 2017-11-28 18:10:17 +06:30
Yan
29322d952e license cloud done 2017-11-16 20:46:03 +06:30
Yan
178b3484be added license 2017-11-16 16:13:26 +06:30
Yan
b8dc74f517 merge with license but not complete 2017-11-15 12:06:06 +06:30
Yan
7c6153f16f licensing 2017-11-15 12:01:35 +06:30
Yan
93769bacb7 licensing 2017-11-14 18:35:14 +06:30
Yan
222114a3c3 licensing 2017-11-14 16:06:17 +06:30
Yan
abb8838215 licensing 2017-11-14 15:31:18 +06:30
Yan
683982d4f5 adding license 2017-11-14 15:11:16 +06:30
Yan
a6252923f1 test license 2017-11-10 19:03:10 +06:30
Yan
e4308cdc53 license test remove 2017-11-10 18:10:19 +06:30
Yan
97fd7619ce license test 2017-11-10 18:08:48 +06:30
Yan
3a71b86695 add license and encryption for cloud 2017-11-10 14:34:46 +06:30