change customer and sale tax for takeaway

This commit is contained in:
phyusin
2018-05-09 15:40:13 +06:30
parent 0219a4847b
commit 0f1ce09416
15 changed files with 58 additions and 2 deletions

2
app/controllers/crm/customers_controller.rb Executable file → Normal file
View File

@@ -39,7 +39,7 @@ class Crm::CustomersController < BaseCrmController
@membership_types = Lookup.collection_of("member_group_type")
@taxes = TaxProfile.all.order("order_by asc")
@taxes = TaxProfile.where(:group_type => 'cashier')
@filter = filter

2
app/controllers/origami/customers_controller.rb Executable file → Normal file
View File

@@ -86,7 +86,7 @@ class Origami::CustomersController < BaseOrigamiController
@crm_customer = Customer.new
@count_customer = Customer.count_customer
@taxes = TaxProfile.all.order("order_by asc")
@taxes = TaxProfile.where(:group_type => 'cashier')
# if flash["errors"]
# @crm_customer.valid?
# end