Commit Graph

2527 Commits

Author SHA1 Message Date
Thein Lin Kyaw
dc1f464b7f update api/resturant/menu 2019-12-04 15:49:03 +06:30
Thein Lin Kyaw
c8c39b0636 update origami/home/index 2019-12-03 16:15:48 +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
18cb9ba23c fix sub menu category error 2019-11-29 15:47:15 +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
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
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
Nweni
336e32f1a6 fixed daliy sales report - payment method error 2019-11-20 09:44:49 +06:30
NyanLinHtut
8e462901ad Merge branch 'r-1902001-01-dev' of gitlab.com:code2lab/SXRestaurant into r-1902001-01-dev 2019-11-18 10:23:11 +06:30
Thein Lin Kyaw
a3e4cc8993 optimize for dashboards 2019-11-18 10:09:40 +06:30
NyanLinHtut
07123a25f2 Merge branch 'r-1902001-01-dev' of gitlab.com:code2lab/SXRestaurant into r-1902001-01-dev 2019-11-18 09:58:26 +06:30
NyanLinHtut
0d9e363648 add staff meal 2019-11-18 09:57:55 +06:30
Thein Lin Kyaw
d94dde63fe fix report for receipt, daily sales and credit sales. 2019-11-15 17:12:50 +06:30
Thein Lin Kyaw
dd6e8142b4 optimize query for credit payment report 2019-11-14 18:25:48 +06:30
Nweni
9b798dc699 fixed conflict 2019-11-08 16:08:45 +06:30
Thein Lin Kyaw
1e2ff8b1be number with precision in receipt report excel. 2019-11-08 10:21:58 +06:30
Thein Lin Kyaw
834df19e03 use precision for rounding adj in receipt report. bug fixes for discount. 2019-11-08 09:58:52 +06:30
Thein Lin Kyaw
155cb0a9eb rounding decimal to print_settings precision 2019-11-06 17:34:42 +06:30
Min Zeya Phyo
83e7f22b13 menu form is_ordering and is_active to data type boolean 2019-10-29 14:15:43 +06:30
Myat Zin Wai Maw
0b40728b5b receipt report xls 2019-10-21 10:53:24 +06:30
NyanLinHtut
bca0ffc955 add coloum title alphabet in daily sale 2019-10-07 15:22:46 +06:30
NyanLinHtut
b88fded9a9 - 2019-10-04 18:07:17 +06:30
NyanLinHtut
971b1da98c fix date in sale tran 2019-10-03 09:48:01 +06:30
NyanLinHtut
a61c4a1932 add print at receipt no report 2019-10-02 09:24:30 +06:30
NyanLinHtut
ec9e4fb7eb add delimiter at report 2019-09-26 10:10:07 +06:30
NyanLinHtut
9d330bb28c fixed invetory 2019-09-25 11:54:54 +06:30
NyanLinHtut
f4482aa9af fixed conflit 2019-09-13 21:15:01 +06:30
NyanLinHtut
4808947fcd fixed inventory 2019-09-13 21:13:04 +06:30
Myat Zin Wai Maw
b2ab2c9632 add account name in saleitem xls 2019-09-12 19:29:04 +06:30
Myat Zin Wai Maw
719d5637c2 button disabled 2019-09-12 11:03:25 +06:30
Myat Zin Wai Maw
abd13b91cb Merge branch 'r-1902001-01-dev' of gitlab.com:code2lab/SXRestaurant into r-1902001-01-dev 2019-09-11 18:18:13 +06:30
Myat Zin Wai Maw
4668c974fd nett 2019-09-11 18:17:16 +06:30
Myat Zin Wai Maw
a4e8869234 add foc amount in saleitem report 2019-09-11 17:12:15 +06:30
NyanLinHtut
26f537a42d fixed conflit 2019-09-11 13:30:45 +06:30
NyanLinHtut
90d0a4ebb1 fixed inventory 2019-09-11 13:26:01 +06:30
Myat Zin Wai Maw
ac24499319 foc 2019-09-10 13:12:41 +06:30
Myat Zin Wai Maw
258aba669b precision 2019-09-05 18:12:17 +06:30
Myat Zin Wai Maw
34c3dc47ae discount 2019-09-04 18:19:06 +06:30
Myat Zin Wai Maw
bd81825abf Merge branch 'r-1902001-01-dev' of gitlab.com:code2lab/SXRestaurant into r-1902001-01 2019-09-03 17:36:32 +06:30
Myat Zin Wai Maw
284b451d4e fix conflict 2019-09-02 16:27:55 +06:30
Myat Zin Wai Maw
9b0e77674e update sale item xls 2019-09-02 16:22:09 +06:30
Myat Zin Wai Maw
aed51eba69 display message when calling to cloud 2019-08-30 17:30:59 +06:30
Myat Zin Wai Maw
f0be0d19a1 nothing 2019-08-30 14:03:48 +06:30
NyanLinHtut
06349e23cc - 2019-08-29 18:33:13 +06:30
NyanLinHtut
e443c5431e hourly sale items report 2019-08-19 10:45:50 +06:30
NyanLinHtut
5e344dc4a6 waste and spoil report 2019-08-09 14:21:24 +06:30
Zoey
79d8eb94ef kbzpay 2019-06-26 11:42:51 +06:30
NyanLinHtut
0bef0da992 - 2019-06-21 15:10:25 +06:30