upgrade version

This commit is contained in:
Yan
2017-10-31 18:41:19 +06:30
4746 changed files with 442138 additions and 9031 deletions

0
config/.database.yml.swp Normal file → Executable file
View File

2
config/application.rb Normal file → Executable file
View File

@@ -13,7 +13,7 @@ module SXRestaurants
# Settings in config/environments/* take precedence over those specified here.
# Application configuration should go into files in config/initializers
# -- all .rb files in that directory are automatically loaded.
config.i18n.default_locale = :'en'
config.i18n.default_locale = :'en' # English 'en'
config.active_record.time_zone_aware_types = [:datetime, :time]
config.active_job.queue_adapter = :sidekiq

0
config/boot.rb Normal file → Executable file
View File

0
config/cable.yml Normal file → Executable file
View File

0
config/database.yml.sample Normal file → Executable file
View File

0
config/environment.rb Normal file → Executable file
View File

2
config/environments/development.rb Normal file → Executable file
View File

@@ -55,5 +55,5 @@ Rails.application.configure do
config.file_watcher = ActiveSupport::EventedFileUpdateChecker
# Set Cable URL
config.action_cable.url = "ws://192.168.1.39:3002/cable"
config.action_cable.url = "ws://192.168.1.196:3002/cable"
end

0
config/environments/production.rb Normal file → Executable file
View File

0
config/environments/test.rb Normal file → Executable file
View File

0
config/initializers/application_controller_renderer.rb Normal file → Executable file
View File

9
config/initializers/assets.rb Normal file → Executable file
View File

@@ -10,9 +10,13 @@ Rails.application.config.assets.version = '1.0'
# application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
# Rails.application.config.assets.precompile += %w( search.js )
# -- Initial Layout -----
Rails.application.config.assets.precompile += %w( login.css )
Rails.application.config.assets.precompile += %w( login.js )
# --- Waiter/ Cashier - Orgiami ----
Rails.application.config.assets.precompile += %w( origami.css )
# Rails.application.config.assets.precompile += %w( origami.js )
Rails.application.config.assets.precompile += %w( origami.js )
# -- Order Queue Station -----
Rails.application.config.assets.precompile += %w( OQS.css )
#Rails.application.config.assets.precompile += %w( OQS.js )
@@ -39,8 +43,9 @@ Rails.application.config.assets.precompile += %w( addorder.js )
# --- Custom SX Themem ----
Rails.application.config.assets.precompile += %w( sx-sidebar.css )
Rails.application.config.assets.precompile += %w( popper.min.js )
# --- Inventory Definition ----
Rails.application.config.assets.precompile += %w( inventory_definitions.css )
Rails.application.config.assets.precompile += %w( inventory.js )

0
config/initializers/backtrace_silencers.rb Normal file → Executable file
View File

0
config/initializers/carrier_wave.rb Normal file → Executable file
View File

0
config/initializers/cookies_serializer.rb Normal file → Executable file
View File

0
config/initializers/filter_parameter_logging.rb Normal file → Executable file
View File

0
config/initializers/inflections.rb Normal file → Executable file
View File

0
config/initializers/kaminari_config.rb Normal file → Executable file
View File

0
config/initializers/mime_types.rb Normal file → Executable file
View File

0
config/initializers/new_framework_defaults.rb Normal file → Executable file
View File

0
config/initializers/ranged_datetime_wrapper.rb Normal file → Executable file
View File

0
config/initializers/session_store.rb Normal file → Executable file
View File

0
config/initializers/simple_form.rb Normal file → Executable file
View File

0
config/initializers/simple_form_bootstrap.rb Normal file → Executable file
View File

0
config/initializers/sx.rb Normal file → Executable file
View File

0
config/initializers/wrap_parameters.rb Normal file → Executable file
View File

494
config/locales/en.yml Normal file → Executable file
View File

