quick service tax

This commit is contained in:
Myat Zin Wai Maw
2019-12-20 14:12:57 +06:30
parent 40871c30fb
commit e3207ed1d5
4 changed files with 50 additions and 8 deletions

View File

@@ -81,7 +81,8 @@ class Crm::CustomersController < BaseCrmController
@membership_types = Lookup.collection_of("member_group_type")
# @taxes = TaxProfile.where(:group_type => 'cashier')
# @taxes = TaxProfile.all
# @taxes =TaxProfile.unscoped.select("id,(SELECT name from lookups where lookup_type='tax_profiles') as name")
@taxes = TaxProfile.unscoped.select("id, (CONCAT(name,'(',(SELECT name FROM lookups WHERE lookup_type='tax_profiles' AND value=group_type),')')) as name")
.order("group_type ASC,order_by ASC")