add new field: cbxSupplierFinancing
This commit is contained in:
parent
dafd67a8c0
commit
9a5c64ca27
@ -132,6 +132,7 @@ const components = wrapComponentsMap({
|
||||
selectLeasingWithoutKasko: e.Select,
|
||||
tbxVIN: e.Input,
|
||||
selectUser: e.Select,
|
||||
cbxSupplierFinancing: e.Switch,
|
||||
|
||||
/** Readonly Elements */
|
||||
labelLeaseObjectRisk: e.Text,
|
||||
|
||||
@ -126,6 +126,7 @@ const titles: Record<ActionElements | ValuesElements, string> = {
|
||||
selectLeasingWithoutKasko: 'Лизинг без КАСКО',
|
||||
tbxVIN: 'VIN',
|
||||
selectUser: 'Пользователь',
|
||||
cbxSupplierFinancing: 'Финансирование поставщика',
|
||||
|
||||
/** Link Elements */
|
||||
linkDownloadKp: '',
|
||||
|
||||
@ -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,
|
||||
|
||||
@ -129,6 +129,7 @@ const elementsToValues = wrapElementsMap({
|
||||
tbxBonusCoefficient: 'bonusCoefficient',
|
||||
tbxVIN: 'vin',
|
||||
selectUser: 'user',
|
||||
cbxSupplierFinancing: 'supplierFinancing',
|
||||
|
||||
/** Readonly Elements */
|
||||
labelLeaseObjectRisk: 'leaseObjectRiskName',
|
||||
|
||||
@ -494,6 +494,7 @@ const defaultOptions: CalculationOptions = {
|
||||
selectLeasingWithoutKasko: [],
|
||||
tbxVIN: [],
|
||||
selectUser: [],
|
||||
cbxSupplierFinancing: [],
|
||||
};
|
||||
|
||||
export default defaultOptions;
|
||||
|
||||
@ -18,6 +18,7 @@ const defaultStatuses: CalculationStatuses = {
|
||||
cbxRecalcWithRevision: 'Default',
|
||||
cbxRegistrationQuote: 'Default',
|
||||
cbxShowFinGAP: 'Default',
|
||||
cbxSupplierFinancing: 'Disabled',
|
||||
cbxTechnicalCardQuote: 'Default',
|
||||
cbxWithTrailer: 'Default',
|
||||
labelDepreciationGroup: 'Default',
|
||||
|
||||
@ -125,6 +125,7 @@ const defaultValues: CalculationValues = {
|
||||
supplierCurrency: null,
|
||||
supplierDiscountPerc: 0,
|
||||
supplierDiscountRub: 0,
|
||||
supplierFinancing: false,
|
||||
tarif: null,
|
||||
technicalCard: null,
|
||||
technicalCardQuote: true,
|
||||
|
||||
@ -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(),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user