fix accounting fails
This commit is contained in:
@@ -249,6 +249,12 @@
|
||||
<a-tab-pane v-if="pargarWalletSyncVisible" key="لاگ پرگار" tab="لاگ پرگار">
|
||||
<CustomerPargarLogsTable ref="pargarLogsTable" :customer-id="userInfo?.id" />
|
||||
</a-tab-pane>
|
||||
<a-tab-pane v-if="tahesabDocsVisible" key="اسناد تهحساب" tab="اسناد تهحساب">
|
||||
<CustomerTahesabDocsTable ref="tahesabDocsTable" :customer-id="userInfo?.id" />
|
||||
</a-tab-pane>
|
||||
<a-tab-pane v-if="zarinDocsVisible" key="اسناد زرین" tab="اسناد زرین">
|
||||
<CustomerZarinDocsTable ref="zarinDocsTable" :customer-id="userInfo?.id" />
|
||||
</a-tab-pane>
|
||||
<a-tab-pane
|
||||
v-if="conditionalOrderEnabled"
|
||||
key="سفارش شرطی"
|
||||
@@ -310,6 +316,8 @@ import FundsTable from '@/pages/menuPages/customers/base/components/fundsTable.v
|
||||
import PiggyFundsTable from '@/pages/menuPages/customers/base/components/piggyFundsTable.vue'
|
||||
import ReferralsTable from '@/pages/menuPages/customers/base/components/referralsTable.vue'
|
||||
import CustomerPargarLogsTable from '@/pages/menuPages/customers/base/components/CustomerPargarLogsTable.vue'
|
||||
import CustomerTahesabDocsTable from '@/pages/menuPages/customers/base/components/CustomerTahesabDocsTable.vue'
|
||||
import CustomerZarinDocsTable from '@/pages/menuPages/customers/base/components/CustomerZarinDocsTable.vue'
|
||||
import CustomerConditionalOrderTab from '@/pages/menuPages/customers/base/components/CustomerConditionalOrderTab.vue'
|
||||
import type { Order } from '@/model/order'
|
||||
import Icon from '@core/components/BaseIcon/src/Icon.vue'
|
||||
@@ -384,6 +392,8 @@ const referralTable = ref(null)
|
||||
const fundTable = ref(null)
|
||||
const piggyFundTable = ref(null)
|
||||
const pargarLogsTable = ref<{ fetch?: () => void } | null>(null)
|
||||
const tahesabDocsTable = ref<{ fetch?: () => void } | null>(null)
|
||||
const zarinDocsTable = ref<{ fetch?: () => void } | null>(null)
|
||||
const refreshTable = () => table?.value?.fetch()
|
||||
const refreshOrderTable = () => orderTable?.value?.fetch()
|
||||
const refreshTransactionTable = () => transactionTable?.value?.fetch()
|
||||
@@ -392,6 +402,8 @@ const refreshReferralTable = () => referralTable?.value?.fetch()
|
||||
const refreshFundTable = () => fundTable?.value?.fetch()
|
||||
const refreshPiggyFundTable = () => piggyFundTable?.value?.fetch()
|
||||
const refreshPargarLogsTable = () => pargarLogsTable.value?.fetch?.()
|
||||
const refreshTahesabDocsTable = () => tahesabDocsTable.value?.fetch?.()
|
||||
const refreshZarinDocsTable = () => zarinDocsTable.value?.fetch?.()
|
||||
|
||||
let updateKey = ref<number>(0)
|
||||
|
||||
@@ -560,6 +572,14 @@ async function refreshInfoTab(key: string) {
|
||||
await nextTick()
|
||||
refreshPargarLogsTable()
|
||||
break
|
||||
case 'اسناد تهحساب':
|
||||
await nextTick()
|
||||
refreshTahesabDocsTable()
|
||||
break
|
||||
case 'اسناد زرین':
|
||||
await nextTick()
|
||||
refreshZarinDocsTable()
|
||||
break
|
||||
case 'سفارش شرطی':
|
||||
await refetchCustomerProfile()
|
||||
break
|
||||
@@ -723,6 +743,9 @@ const pargarWalletSyncVisible = computed(
|
||||
() => accountingProviderSetting.value === 'pargar'
|
||||
)
|
||||
|
||||
const tahesabDocsVisible = computed(() => accountingProviderSetting.value === 'tahesab')
|
||||
const zarinDocsVisible = computed(() => accountingProviderSetting.value === 'zarin')
|
||||
|
||||
const pargarWalletCanSync = computed(() =>
|
||||
isValidAccountingCode(userInfo.value?.pargar_account_id)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user