@@ -5,6 +5,8 @@ en:
oqs: "Order Queue Station"
origami: "Cashier"
crm: "CRM"
customer: "Customer"
queue: "Queue"
inventory: "Inventory"
settings: "Settings"
transactions: "Transactions"
@@ -18,6 +20,8 @@ en:
staff: "Staff"
products: "Products"
promotions: "Promotions"
commissions: "Commissions"
commissioners: "Commissioners"
printer: "Printer"
logout: "Logout"
sale: "Sale"
@@ -34,6 +38,33 @@ en:
category: "Category"
processed: "Processed"
competed: "Completed"
tax_profile: "Tax Profile"
payment_method: "Payment Method"
payment_methods: "Payment Methods"
accounts: "Accounts"
details: "Details"
menus: "Menus"
sale_count: "SALE COUNT"
total_sale: "TOTAL SALE"
total_credit: "TOTAL CREDIT"
total_card: "TOTAL CARD"
OQS: "OQS"
tables: "Tables"
rooms: "Rooms"
cash_in: "Cash In"
cash_out: "Cash Out"
close_cashier: "Close Cashier"
payment_reference: "Payment Reference"
reference_number: "Reference Number"
shift_started_at: "Shift Started At"
cashier_name: "Cashier Name"
closing_balance: "Closing Balance"
card_tap: "Card Tap"
customer_details: "Customer Details"
order_details: "Order Details"
sale_details: "Sale Details"
inventory_definitions: "Inventory Definitions"
sale_audits: "Sale Audits"
views:
btn:
@@ -78,6 +109,9 @@ en:
foc: "FOC"
nett: "NETT"
cash: "CASH"
mpu: "MPU"
jcb: "JCB"
visa: "VISA"
credit: "CREDIT"
other_payment: "Other Payment"
percentage: "PERCENTAGE"
@@ -95,6 +129,466 @@ en:
previous: "‹ Prev"
next: "Next ›"
truncate: "…"
right_panel:
header:
page_detail: "PAGE DETAIL"
button_lists: "BUTTON LISTS"
link_lists: "LINK LISTS"
zone: "Zone"
dining_facilities: "Dining Facilities"
menu: "Menu"
menu_categories: "Menu Categories"
menu_category: "Menu Category"
menu_item: "Menu Item"
menu_items: "Menu Items"
menu_item_instances: "Menu Item Instances"
menu_item_attributes: "Menu Item Attributes"
menu_item_options: "Menu Item Options"
order_queue_stations: "Order Queue Stations"
cashier_terminal: "Cashier Terminal"
print_settings: "Print Settings"
transaction_sales: "Transactions Sales"
button:
new: "NEW"
create: "CREATE"
show: "SHOW"
update: "UPDATE"
edit: "EDIT"
delete: "DELETE"
new_table: "NEW TABLE"
new_room: "NEW ROOM"
add_extra_charges: "ADD FOR EXTRA CHARGES"
home: "Home"
back: "Back"
menu: "Menu"
item_set: "Item Set"
item_attributes: "Item Attributes"
item_options: "Item Options"
submit: "SUBMIT"
new_simple_menu_item: "NEW SIMPLE MENU ITEM"
new_set_menu_item: "NEW SET MENU ITEM"
pick_image: "PICK IMAGE"
cancel: "CANCEL"
assign_processing_items: "ASSIGN PROCESSING ITEMS"
add_product: "ADD PRODUCT"
queue: "QUEUE"
save: "SAVE"
finish: "FINISH"
save_to_journal: "Save to Journal"
search_keyboard: "Search Keyword"
detail:
name: "Name"
type: "Type"
status: "Status"
order_by: "Order by"
seater: "Seater"
is_active: "Is active"
account: "Account"
created_by: "Created by"
created_at: "Created at"
updated_at: "Updated at"
action: "Action"
action_at: "Action At"
actions: "Actions"
item_code: "Item code"
unit_price: "Unit price"
taxable: "Taxable"
charge_type: "Charge type"
minimum_free_time: "Minimum Free Time"
charge_block: "Charge block"
time_rounding: "Time rounding"
for: " for "
checkbox: "checkbox "
valid_days: "Valid Days"
valid_from: "Valid From"
valid_to: "Valid To"
sub_cat_count: "Sub-Cat Count"
items_count: "Items Count"
number_of: "number of "
category_code: "Category Code"
alt_name: "Alt name"
parent: "Parent"
parent_item: "Parent Item"
min_qty: "Min qty"
account_type: "Account type"
is_sub_item: "Is sub item"
unit: "Unit"
item_attributes: "Item attributes"
item_options: "Item options"
menu_item_image: "Menu Item Image"
item_set: "Item Set"
item_sets: "Item sets"
instance_code: "Instance Code"
instance_name: "Instance Name"
price: "Price"
promotion: "Promotion"
item_instance_code: "Item instance code"
item_instance_name: "Item instance name"
is_on_promotion: "Is on promotion"
promotion_price: "Promotion price"
is_default: "Is default"
min_selectable_qty: "Min selectable qty"
max_selectable_qty: "Max selectable qty"
value: "Value"
station_name: "Station name"
printer_name: "Printer name"
auto_print: "Auto print"
print_copy: "Print copy"
alternate_name: "Alternate name"
processing_items: "Processing items"
font_size: "Font size"
cut_per_print: "Cut per print"
select_menu_items: "Select Menu Items"
select_item: "Select Item"
employee: "Employee"
role: "Role"
employee_numeric_id: "Employee Numeric ID"
password: "Password"
login: "Login"
show_tax: "Show tax"
show_cashier: "Show cashier"
is_currently_login: "Is currently login"
auto_print_receipt: "Auto print receipt"
font: "Font"
show_guest_info: "Show guest info"
header: "Header"
footer: "Footer"
unique_code: "Unique code"
page_width: "Page width"
page_height: "Page height"
print_copies: "Print copies"
template: "Template"
api_settings: "Api settings"
precision: "Precision"
delimiter: "Delimiter"
heading_space: "Heading space"
rate: "Rate"
inclusive: "Inclusive"
payment_method: "Payment method"
gateway: "Gateway"
comm_type: "Comm type"
auth_token: "Auth token"
merchant_account: "Merchant account"
additional_parameters: "Additional parameters"
title: "Title"
discount: "Discount"
point: "Point"
bonus: "Bonus"
rebate: "Rebate"
description: "Description"
information: "Information"
product_image: "Product Image"
promotion_code: "Promotion Code"
start_date: "Start Date"
end_date: "End Date"
start_time: "Start Time"
end_time: "End Time"
promotion_day: "Promotion Day"
original_product: "Original Product"
item: "Item"
net_off: "Net off"
net_price: "Net price"
percentage: "Percentage"
product: "Product"
commission_type: "Commission Type"
amount: "Amount"
active: "Active"
joined_date: "Joined Date"
resigned_date: "Resigned Date"
qty: "Qty"
date: "Date"
queue_no: "Queue no"
contact_no: "Contact no"
remark: "Remark"
can_get_points: "Can get Points"
can_rebate: "Can rebate"
is_available: "Is available"
attribute_type: "Attribute type"
sr_no: "Sr.no"
card_no: "Card No"
email: "Email"
inventory: "inventory"
stock_taking: "Stock Taking"
stock_check: "Stock Check"
stock_check_report: "Stock Check Report"
min_order: "Min Order"
max_stock: "Max Stock"
created_time: "Created Time"
level: "Level"
balance: "Balance"
set_stock_check_reason: "Set Stock Check Reason"
salutation: "Salutation"
mr: "Mr"
miss: "Miss"
mrs: "Mrs"
mdm: "Mdm"
gender: "Gender"
male: "Male"
female: "Female"
sr_no: "Sr.No"
date_of_birth: "Date Of Birth"
select_customer_type: "Select Customer Type"
paypar_account_no: "Paypar Account No"
select_membership_group: "Select Membership Group"
company: "Company"
nrc_passport_no: "NRC/Passport No"
address: "Address"
dob: "DOB"
membership_type: "Membership Type"
discount_amount: "Discount Amount"
from_account: "From Account"
receipt_no: "Receipt No"
order_id: "Order ID"
order_date: "Order date"
sale_id: "Sale ID"
grand_total: "Grand Total"
tax_amount: "Tax Amount"
sales_status: "Sales Status"
receipt_date: "Receipt Date"
check_by: "Check By"
check_at: "Check At"
reason: "Reason"
stock_count: "Stock Count"
stock_balance: "Stock Balance"
different: "Different"
order: "Order"
from: "From"
to: "To"
order_status: "Order Status"
order_items: "Order Items"
total_price: "Total price"
enter_keyboards: "Enter Keywords"
receipt_generated_at: "Receipt generated at"
total: "Total"
total_pay_amount: "Total Pay Amount"
change: "Change"
option: "Option"
waiter: "Waiter"
membership_transactions: "Membership Transactions"
redeem: "Redeem"
approved_at: "Approved At"
credit_note: "Credit Note"
requested_by: "Requested by"
requested_at: "Requested at"
payment_status: "Payment status"
sale_status: "Sale status"
total_amount: "Total amount"
total_discount: "Total discount"
total_tax: "Total tax"
tax_type: "Tax type"
rnd_adj: "Rounding adjustment"
amt_received: "Amount received"
amt_changed: "Amount changed"
select_customer: "Select Customer"
credit_amount: "Credit Amount"
daily_sale_report: "Daily Sale Report"
from_date: "From Date"
to_date: "To Date"
sr: "Sr"
void_amount: "Void Amount"
mpu_sales: "MPU Sales"
master_sales: "Master Sales"
visa_sales: "Visa Sales"
jcb_sales: "JCB Sales"
redeem_sales: "Redeem Sales"
cash_sales: "Cash Sales"
credit_sales: "Credit Sales"
foc_sales: "FOC Sales"
net_amount: "Net Amount"
sale_item_report: "Sale Item Report"
select_period: "Select Period"
shift_name: "Shift Name"
code: "Code"
item: "Item"
revenue: "Revenue"
total_price_by: "Total Price By"
sub_total: "Sub Total"
cash_received: "Cash Received"
card_sales: "Card Sales"
select_payments: "Select Payments"
all_shift: "All Shift"
receipt_no_report: "Receipt No Report"
rnd_adj_sh: "Rounding Adj."
shift_sale_report: "Shift Sale Report"
cashier_station: "Cashier Station"
cash_payment: "Cash Payment"
credit_payment: "Credit Payment"
credit_payment_report: "Credit Payment Report"
void_sale_report: "Void Sale Report"
sale_date: "Sale Date"
commission_report: "Commission Report"
commission_price: "Commission Price"
commission_amount: "Commission Amount"
code_txt: "code "
charge_txt: "charge"
time_txt: "time"
block_txt: " block"
price_txt: " price"
zone_txt: "zone"
table_txt: "table"
seat_txt: "seat"
order_txt: "order"
room_txt: "room"
extra_charges_txt: "extra charges"
dashboard_txt: "dashboard"
data_txt: " data"
type_txt: "type"
home_txt: "to go dashboard"
back_txt: "to go"
name_txt : " name / user can view"
name_txt2: "name"
is_active_txt : "is active or not"
created_by_txt : "user who created "
actions_txt : "user can view/change "
actions_txt2 : "user can change/delete "
actions_txt3: "user can change "
status_txt: " is available or not"
created_at_txt: "datetime for created "
updated_at_txt: "datetime for updated "
item_code_txt: "generated item code for "
taxable_txt: " taxable or not"
minimum_free_time_txt: "minimum time for free"
time_rounding_txt: "rounding time"
time_rounding_txt2: "time rounding"
write_txt: "to write "
menu_txt: "menu"
menu_categories_txt: "menu categories"
item_set_txt: "item set"
valid_days_txt: "valid days([1-7] => [Mon-Sun]) "
valid_from_txt: "valid from/start time "
valid_to_txt: "valid to/end time "
select_txt: "select"
sub_categories_txt: "sub categories"
item_txt: "item"
items_txt: "items"
alt_name_txt: "alt name"
parent_txt: "parent"
menu_item_txt: "menu item"
parent_item_txt: "parent item"
simple_menu_item_txt: "simple menu item"
set_menu_item_txt: "set menu item"
min_qty_txt: "min qty"
account_type_txt: "account type"
sub_item_txt: "sub item"
unit_txt: "unit"
multi_select_txt: "multi select"
upload_txt: "upload"
item_attributes_txt: "item attributes"
item_options_txt: "item options"
image_txt: "image"
item_sets_txt: "item sets"
item_attributes_txt: "item attributes"
item_options_txt: "item options"
menu_item_instance_txt: "menu item instance"
promotion_txt: "promotion"
default_txt: "is default or not"
is_on_promotion_txt: "is on promotion or not"
min_selectable_qty_txt: "min selectable qty"
max_selectable_qty_txt: "max selectable qty"
value_txt: "value"
type_txt2: "user can view type"
order_queue_stations_txt: "order queue stations"
station_name_txt: "station"
printer_txt: "printer"
auto_print_txt: "auto print"
status_txt2: "status"
copy_print_txt: "copy print"
assign_processing_items_txt: "assign processing items"
processing_items_txt: "processing items"
cut_per_item_txt: "cut per item"
font_size_txt: "font size"
employee_txt: "employee"
role_txt: "role"
employee_numeric_id_txt: "employee numeric id"
password_txt: "password"
cashier_terminal_txt: "cashier terminal"
login_txt: "login"
tax_txt: "tax"
cashier_txt: "cashier"
is_currently_login_txt: "is currently login"
auto_print_receipt_txt: "auto print receipt"
font_txt: "font"
guest_info_txt: "guest info"
header_txt: "header"
footer_txt: "footer"
unique_code_txt: "unique code"
page_width_txt: "page width"
page_height_txt: "page height"
print_copies_txt: "print copies"
print_settings_txt: "print settings"
template_txt: "template"
api_settings_txt: "api settings"
delimiter_txt: "delimiter"
heading_space_txt: "heading space"
tax_profiles_txt: "tax profiles"
inclusive_txt: "inclusive"
rate_txt: "rate"
gateway_txt: "gateway"
payment_method_txt: "payment method"
comm_type_txt: "comm Type"
url_txt: "url"
auth_token_txt: "auth token"
merchant_account_txt: "merchant account"
additional_parameters_txt: "additional parameters"
title_txt: "title"
account_txt: "account"
discount_txt: "discount"
point_txt: "point"
bonus_txt: "bonus"
rebate_txt: "rebate"
product_txt: "product"
description_txt: "description"
information_txt: "information"
promotion_txt: "promotion"
promotion_txt2: "/ user can view"
promotion_code_txt: "promotion code"
start_date_txt: "start date"
end_date_txt: "end date"
start_time_txt: "start time"
end_time_txt: "end time"
promotion_day_txt: "promotion day"
original_product_txt: "original product"
net_off_txt: "net off"
net_price_txt: "net price"
percentage_txt: "percentage"
commission_txt: "commission"
product_txt: "product"
commission_type_txt: "commission type"
amount_txt: "amount"
active_txt: "active"
commissioner_txt: "commissioner"
joined_date_txt: "joined date"
resigned_date_txt: "resigned date"
qty_txt: "qty"
date_txt: "date"
queue_txt: "queue"
queue_no_txt: "queue no"
contacct_no_txt: "contact no"
remark_txt: "remark"
accounts_txt: "accounts"
stock_taking_txt: "stock taking"
stock_check_report_txt: "stock check report"
item_code_txt2: "item code"
min_order_level_txt: "minimum order level"
max_stock_level_txt: "maximum stock level"
stock_check_reason_txt: "stock check reason"
stock_check_txt: "stock check"
detail_txt: "detail"
no_data_txt: "There is no data for search"
assign_txt: "to assign "
remove_txt: "to remove "
cancel_btn_txt: "to cancel "
image_btn_txt: "to upload "
create_btn_txt: "to create "
submit_btn_txt: "to change "
new_btn_txt: "to add "
show_btn_txt: "to view "
edit_btn_txt: "to edit "
delete_btn_txt: "to delete "
update_btn_txt: "to update "
helpers:
page_entries_info:
one_page:

