hl-core 0.0.10-beta.31 → 0.0.10-beta.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/api/base.api.ts CHANGED
@@ -593,10 +593,6 @@ export class ApiClass {
593
593
  });
594
594
  }
595
595
 
596
- async getProcessTariff(code: number | string = 5) {
597
- return await this.axiosCall({ method: Methods.GET, url: `/Arm/api/Dictionary/ProcessTariff/${code}` });
598
- }
599
-
600
596
  async setConfirmation(data: any) {
601
597
  return await this.axiosCall({
602
598
  method: Methods.POST,
@@ -362,10 +362,13 @@ export default defineComponent({
362
362
  return baseCondition && (currentDocument.value ? deleteFilesId.includes(String(currentDocument.value.fileTypeCode)) : false);
363
363
  }
364
364
  if (dataStore.isPension) {
365
- const canDeleteInPension = dataStore.isTask() && dataStore.isInitiator() && currentDocument.value.signed === true && currentDocument.value.signedType === 2;
365
+ const canDeleteInPension = dataStore.isTask() && dataStore.isInitiator();
366
+ const canDeletePaperInPension = canDeleteInPension && currentDocument.value.signed === true && currentDocument.value.signedType === 2;
367
+ if (canDeleteInPension && dataStore.isProcessEditable(formStore.applicationData.statusCode))
368
+ return formStore.requiredDocuments.some(i => i.code === currentDocument.value.fileTypeCode);
366
369
  if (formStore.applicationData.statusCode === 'AttachAppContractForm')
367
- return canDeleteInPension && (currentDocument.value.fileTypeCode === '5' || currentDocument.value.fileTypeCode === '19');
368
- if (formStore.applicationData.statusCode === 'ContractSignedFrom') return canDeleteInPension && currentDocument.value.fileTypeCode === '6';
370
+ return canDeletePaperInPension && (currentDocument.value.fileTypeCode === '5' || currentDocument.value.fileTypeCode === '19');
371
+ if (formStore.applicationData.statusCode === 'ContractSignedFrom') return canDeletePaperInPension && currentDocument.value.fileTypeCode === '6';
369
372
  }
370
373
  return false;
371
374
  });
@@ -55,15 +55,12 @@
55
55
  <base-form-input v-model="insured.gender.nameRu" class="mb-4" :label="$dataStore.t('form.gender')" :readonly="true" />
56
56
  </div>
57
57
  </base-form-section>
58
- <base-form-section
59
- v-if="isUnderwriterRole && whichProduct !== 'lifebusiness' && whichProduct !== 'gns' && whichProduct !== 'pensionannuitynew' && whichProduct !== 'balam'"
60
- :title="$dataStore.t('recalculationInfo')"
61
- >
58
+ <base-form-section v-if="isUnderwriterRole && whichProduct !== 'pensionannuitynew' && whichProduct !== 'balam'" :title="$dataStore.t('recalculationInfo')">
62
59
  <base-form-input
63
60
  v-model="productConditionsForm.lifeMultiply"
64
61
  :maska="$maska.numbers"
65
62
  :clearable="isRecalculationDisabled === false"
66
- :label="$dataStore.t('percent') + `Life Multiply`"
63
+ :label="lifeMultiplyLabel"
67
64
  :readonly="isRecalculationDisabled"
68
65
  :rules="whichProduct === 'gons' ? $dataStore.rules.recalculationMultiplyBetween : $dataStore.rules.recalculationMultiply"
69
66
  />
@@ -71,7 +68,7 @@
71
68
  v-model="productConditionsForm.lifeAdditive"
72
69
  :maska="$maska.numbers"
73
70
  :clearable="isRecalculationDisabled === false"
74
- :label="$dataStore.t('percent') + `Life Additive`"
71
+ :label="lifeAdditiveLabel"
75
72
  :readonly="readonlyLifeAdditive"
76
73
  :rules="$dataStore.rules.recalculationAdditive"
77
74
  />
@@ -80,7 +77,7 @@
80
77
  v-model="productConditionsForm.adbMultiply"
81
78
  :maska="$maska.numbers"
82
79
  :clearable="isRecalculationDisabled === false"
83
- :label="$dataStore.t('percent') + `Adb Multiply`"
80
+ :label="adbMultiplyLabel"
84
81
  :readonly="isRecalculationDisabled"
85
82
  :rules="$dataStore.rules.recalculationMultiply"
86
83
  />
@@ -89,7 +86,7 @@
89
86
  v-model="productConditionsForm.adbAdditive"
90
87
  :maska="$maska.numbers"
91
88
  :clearable="isRecalculationDisabled === false"
92
- :label="$dataStore.t('percent') + `Adb Additive`"
89
+ :label="adbAdditiveLabel"
93
90
  :readonly="isRecalculationDisabled"
94
91
  :rules="$dataStore.rules.recalculationAdditive"
95
92
  />
@@ -97,11 +94,12 @@
97
94
  v-model="productConditionsForm.disabilityMultiply"
98
95
  :maska="$maska.numbers"
99
96
  :clearable="isRecalculationDisabled === false"
100
- :label="$dataStore.t('percent') + `Disability Multiply`"
97
+ :label="disabilityMultiplyLabel"
101
98
  :readonly="readonlyDisabilityMultiply"
102
99
  :rules="whichProduct === 'gons' ? [] : $dataStore.rules.recalculationMultiply"
103
100
  />
104
101
  <base-form-input
102
+ v-if="hasDisabilityAdditive"
105
103
  v-model="productConditionsForm.disabilityAdditive"
106
104
  :maska="$maska.numbers"
107
105
  :clearable="isRecalculationDisabled === false"
@@ -326,7 +324,7 @@
326
324
  <div :class="[$styles.whiteBg, $styles.rounded]" class="p-2 h-12 flex items-center relative">
327
325
  <span class="ml-2">Договор {{ formStore.applicationData.processCode === 19 || formStore.applicationData.processCode === 25 ? 'страхования' : 'возврата' }}</span>
328
326
  <i
329
- class="transition-all cursor-pointer mdi mdi-mdi-tray-arrow-down pl-2 mr-3 border-l-[1px] text-xl absolute right-0"
327
+ class="transition-all cursor-pointer mdi mdi-tray-arrow-down pl-2 mr-3 border-l-[1px] text-xl absolute right-0"
330
328
  :class="[$styles.greenTextHover]"
331
329
  @click="
332
330
  $dataStore.generatePDFDocument(
@@ -967,7 +965,11 @@ export default defineComponent({
967
965
  const isRecalculationDisabled = computed(() => formStore.isDisabled.recalculationForm || formStore.canBeClaimed === true);
968
966
  const isUnderwriterRole = computed(() => dataStore.isUnderwriter() || dataStore.isAdmin() || dataStore.isSupport());
969
967
  const insurancePremiumPerMonthRule = computed(() =>
970
- !!productConditionsForm.insurancePremiumPerMonth ? (whichProduct.value === 'gons' ? dataStore.rules.required : dataStore.rules.required.concat(dataStore.rules.sums)) : [],
968
+ !!productConditionsForm.insurancePremiumPerMonth
969
+ ? whichProduct.value === 'gons' || whichProduct.value === 'lifebusiness' || whichProduct.value === 'gns'
970
+ ? dataStore.rules.required
971
+ : dataStore.rules.required.concat(dataStore.rules.sums)
972
+ : [],
971
973
  );
972
974
  const insurancePremiumPerMonthDisabled = computed(() => {
973
975
  if (whichProduct.value === 'lifebusiness' || whichProduct.value === 'gns') {
@@ -994,18 +996,8 @@ export default defineComponent({
994
996
  return !!productConditionsForm.requestedSumInsured && !!productConditionsForm.insurancePremiumPerMonth;
995
997
  });
996
998
  const hasProcessIndexRate = computed(() => {
997
- if (
998
- whichProduct.value === 'gons' ||
999
- whichProduct.value === 'halykkazyna' ||
1000
- whichProduct.value === 'liferenta' ||
1001
- whichProduct.value === 'lifebusiness' ||
1002
- whichProduct.value === 'amuletlife' ||
1003
- whichProduct.value === 'gns' ||
1004
- whichProduct.value === 'balam'
1005
- ) {
1006
- return false;
1007
- }
1008
- return true;
999
+ if (whichProduct.value === 'baiterek' || whichProduct.value === 'bolashak') return true;
1000
+ return false;
1009
1001
  });
1010
1002
  const hasPaymentPeriod = computed(() => {
1011
1003
  if (whichProduct.value === 'halykkazyna') {
@@ -1083,6 +1075,15 @@ export default defineComponent({
1083
1075
  if (whichProduct.value === 'gons') {
1084
1076
  return false;
1085
1077
  }
1078
+ if (whichProduct.value === 'lifebusiness' || whichProduct.value === 'gns') {
1079
+ return false;
1080
+ }
1081
+ return true;
1082
+ });
1083
+ const hasDisabilityAdditive = computed(() => {
1084
+ if (whichProduct.value === 'lifebusiness' || whichProduct.value === 'gns') {
1085
+ return false;
1086
+ }
1086
1087
  return true;
1087
1088
  });
1088
1089
  const hasAnnuityPayments = computed(() => {
@@ -1161,6 +1162,36 @@ export default defineComponent({
1161
1162
  }
1162
1163
  return dataStore.t('productConditionsForm.dollarExchangeRateNBRK');
1163
1164
  });
1165
+ const lifeMultiplyLabel = computed(() => {
1166
+ if (whichProduct.value === 'lifebusiness' || whichProduct.value === 'gns') {
1167
+ return dataStore.t('percent') + `Life (смерть по любой причине) multiply`;
1168
+ }
1169
+ return dataStore.t('percent') + `Life Multiply`;
1170
+ });
1171
+ const lifeAdditiveLabel = computed(() => {
1172
+ if (whichProduct.value === 'lifebusiness' || whichProduct.value === 'gns') {
1173
+ return dataStore.t('percent') + `Life (смерть по любой причине) надбавка`;
1174
+ }
1175
+ return dataStore.t('percent') + `Life Additive`;
1176
+ });
1177
+ const disabilityMultiplyLabel = computed(() => {
1178
+ if (whichProduct.value === 'lifebusiness' || whichProduct.value === 'gns') {
1179
+ return dataStore.t('percent') + `Disability (инвалидность, временная утрата тр-ти, стойкая утрата тр-ти)`;
1180
+ }
1181
+ return dataStore.t('percent') + `Disability Multiply`;
1182
+ });
1183
+ const adbMultiplyLabel = computed(() => {
1184
+ if (whichProduct.value === 'lifebusiness' || whichProduct.value === 'gns') {
1185
+ return dataStore.t('percent') + `Accidental life multiply`;
1186
+ }
1187
+ return dataStore.t('percent') + `Adb Multiply`;
1188
+ });
1189
+ const adbAdditiveLabel = computed(() => {
1190
+ if (whichProduct.value === 'lifebusiness' || whichProduct.value === 'gns') {
1191
+ return dataStore.t('percent') + `Accidental life additional надбавка`;
1192
+ }
1193
+ return dataStore.t('percent') + `Adb Additive`;
1194
+ });
1164
1195
  const isDisabledFixInsSum = computed(() => {
1165
1196
  if (dataStore.isUnderwriter() && !isRecalculationDisabled.value) {
1166
1197
  return false;
@@ -2351,6 +2382,7 @@ export default defineComponent({
2351
2382
  hasCalculated,
2352
2383
  hasAnnuityPayments,
2353
2384
  hasAgencyPart,
2385
+ hasDisabilityAdditive,
2354
2386
  currencySymbolsAddTerm,
2355
2387
  amountAnnuityPayments,
2356
2388
  requestedSumInsuredLabel,
@@ -2360,6 +2392,11 @@ export default defineComponent({
2360
2392
  hasBirthDate,
2361
2393
  hasGender,
2362
2394
  coverPeriodLabel,
2395
+ lifeMultiplyLabel,
2396
+ lifeAdditiveLabel,
2397
+ disabilityMultiplyLabel,
2398
+ adbMultiplyLabel,
2399
+ adbAdditiveLabel,
2363
2400
  insurancePremiumPerMonthLabel,
2364
2401
  isDisabledCoverPeriod,
2365
2402
  hasDefault,
@@ -726,11 +726,7 @@ export default defineComponent({
726
726
  isQrLoading.value = true;
727
727
  } else if (message === 'Signed') {
728
728
  isQrLoading.value = false;
729
- if (dataStore.isPension) {
730
- dataStore.showToaster('info', dataStore.t('pension.signInProcess'));
731
- } else {
732
- dataStore.showToaster('success', dataStore.t('sign.successQrSigned'));
733
- }
729
+ dataStore.showToaster('success', dataStore.isPension ? 'Подписание прошло успешно' : dataStore.t('sign.successQrSigned'));
734
730
  qrUrl.value = '';
735
731
  isQr.value = false;
736
732
  dataStore.panel.open = false;
@@ -810,7 +810,6 @@ export class ProductConditions {
810
810
  adbAdditive: string | number | null;
811
811
  disabilityMultiply: string | number | null;
812
812
  disabilityAdditive: string | number | null;
813
- processTariff: Value;
814
813
  riskGroup: Value;
815
814
  riskGroup2: Value;
816
815
  additionalConditionAnnuityPayments: boolean;
@@ -859,7 +858,6 @@ export class ProductConditions {
859
858
  adbAdditive = null,
860
859
  disabilityMultiply = null,
861
860
  disabilityAdditive = null,
862
- processTariff = new Value(),
863
861
  riskGroup = new Value(),
864
862
  riskGroup2 = new Value(),
865
863
  additionalConditionAnnuityPayments = false,
@@ -912,7 +910,6 @@ export class ProductConditions {
912
910
  this.adbAdditive = adbAdditive;
913
911
  this.disabilityMultiply = disabilityMultiply;
914
912
  this.disabilityAdditive = disabilityAdditive;
915
- this.processTariff = processTariff;
916
913
  this.riskGroup = riskGroup;
917
914
  this.riskGroup2 = riskGroup2;
918
915
  this.additionalConditionAnnuityPayments = additionalConditionAnnuityPayments;
@@ -1081,7 +1078,6 @@ export class DataStoreClass {
1081
1078
  relations: Value[];
1082
1079
  banks: Value[];
1083
1080
  transferContractCompanies: Value[];
1084
- processTariff: Value[];
1085
1081
  insurancePay: Value[];
1086
1082
  questionRefs: Value[];
1087
1083
  residents: Value[];
@@ -1263,7 +1259,6 @@ export class DataStoreClass {
1263
1259
  this.familyStatuses = [];
1264
1260
  this.disabilityGroups = [];
1265
1261
  this.relations = [];
1266
- this.processTariff = [];
1267
1262
  this.banks = [];
1268
1263
  this.transferContractCompanies = [];
1269
1264
  this.insurancePay = [];
@@ -81,8 +81,8 @@ export const constants = Object.freeze({
81
81
  usd: '$',
82
82
  },
83
83
  pensionAge: {
84
- man: 63,
85
- woman: 61,
84
+ man: 68,
85
+ woman: 68,
86
86
  },
87
87
  genderByIIN: {
88
88
  '0': 'Ж',
@@ -709,7 +709,7 @@ export class RoleController {
709
709
  const dataStore = useDataStore();
710
710
  const hasAccessByProduct = (() => {
711
711
  const product = productFromExternal as Projects;
712
- if (dataStore.isLifetrip || product === 'lifetrip' || (!env.isProduction && (dataStore.isPension || product === 'pensionannuitynew'))) return this.isBranchDirector();
712
+ if (dataStore.isLifetrip || product === 'lifetrip' || dataStore.isPension || product === 'pensionannuitynew') return this.isBranchDirector();
713
713
  return false;
714
714
  })();
715
715
  return this.isManager() || this.isAgent() || this.isAgentMycar() || this.isManagerHalykBank() || this.isServiceManager() || this.isAgentAuletti() || hasAccessByProduct;
@@ -735,6 +735,9 @@ export class RoleController {
735
735
  isServiceManager = () => {
736
736
  return this.isRole(constants.roles.ServiceManager);
737
737
  };
738
+ isUSNSsanctioner = () => {
739
+ return this.isRole(constants.roles.USNSsanctioner);
740
+ };
738
741
  isUnderwriter = () => {
739
742
  return this.isRole(constants.roles.Underwriter);
740
743
  };
@@ -822,6 +825,7 @@ export class RoleController {
822
825
  this.isManagerHalykBank() ||
823
826
  this.isHeadManager() ||
824
827
  this.isServiceManager() ||
828
+ this.isUSNSsanctioner() ||
825
829
  this.isUnderwriter() ||
826
830
  this.isActuary() ||
827
831
  this.isAdmin() ||
package/locales/ru.json CHANGED
@@ -142,7 +142,7 @@
142
142
  "notAllDocumentsAttached": "Не все документы вложены",
143
143
  "needAttachQuestionnaire": "Нужно вложить анкету для клиентов",
144
144
  "notZeroPremium": "Общая страховая премия не должен быть 0",
145
- "requiredFieldsLB": "Обязательные поля: №, Ф.И.О, Пол, Должность, Дата рождения, ИИН, Страховая сумма",
145
+ "requiredFieldsLB": "Обязательные поля: №, Ф.И.О, Пол, Должность, Дата рождения, ИИН, Страховая сумма, Сектор экономики, Признак резеденства",
146
146
  "duplicateClient": "В списке присутствуют повторяющиеся клиенты",
147
147
  "notParsedDocument": "Не удалось получить данные",
148
148
  "successProfile": "Профиль успешно обновлен",
@@ -394,7 +394,6 @@
394
394
  "additional": "Дополнительные условия страхования",
395
395
  "possibilityToChange": "Возможность изменения страховой суммы и страховых взносов (индексация)",
396
396
  "conditions": "Условия оплаты страховой премии",
397
- "processTariff": "Тариф",
398
397
  "riskGroup": "Группа риска",
399
398
  "requestedProductConditions": "Запрашиваемые условия страхования",
400
399
  "coverPeriodFrom3to20": "Срок страхования (от 3-х до 20 лет)",
@@ -592,7 +591,6 @@
592
591
  "bankInvalid": "Некорректные банковские данные",
593
592
  "globalId": "Уникальный номер договора с ЕСБД (globalId)",
594
593
  "oppvMonthsCheck": "ВНИМАНИЕ! НЕОБХОДИМО ПРОВЕРИТЬ НАЛИЧИЕ ОТЧИСЛЕНИЙ 60 МЕСЯЦЕВ ПО ПРИЗНАКУ 'ОППВ'",
595
- "signInProcess": "После подписания всех документов данная заявка перейдет к Подписанту вашего Региона",
596
594
  "signInProcessManager": "Договор будет подписан в течение минуты",
597
595
  "transferRegNumber": "Номер и серия договора с КСЖ",
598
596
  "contragentSelect": "Выбор контрагента",
@@ -1055,6 +1053,7 @@
1055
1053
  "attachScansSignDocs": "Вложить сканы подписанных документов",
1056
1054
  "declarationHealthInsured": "Декларация о здоровье Застрахованных",
1057
1055
  "uploadInsured": "Загрузите застрахованных",
1056
+ "isDisability": "Является ли инвалидом",
1058
1057
  "form": {
1059
1058
  "calculation": "Расчеты",
1060
1059
  "paymentAmount": "Размер выплаты",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hl-core",
3
- "version": "0.0.10-beta.31",
3
+ "version": "0.0.10-beta.32",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "nuxt.config.ts",
@@ -66,8 +66,9 @@ export const useDataStore = defineStore('data', {
66
66
  isBalam: state => state.product === 'balam',
67
67
  isDSO: state => state.product === 'dso',
68
68
  isUU: state => state.product === 'uu',
69
- hasClientAnketa: state => state.formStore.additionalInsuranceTerms.find(i => i.coverTypeCode === 10),
69
+ hasClientAnketa: state => Array.isArray(state.formStore.additionalInsuranceTerms) && state.formStore.additionalInsuranceTerms.find(i => i.coverTypeCode === 10),
70
70
  isClientAnketaCondition: state =>
71
+ Array.isArray(state.formStore.additionalInsuranceTerms) &&
71
72
  !state.formStore.insuredForm.find(member => member.iin === state.formStore.policyholderForm.iin) &&
72
73
  !!state.formStore.additionalInsuranceTerms.find(i => i.coverTypeCode === 10 && i.coverSumCode === 'included'),
73
74
  },
@@ -1450,7 +1451,8 @@ export const useDataStore = defineStore('data', {
1450
1451
  return await this.getFromApi('economySectorCode', 'getSectorCode');
1451
1452
  },
1452
1453
  async getEconomicActivityType() {
1453
- if (this.isLifeBusiness || this.isGns || this.isDas || this.isUU || this.isPrePension) return await this.getFromApi('economicActivityType', 'getEconomicActivityType');
1454
+ const makeCall = this.isLifeBusiness || this.isGns || this.isDas || this.isUU || this.isPrePension;
1455
+ if (makeCall) return await this.getFromApi('economicActivityType', 'getEconomicActivityType');
1454
1456
  },
1455
1457
  async getFamilyStatuses() {
1456
1458
  return await this.getFromApi('familyStatuses', 'getFamilyStatuses');
@@ -1462,42 +1464,36 @@ export const useDataStore = defineStore('data', {
1462
1464
  return await this.getFromApi('relations', 'getRelationTypes');
1463
1465
  },
1464
1466
  async getBanks() {
1465
- if (this.isLifeBusiness || this.isDas || this.isUU || this.isPension || this.isGns || this.isPrePension || this.isDSO) return await this.getFromApi('banks', 'getBanks');
1467
+ const makeCall = this.isLifeBusiness || this.isDas || this.isUU || this.isPension || this.isGns || this.isPrePension || this.isDSO;
1468
+ if (makeCall) return await this.getFromApi('banks', 'getBanks');
1466
1469
  },
1467
1470
  async getInsuranceCompanies() {
1468
1471
  if (this.isPension) return await this.getFromApi('transferContractCompanies', 'getInsuranceCompanies');
1469
1472
  },
1470
1473
  async getProcessIndexRate() {
1471
- if (this.processCode) {
1472
- return await this.getFromApi('processIndexRate', 'getProcessIndexRate', this.processCode);
1473
- }
1474
+ const makeCall = (this.isBaiterek || this.isBolashak || this.isGons) && this.processCode;
1475
+ if (makeCall) return await this.getFromApi('processIndexRate', 'getProcessIndexRate', this.processCode);
1474
1476
  },
1475
1477
  async getProcessPaymentPeriod() {
1476
- if (this.processCode) {
1477
- return await this.getFromApi('processPaymentPeriod', 'getProcessPaymentPeriod', this.processCode);
1478
- }
1478
+ const makeCall = !this.isPension && this.processCode;
1479
+ if (makeCall) return await this.getFromApi('processPaymentPeriod', 'getProcessPaymentPeriod', this.processCode);
1479
1480
  },
1480
1481
  async getQuestionRefs(id?: string) {
1481
1482
  return await this.getFromApi('questionRefs', 'getQuestionRefs', id, true);
1482
1483
  },
1483
- async getProcessTariff() {
1484
- if (this.processCode) return await this.getFromApi('processTariff', 'getProcessTariff', this.processCode);
1485
- },
1486
1484
  async getDicAnnuityTypeList() {
1487
1485
  return await this.getFromApi('dicAnnuityTypeList', 'getDicAnnuityTypeList');
1488
1486
  },
1489
1487
  async getProcessAnnuityPaymentPeriod() {
1490
- if (this.processCode) {
1491
- return await this.getFromApi('processAnnuityPaymentPeriod', 'getProcessAnnuityPaymentPeriod', this.processCode);
1492
- }
1488
+ const makeCall = this.isLiferenta && this.processCode;
1489
+ if (makeCall) return await this.getFromApi('processAnnuityPaymentPeriod', 'getProcessAnnuityPaymentPeriod', this.processCode);
1493
1490
  },
1494
1491
  async getInsurancePay() {
1495
1492
  return await this.getFromApi('insurancePay', 'getInsurancePay');
1496
1493
  },
1497
1494
  async getProcessGfot() {
1498
- if (this.processCode) {
1499
- return await this.getFromApi('processGfot', 'getProcessGfot', this.processCode);
1500
- }
1495
+ const makeCall = (this.isLifeBusiness || this.isGns) && this.processCode;
1496
+ if (makeCall) return await this.getFromApi('processGfot', 'getProcessGfot', this.processCode);
1501
1497
  },
1502
1498
  async getCurrencies() {
1503
1499
  try {
@@ -1544,7 +1540,6 @@ export const useDataStore = defineStore('data', {
1544
1540
  this.getFamilyStatuses(),
1545
1541
  this.getRelationTypes(),
1546
1542
  this.getProcessIndexRate(),
1547
- this.getProcessTariff(),
1548
1543
  this.getProcessPaymentPeriod(),
1549
1544
  this.getDicFileTypeList(),
1550
1545
  this.getDicAnnuityTypeList(),
@@ -1939,7 +1934,7 @@ export const useDataStore = defineStore('data', {
1939
1934
  this.formStore.productConditionsForm.statePremium7 = this.getNumberWithSpaces(calculationResponse.statePremium7);
1940
1935
  }
1941
1936
  if (this.isLifeBusiness || product === 'lifebusiness' || this.isGns || product === 'gns') {
1942
- this.formStore.productConditionsForm.insurancePremiumPerMonth = this.getNumberWithSpaces(calculationResponse.mainPremiumWithCommission);
1937
+ this.formStore.productConditionsForm.insurancePremiumPerMonth = this.getNumberWithSpacesAfterComma(calculationResponse.mainPremiumWithCommission as number);
1943
1938
  this.formStore.productConditionsForm.requestedSumInsured = this.getNumberWithSpaces(calculationResponse.mainInsSum === 0 ? null : calculationResponse.mainInsSum);
1944
1939
  this.formStore.additionalInsuranceTermsWithout = calculationResponse.addCovers;
1945
1940
  if (calculationResponse.agentCommission) {
@@ -1998,7 +1993,7 @@ export const useDataStore = defineStore('data', {
1998
1993
  this.formStore.productConditionsForm.statePremium7 = this.getNumberWithSpaces(govPremiums.statePremium7 === null ? null : govPremiums.statePremium7);
1999
1994
  }
2000
1995
  if (this.isLifeBusiness || this.isGns) {
2001
- this.formStore.productConditionsForm.insurancePremiumPerMonth = this.getNumberWithSpaces(result.value);
1996
+ this.formStore.productConditionsForm.insurancePremiumPerMonth = this.getNumberWithSpacesAfterComma(result.value);
2002
1997
  if (applicationData.insuredApp && applicationData.insuredApp.length) {
2003
1998
  const res = await this.newInsuredList(applicationData.insuredApp);
2004
1999
  this.formStore.lfb.clients = res;
@@ -2407,7 +2402,10 @@ export const useDataStore = defineStore('data', {
2407
2402
 
2408
2403
  if (this.isKazyna || this.isGons) {
2409
2404
  this.formStore.productConditionsForm.requestedSumInsuredInDollar = this.getNumberWithSpaces(applicationData.policyAppDto.amountInCurrency);
2410
- this.formStore.productConditionsForm.insurancePremiumPerMonthInDollar = this.getNumberWithSpaces(applicationData.policyAppDto.premiumInCurrency);
2405
+ this.formStore.productConditionsForm.insurancePremiumPerMonthInDollar =
2406
+ this.formStore.applicationData.processCode === constants.products.halykkazynaap
2407
+ ? this.getNumberWithSpacesAfterComma(applicationData.policyAppDto.premiumInCurrency)
2408
+ : this.getNumberWithSpaces(applicationData.policyAppDto.premiumInCurrency);
2411
2409
  }
2412
2410
  if (this.isGons && !useEnv().isProduction) {
2413
2411
  const currency = constants.currencyList.find(item => item.code === applicationData.policyAppDto.currency);
@@ -3728,15 +3726,23 @@ export const useDataStore = defineStore('data', {
3728
3726
  });
3729
3727
  }
3730
3728
 
3729
+ this.formStore.productConditionsForm.lifeMultiply = parseProcents(applicationData.policyAppDto.lifeMultiply);
3730
+ this.formStore.productConditionsForm.lifeAdditive = parseProcents(applicationData.policyAppDto.lifeAdditive);
3731
+ this.formStore.productConditionsForm.lifeMultiplyClient = parseProcents(applicationData.policyAppDto.lifeMultiplyClient);
3732
+ this.formStore.productConditionsForm.lifeAdditiveClient = parseProcents(applicationData.policyAppDto.lifeAdditiveClient);
3733
+ this.formStore.productConditionsForm.adbMultiply = parseProcents(applicationData.policyAppDto.adbMultiply);
3734
+ this.formStore.productConditionsForm.adbAdditive = parseProcents(applicationData.policyAppDto.adbAdditive);
3735
+ this.formStore.productConditionsForm.disabilityMultiply = parseProcents(applicationData.policyAppDto.disabilityMultiply);
3736
+ this.formStore.productConditionsForm.disabilityAdditive = parseProcents(applicationData.policyAppDto.disabilityAdditive);
3737
+
3731
3738
  this.formStore.productConditionsForm.calcDate = reformatDate(applicationData.policyAppDto.calcDate);
3732
3739
  this.formStore.productConditionsForm.contractEndDate = reformatDate(applicationData.policyAppDto.contractEndDate);
3733
3740
  this.formStore.productConditionsForm.agentCommission = applicationData.policyAppDto.agentCommission === 0 ? null : applicationData.policyAppDto.agentCommission;
3734
3741
  this.formStore.productConditionsForm.fixInsSum = this.getNumberWithSpaces(applicationData.policyAppDto.fixInsSum === 0 ? null : applicationData.policyAppDto.fixInsSum);
3735
3742
  this.formStore.productConditionsForm.coverPeriod = 12;
3736
3743
  this.formStore.productConditionsForm.requestedSumInsured = this.getNumberWithSpaces(applicationData.policyAppDto.amount === 0 ? null : applicationData.policyAppDto.amount);
3737
- this.formStore.productConditionsForm.insurancePremiumPerMonth = this.getNumberWithSpaces(
3738
- applicationData.policyAppDto.mainPremiumWithCommission === 0 ? null : applicationData.policyAppDto.mainPremiumWithCommission,
3739
- );
3744
+ this.formStore.productConditionsForm.insurancePremiumPerMonth =
3745
+ applicationData.policyAppDto.mainPremiumWithCommission === 0 ? null : this.getNumberWithSpacesAfterComma(applicationData.policyAppDto.mainPremiumWithCommission);
3740
3746
  const paymentPeriod = this.processPaymentPeriod.find(item => item.id == applicationData.policyAppDto.paymentPeriodId);
3741
3747
  this.formStore.productConditionsForm.paymentPeriod = paymentPeriod ? paymentPeriod : new Value();
3742
3748
  const processGfot = this.processGfot.find(item => item.id == applicationData.policyAppDto.processDefinitionFgotId);
package/types/enum.ts CHANGED
@@ -94,6 +94,7 @@ export enum Roles {
94
94
  HeadManager = 'HeadManager',
95
95
  AgentAuletti = 'AgentAuletti',
96
96
  USNS = 'USNS',
97
+ USNSsanctioner = 'USNSsanctioner',
97
98
  Accountant = 'Accountant',
98
99
  BranchDirector = 'BranchDirector',
99
100
  USNSACCINS = 'USNSACCINS',
package/types/index.ts CHANGED
@@ -259,6 +259,8 @@ export interface ClientV2 {
259
259
  hasAttachedFile?: boolean;
260
260
  insrBeginDate?: string;
261
261
  insrEndDate?: string;
262
+ economySectorCode?: Value;
263
+ resident?: Value;
262
264
  }
263
265
 
264
266
  export type RecalculationResponseType = {