Commit Graph

30 Commits

Author SHA1 Message Date
Thein Lin Kyaw
944f7a7259 fix timezone 2023-02-09 14:55:43 +06:30
pyaephyoeaung
214712fd2d fix timezone - time with local timezone to default timezone 2022-05-19 14:20:55 +06:30
NyanLinHtut
358ff50934 daily & hourly report 2019-12-23 14:51:37 +06:30
NyanLinHtut
c87a2e579b - 2019-12-23 09:48:11 +06:30
NyanLinHtut
10c1ba12af - 2019-12-20 15:48:38 +06:30
Thein Lin Kyaw
d87ffee65b update seed generator and remove hard-coded customer id 2019-12-20 10:35:31 +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
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
2010b6a4bb update number_formattable. update dashboard query. 2019-11-28 14:13:00 +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
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
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
yamin
1aea52619a UI change 2017-10-23 11:38:10 +06:30
Aung Myo
25ef380b4f finished report for all 2017-07-17 11:22:24 +06:30
Aung Myo
40a2347c1b update report 2017-07-01 11:10:08 +06:30
Aung Myo
01e5b7ba6c update authorize 2017-06-23 09:41:48 +06:30
Aung Myo
7881ae4dfa daily sale report 2017-06-18 16:38:46 +06:30
Yan
3404c5e0bd ui updating for report 2017-06-13 09:59:56 +06:30
Yan
0b04e2d4ef add base report controller 2017-06-09 13:35:41 +06:30