33
config/locales/mm.yml Normal file → Executable file
View File

@@ -5,6 +5,8 @@ mm:
oqs: "အမှာစာနေရာများ"
origami: "အရောင်းကောင်တာ"
crm: "စားသုံးသူကြီးကြပ်ရေး"
customer: "စားသုံးသူကြီးကြပ်ရေး"
queue: "တန်းစီစာရင်း"
inventory: "ကုန်လှောင်ရုံ"
settings: "သတ်မှတ်ချက်များ"
transactions: "အလုပ်ပြီးမြောက်မှု့များ"
@@ -18,6 +20,8 @@ mm:
staff: "၀န်ထမ်းများ"
products: "ကုန်စည်များ"
promotions: "အရောင်းမြှင့်တင်ရေး"
commissions: "ကော်မရှင်များ"
commissioners: "ကော်မရှင်နာများ"
printer: "ပရင့်တာ"
logout: "ထွက်ရန်"
sale: "အရောင်း"
@@ -34,6 +38,33 @@ mm:
category: "အမျိုးအစား"
processed: "လုပ်ဆောင်ခဲ့ပြီး"
completed: "ဆောင်ရွက်ပြီးစီး"
tax_profile: "အခွန်အမျိုးအစား"
payment_method: "ငွေပေးချေရန်နည်းလမ်း"
payment_methods: "ငွေပေးချေရန်နည်းလမ်းများ"
accounts: "အကောင့်များ"
details: "အသေးစိတ်များ"
menus: "မီနူးများ"
sale_count: "ရောင်းရသည့်အရေအတွက်"
total_sale: "စုစုပေါင်းရောင်းရငွေ"
total_credit: "စုစုပေါင်းအကြွေး"
total_card: "ငွေရှင်းကတ်စုစုပေါင်း"
OQS: "အိုကျူအက်စ်"
tables: "စားပွဲများ"
rooms: "အခန်းများ"
cash_in: "ငွေသွင်း"
cash_out: "ငွေထုတ်"
close_cashier: "ငွေစာရင်းအပိတ်"
payment_reference: "ငွေပေးချေမှုအကိုးအကား"
reference_number: "ငွေပေးချေမှုနံပါတ်"
shift_started_at: "တာ၀န်စခဲ့သည့်အချိန်"
cashier_name: "ငွေထိန်းနာမည်"
closing_balance: "ငွေစာရင်းအပိတ်စာရင်း"
card_tap: "ကတ်ဖြင့်တို့ထိပါ"
customer_details: "စားသုံးသူကိုယ်ရေးအသေးစိတ်"
order_details: "မှာကြားမှုအသေးစိတ်"
sale_details: "ရောင်းရငွေအသေးစိတ်"
inventory_definitions: "ကုန်လှောင်ရုံပစ္စည်းဖွင့်ဆိုချက်များ"
sale_audits: "အရောင်းပြင်ဆင်ခြင်းများ"
views:
btn:
@@ -68,7 +99,7 @@ mm:
customer: "စားသုံးသူ"
discount: "လျှော့စျေး"
charges: "ပိုက်ဆံကောက်သည်"
commissions: "ကော်မရှင်များ"
commissions: "ကော်မရှင်များ"
in_duties: "တာဝန်ကျသူများ"
move: "ရွေ့ပြောင်းသည်"
req_bill: "ကျသင့်ငွေတောင်းခံသည်"

