Muhasebe ayarları başvuru bedeli kdv oranı eklendi
This commit is contained in:
@ -56,7 +56,9 @@
|
|||||||
<td>Toplam İkramiye Bedeli:</td>
|
<td>Toplam İkramiye Bedeli:</td>
|
||||||
<td>
|
<td>
|
||||||
{{
|
{{
|
||||||
globalStore.toTrLocale(Number(piyangoIkramiyeStore.totalIkramiyeValues.toplamDeger))
|
globalStore.toTrLocale(
|
||||||
|
Number(piyangoIkramiyeStore.totalIkramiyeValues.toplamDeger)
|
||||||
|
)
|
||||||
}}
|
}}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@ -71,7 +73,8 @@
|
|||||||
<td>
|
<td>
|
||||||
{{
|
{{
|
||||||
globalStore.toTrLocale(
|
globalStore.toTrLocale(
|
||||||
Number(piyangoIkramiyeStore.totalIkramiyeValues.toplamDeger) + calculatedKdv
|
Number(piyangoIkramiyeStore.totalIkramiyeValues.toplamDeger) +
|
||||||
|
calculatedKdv
|
||||||
)
|
)
|
||||||
}}
|
}}
|
||||||
</td>
|
</td>
|
||||||
@ -130,7 +133,10 @@
|
|||||||
const selectedOranId = ref<number | null>(null)
|
const selectedOranId = ref<number | null>(null)
|
||||||
const calculatedKdv = ref<number>(0)
|
const calculatedKdv = ref<number>(0)
|
||||||
const calculatedBasvuruKdv = computed<number>(
|
const calculatedBasvuruKdv = computed<number>(
|
||||||
() => (Number(muhasebeSettingsStore.muhasebeSettingsForm.basvuruBedeli) * 20) / 100
|
() =>
|
||||||
|
(Number(muhasebeSettingsStore.muhasebeSettingsForm.basvuruBedeli) *
|
||||||
|
Number(muhasebeSettingsStore.muhasebeSettingsForm.BasvuruBedeliKdvOrani)) /
|
||||||
|
100
|
||||||
)
|
)
|
||||||
|
|
||||||
const GetData = async () => {
|
const GetData = async () => {
|
||||||
|
|||||||
@ -6,17 +6,6 @@
|
|||||||
<div class="form-part-title-buttons"></div>
|
<div class="form-part-title-buttons"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-part-content" v-if="muhasebeSettingsService.loaded">
|
<div class="form-part-content" v-if="muhasebeSettingsService.loaded">
|
||||||
<!-- <form-input-->
|
|
||||||
<!-- required-->
|
|
||||||
<!-- half-->
|
|
||||||
<!-- modelKey="izinBedeliOrani"-->
|
|
||||||
<!-- v-model="muhasebeSettingsStore.muhasebeSettingsForm.izinBedeliOrani"-->
|
|
||||||
<!-- :invalidText="muhasebeSettingsValidationStore.invalidTexts.izinBedeliOrani" -->
|
|
||||||
<!-- label="İzin Bedeli Oranı"-->
|
|
||||||
<!-- maxlength="3"-->
|
|
||||||
<!-- @keydown="validationStore.allowNumbersWithKeys"-->
|
|
||||||
<!-- description="1-100 arasında bir rakam giriniz"-->
|
|
||||||
<!-- @keyup="OnKeyup" />-->
|
|
||||||
<form-input
|
<form-input
|
||||||
required
|
required
|
||||||
half
|
half
|
||||||
@ -26,6 +15,15 @@
|
|||||||
label="Başvuru Bedeli"
|
label="Başvuru Bedeli"
|
||||||
@keydown="validationStore.allowPrice"
|
@keydown="validationStore.allowPrice"
|
||||||
@keyup="OnKeyup" />
|
@keyup="OnKeyup" />
|
||||||
|
<form-input
|
||||||
|
required
|
||||||
|
half
|
||||||
|
modelKey="BasvuruBedeliKdvOrani"
|
||||||
|
v-model="muhasebeSettingsStore.muhasebeSettingsForm.BasvuruBedeliKdvOrani"
|
||||||
|
:invalidText="muhasebeSettingsValidationStore.invalidTexts.BasvuruBedeliKdvOrani"
|
||||||
|
label="Başvuru Bedeli KDV Oranı"
|
||||||
|
@keydown="validationStore.allowPrice"
|
||||||
|
@keyup="OnKeyup" />
|
||||||
<form-input
|
<form-input
|
||||||
required
|
required
|
||||||
half
|
half
|
||||||
@ -58,7 +56,10 @@
|
|||||||
@click="muhasebeSettingsService.SaveMuhasebeSettings">
|
@click="muhasebeSettingsService.SaveMuhasebeSettings">
|
||||||
Kaydet
|
Kaydet
|
||||||
</button>
|
</button>
|
||||||
<button class="button-c button-cancel" @click="muhasebeSettingsStore.RestoreData" v-if="muhasebeSettingsValidationStore.formChanged">
|
<button
|
||||||
|
class="button-c button-cancel"
|
||||||
|
@click="muhasebeSettingsStore.RestoreData"
|
||||||
|
v-if="muhasebeSettingsValidationStore.formChanged">
|
||||||
Vazgeç
|
Vazgeç
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -7,8 +7,8 @@ export const useMuhasebeSettingsStore = defineStore('muhasebeSettingsStore', ()
|
|||||||
|
|
||||||
const muhasebeSettingsBaseForm = reactive<Record<string, any>>({
|
const muhasebeSettingsBaseForm = reactive<Record<string, any>>({
|
||||||
appUserId: usersStore.userId,
|
appUserId: usersStore.userId,
|
||||||
izinBedeliOrani: 30,
|
|
||||||
basvuruBedeli: '10.167,00',
|
basvuruBedeli: '10.167,00',
|
||||||
|
BasvuruBedeliKdvOrani: 30,
|
||||||
kurumBanka: 'Türkiye Vakıflar Bankası T.A.O.',
|
kurumBanka: 'Türkiye Vakıflar Bankası T.A.O.',
|
||||||
kurumBankaSube: 'Ankara Kurumsal',
|
kurumBankaSube: 'Ankara Kurumsal',
|
||||||
kurumIBAN: 'TR26 0001 5001 5800 7295 4624 00'
|
kurumIBAN: 'TR26 0001 5001 5800 7295 4624 00'
|
||||||
|
|||||||
@ -19,22 +19,24 @@ export const useMuhasebeSettingsValidationStore = defineStore(
|
|||||||
validationStore.IsFieldEmpty(
|
validationStore.IsFieldEmpty(
|
||||||
muhasebeSettingsStore.muhasebeSettingsForm,
|
muhasebeSettingsStore.muhasebeSettingsForm,
|
||||||
invalidTexts,
|
invalidTexts,
|
||||||
'izinBedeliOrani',
|
'BasvuruBedeliKdvOrani',
|
||||||
'Lütfen izin bedeli oranını giriniz.'
|
'Lütfen izin bedeli oranını giriniz.'
|
||||||
)
|
)
|
||||||
if (
|
if (
|
||||||
!validationStore.checkEmpty(
|
!validationStore.checkEmpty(
|
||||||
muhasebeSettingsStore.muhasebeSettingsForm.izinBedeliOrani
|
muhasebeSettingsStore.muhasebeSettingsForm.BasvuruBedeliKdvOrani
|
||||||
)
|
)
|
||||||
) {
|
) {
|
||||||
if (
|
if (
|
||||||
Number(muhasebeSettingsStore.muhasebeSettingsForm.izinBedeliOrani) === 0 ||
|
Number(muhasebeSettingsStore.muhasebeSettingsForm.BasvuruBedeliKdvOrani) ===
|
||||||
Number(muhasebeSettingsStore.muhasebeSettingsForm.izinBedeliOrani) > 100
|
0 ||
|
||||||
|
Number(muhasebeSettingsStore.muhasebeSettingsForm.BasvuruBedeliKdvOrani) > 100
|
||||||
) {
|
) {
|
||||||
isFormValid.value = false
|
isFormValid.value = false
|
||||||
invalidTexts['izinBedeliOrani'] = 'Lütfen 0-100 arasında bir değer giriniz.'
|
invalidTexts['BasvuruBedeliKdvOrani'] =
|
||||||
|
'Lütfen 0-100 arasında bir değer giriniz.'
|
||||||
} else {
|
} else {
|
||||||
delete invalidTexts['izinBedeliOrani']
|
delete invalidTexts['BasvuruBedeliKdvOrani']
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
validationStore.IsFieldEmpty(
|
validationStore.IsFieldEmpty(
|
||||||
|
|||||||
Reference in New Issue
Block a user