|
|
@ -36,10 +36,15 @@ export type PrintType =
|
|
|
|
|
|
|
|
|
|
|
|
export const printTypeTitles = {
|
|
|
|
export const printTypeTitles = {
|
|
|
|
[PRINT_TYPE_OFFER]: "Offerte",
|
|
|
|
[PRINT_TYPE_OFFER]: "Offerte",
|
|
|
|
[PRINT_TYPE_CONFIRMATION]: "Bestätigung",
|
|
|
|
[PRINT_TYPE_CONFIRMATION]: "Auftragsbestätigung",
|
|
|
|
[PRINT_TYPE_INVOICE]: "Rechnung",
|
|
|
|
[PRINT_TYPE_INVOICE]: "Rechnung",
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export const printTypeSelectTitles = {
|
|
|
|
|
|
|
|
...printTypeTitles,
|
|
|
|
|
|
|
|
[PRINT_TYPE_CONFIRMATION]: "Bestätigung",
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
export const createUiStore = () =>
|
|
|
|
export const createUiStore = () =>
|
|
|
|
createStore_({
|
|
|
|
createStore_({
|
|
|
|
lastSaved: 0,
|
|
|
|
lastSaved: 0,
|
|
|
@ -63,6 +68,7 @@ export const storeSchema = z.object({
|
|
|
|
deliveryNumber: z.string(),
|
|
|
|
deliveryNumber: z.string(),
|
|
|
|
deliveryDate: z.number().optional(),
|
|
|
|
deliveryDate: z.number().optional(),
|
|
|
|
date: z.number(),
|
|
|
|
date: z.number(),
|
|
|
|
|
|
|
|
title: z.string().optional(),
|
|
|
|
preface: z.string().optional(),
|
|
|
|
preface: z.string().optional(),
|
|
|
|
conclusion: z.string().optional(),
|
|
|
|
conclusion: z.string().optional(),
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|