0
config/locales/simple_form.en.yml Normal file → Executable file
View File

0
config/puma.rb Normal file → Executable file
View File

0
config/puma.rb.production Normal file → Executable file
View File

7
config/routes.rb Normal file → Executable file
View File

@@ -178,10 +178,12 @@ scope "(:locale)", locale: /en|mm/ do
post '/:sale_id/get_customer' => "customers#get_customer"
get '/addorders/get_menu_category/:id' => "addorders#get_menu_category",:as => "get_menu_category", :defaults => { :format => 'json' }
get '/addorders/products/list' => "addorders#get_all_product",:as => "get_all_product", :defaults => { :format => 'json' }
get '/:addorders/:id' => "addorders#detail"
post '/:addorders/create' => "addorders#create", :defaults => { :format => 'json' }
get '/addorders/get_menu_category/:id' => "addorders#get_menu_category",:as => "get_menu_category", :defaults => { :format => 'json' }
resources :commissions
resources :commissioners
@@ -339,6 +341,7 @@ scope "(:locale)", locale: /en|mm/ do
resources :void_sale, :only => [:index, :show]
resources :commission, :only => [:index, :show]
resources :stock_check, :only => [:index, :show]
resources :payment_method
get "receipt_no/get_shift_by_date", to: "receipt_no#get_shift_by_date", as: "get_shift_by_date"
end

0
config/schedule.rb Normal file → Executable file
View File

0
config/secrets.yml Normal file → Executable file
View File

0
config/sidekiq.yml Normal file → Executable file
View File

0
config/spring.rb Normal file → Executable file
View File

3
config/sx.yml Normal file → Executable file
View File

@@ -10,4 +10,5 @@ test:
# instead read values from the environment.
production:
server_mode: cloud
sx_provision_url: secure.smartsales.asia/api
sx_provision_url: secure.smartsales.asia/api