fix(04): role sale agent

This commit is contained in:
puriphatt 2024-09-03 10:33:10 +07:00
parent 8335f6cad6
commit aaa168b565

View file

@ -146,14 +146,15 @@ const { t } = useI18n();
const baseUrl = ref<string>(import.meta.env.VITE_API_BASE_URL); const baseUrl = ref<string>(import.meta.env.VITE_API_BASE_URL);
const priceDisplay = computed(() => ({ const priceDisplay = computed(() => ({
price: !isRoleInclude(['agency']), price: !isRoleInclude(['sale_agent']),
agentPrice: isRoleInclude([ agentPrice: isRoleInclude([
'admin', 'admin',
'head_of_admin', 'head_of_admin',
'head_of_sale',
'system', 'system',
'owner', 'owner',
'accountant', 'accountant',
'agency', 'sale_agent',
]), ]),
serviceCharge: isRoleInclude([ serviceCharge: isRoleInclude([
'admin', 'admin',