44 Commits

Author SHA1 Message Date
NyanLinHtut
314cc507a3 merge with r-19 2020-01-11 11:08:33 +06:30
Thein Lin Kyaw
d87ffee65b update seed generator and remove hard-coded customer id 2019-12-20 10:35:31 +06:30
Nweni
7afddcdf2b shop code 2019-12-04 10:49:46 +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
Nweni
417d64ecae fixed conflict after merch dev for current shop 2019-12-02 19:30:24 +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
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
Myat Zin Wai Maw
d1ab2c194d shop code 2019-11-22 18:24:02 +06:30
phyusin
ccd9855281 shop_detail func: update in base 2019-01-07 16:05:18 +06:30
Yan
fc69efff16 merged master 2018-05-04 11:16:44 +06:30
Yan
44ac3bcd0c no change base origami 2018-05-04 11:14:54 +06:30
Yan
b0377afb8f no change 2018-05-03 17:53:34 +06:30
phyusin
ffd3f5f158 check exception in check_user 2018-05-03 17:53:07 +06:30
Yan
cb3f9c4cd7 remove skip auth from api and check user modified 2018-04-09 09:58:22 +06:30
phyusin
8217b7c2f2 check mobile user 2018-04-05 19:22:52 +06:30
phyusin
a44e86ed21 check orgami js 2018-04-05 19:00:13 +06:30
phyusin
a2e4863c9d check user agent and token when webview is loaded 2018-04-06 15:36:08 +06:30
phyusin
7c15dac2aa webview 2018-04-05 17:30:44 +06:30
Yan
510e3aabec check current user session 2018-03-20 14:32:08 +06:30
phyusin
bd06e80b37 remove conflict data 2018-03-05 16:24:45 +06:30
San Wai Lwin
07c3bcd7a7 Change Dashboard, Account in login, Shop name, Reference no for other charges 2018-02-28 15:31:55 +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
Yan
a6abfb2f49 update token mismatch 2018-02-23 15:49:29 +06:30
Aung Myo
ac47501e01 update conflic for pull master 2018-02-23 14:58:35 +06:30
Yan
25a212bb70 update base controllers 2018-02-23 14:45:53 +06:30
Yan
4552a4a9ac license update, base controllers extends app controller 2018-02-21 16:42:19 +06:30
Yan
3d2d304654 license update for token 2018-02-21 16:30:14 +06:30
Aung Myo
aeafbb4fae update pull split bill 2018-02-09 14:31:34 +06:30
phyusin
991bc48505 order item split bill process 2018-02-06 09:46:30 +06:30
Aung Myo
2f024e8691 update qurick raw 2018-02-01 10:29:24 +06:30
phyusin
332f0235a0 change channel to cronဓ 2017-12-14 17:39:39 +06:30
phyusin
32dac8e9a8 change query for dashboard and time for checkin channel 2017-12-13 18:30:04 +06:30
phyusin
211db16311 add channel for checkin process 2017-12-13 15:58:44 +06:30
Aung Myo
56940d7f00 update sale audit 2017-10-31 12:08:27 +06:30
Aung Myo
6b88403186 update notification 2017-10-26 14:06:42 +06:30
yamin
1aea52619a UI change 2017-10-23 11:38:10 +06:30
Aung Myo
9305e0c4b4 update authorize void and edit in cashier 2017-06-29 15:39:46 +06:30
Aung Myo
f762664912 update bill 2017-06-27 14:16:48 +06:30
Aung Myo
25b6a893f2 first cancan 2017-06-22 15:33:55 +06:30
Min Zeya Phyo
db3b50a496 frontend view layout 2017-04-21 05:07:00 +06:30