|
|
@@ -408,13 +408,18 @@ Page 'Mon abonnement'
|
|
|
class="theme-primary btn"
|
|
|
:href="
|
|
|
runtimeConfig.public.fileStorageBaseUrl +
|
|
|
+ '/Bon_de_commande/' +
|
|
|
(organizationProfile.isCmf
|
|
|
- ? '/Bon_de_commande/Achat_SMS_CMF.pdf'
|
|
|
- : '/Bon_de_commande/Achat_SMS_Public.pdf')
|
|
|
+ ? hasSmsModule
|
|
|
+ ? 'SMS_CMF.pdf'
|
|
|
+ : 'Achat_SMS_CMF.pdf'
|
|
|
+ : hasSmsModule
|
|
|
+ ? 'SMS_Public.pdf'
|
|
|
+ : 'Achat_SMS_Public.pdf')
|
|
|
"
|
|
|
target="_blank"
|
|
|
>
|
|
|
- acheter des credits SMS
|
|
|
+ {{ hasSmsModule ? $t('buy_more_sms_credits') : $t('buy_sms_credits') }}
|
|
|
<i class="fa-solid fa-greater-than small" />
|
|
|
</v-btn>
|
|
|
</template>
|
|
|
@@ -497,6 +502,8 @@ const showDialogTrialStopConfirmation: Ref<boolean> = ref(false)
|
|
|
const openedPanels: Ref<Array<string>> = initPanel()
|
|
|
const organizationProfile = getOrganizationProfile()
|
|
|
const accessProfileStore = useAccessProfileStore()
|
|
|
+// Check if organization has SMS module
|
|
|
+const hasSmsModule = computed(() => organizationProfile.hasModule('Sms'))
|
|
|
|
|
|
const { data: dolibarrAccount, pending: dolibarrPending } = fetch(
|
|
|
DolibarrAccount,
|