add new field: cbxSupplierFinancing

This commit is contained in:
vchikalkin 2023-04-13 18:28:40 +03:00
parent dafd67a8c0
commit 9a5c64ca27
8 changed files with 8 additions and 0 deletions

View File

@ -132,6 +132,7 @@ const components = wrapComponentsMap({
selectLeasingWithoutKasko: e.Select,
tbxVIN: e.Input,
selectUser: e.Select,
cbxSupplierFinancing: e.Switch,
/** Readonly Elements */
labelLeaseObjectRisk: e.Text,

View File

@ -126,6 +126,7 @@ const titles: Record<ActionElements | ValuesElements, string> = {
selectLeasingWithoutKasko: 'Лизинг без КАСКО',
tbxVIN: 'VIN',
selectUser: 'Пользователь',
cbxSupplierFinancing: 'Финансирование поставщика',
/** Link Elements */
linkDownloadKp: '',

View File

@ -163,6 +163,7 @@ const types = wrapElementsTypes({
selectLeasingWithoutKasko: t.Options,
tbxVIN: t.Value,
selectUser: t.Options,
cbxSupplierFinancing: t.Value,
labelLeaseObjectRisk: t.Readonly,
tbxInsKaskoPriceLeasePeriod: t.Readonly,

View File

@ -129,6 +129,7 @@ const elementsToValues = wrapElementsMap({
tbxBonusCoefficient: 'bonusCoefficient',
tbxVIN: 'vin',
selectUser: 'user',
cbxSupplierFinancing: 'supplierFinancing',
/** Readonly Elements */
labelLeaseObjectRisk: 'leaseObjectRiskName',

View File

@ -494,6 +494,7 @@ const defaultOptions: CalculationOptions = {
selectLeasingWithoutKasko: [],
tbxVIN: [],
selectUser: [],
cbxSupplierFinancing: [],
};
export default defaultOptions;

View File

@ -18,6 +18,7 @@ const defaultStatuses: CalculationStatuses = {
cbxRecalcWithRevision: 'Default',
cbxRegistrationQuote: 'Default',
cbxShowFinGAP: 'Default',
cbxSupplierFinancing: 'Disabled',
cbxTechnicalCardQuote: 'Default',
cbxWithTrailer: 'Default',
labelDepreciationGroup: 'Default',

View File

@ -125,6 +125,7 @@ const defaultValues: CalculationValues = {
supplierCurrency: null,
supplierDiscountPerc: 0,
supplierDiscountRub: 0,
supplierFinancing: false,
tarif: null,
technicalCard: null,
technicalCardQuote: true,

View File

@ -110,6 +110,7 @@ const ValuesSchema = z.object({
supplierCurrency: z.string().nullable(),
supplierDiscountPerc: z.number(),
supplierDiscountRub: z.number(),
supplierFinancing: z.boolean(),
tarif: z.string().nullable(),
technicalCard: z.string().nullable(),
technicalCardQuote: z.boolean(),