|
|
|
@ -28,6 +28,7 @@ import {
|
|
|
|
|
createStore,
|
|
|
|
|
createUiStore,
|
|
|
|
|
LocalStoreContext,
|
|
|
|
|
printTypeSelectTitles,
|
|
|
|
|
printTypeTitles,
|
|
|
|
|
PRINT_TYPE_CONFIRMATION,
|
|
|
|
|
PRINT_TYPE_INVOICE,
|
|
|
|
@ -143,7 +144,7 @@ export default function Home() {
|
|
|
|
|
(state.project.projectNumber.length > 0
|
|
|
|
|
? `${state.project.projectNumber} - `
|
|
|
|
|
: "") +
|
|
|
|
|
printTypeTitles[uiState.printType]
|
|
|
|
|
printTypeSelectTitles[uiState.printType]
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
const externalTitle = "Räppli - Web App für Schweizerische Rechnungen";
|
|
|
|
@ -303,6 +304,10 @@ export default function Home() {
|
|
|
|
|
</Show>
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
const pageTitle = createMemo(function () {
|
|
|
|
|
return state.project.title || printTypeTitles[uiState.printType];
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<>
|
|
|
|
|
<Style type="text/css">{`
|
|
|
|
@ -327,7 +332,7 @@ export default function Home() {
|
|
|
|
|
<Page>
|
|
|
|
|
<InnerPadding>
|
|
|
|
|
<PageHeader />
|
|
|
|
|
<Title>Offerte</Title>
|
|
|
|
|
<Title>{pageTitle()}</Title>
|
|
|
|
|
<Preface />
|
|
|
|
|
<PositionsWithData />
|
|
|
|
|
<Conclusion />
|
|
|
|
@ -339,7 +344,7 @@ export default function Home() {
|
|
|
|
|
<Page>
|
|
|
|
|
<InnerPadding>
|
|
|
|
|
<PageHeader />
|
|
|
|
|
<Title>Auftragsbestätigung</Title>
|
|
|
|
|
<Title>{pageTitle()}</Title>
|
|
|
|
|
<Preface />
|
|
|
|
|
<PositionsWithData />
|
|
|
|
|
<Conclusion />
|
|
|
|
@ -351,7 +356,7 @@ export default function Home() {
|
|
|
|
|
<Page>
|
|
|
|
|
<InnerPadding>
|
|
|
|
|
<PageHeader />
|
|
|
|
|
<Title>Rechnung</Title>
|
|
|
|
|
<Title>{pageTitle()}</Title>
|
|
|
|
|
<Preface />
|
|
|
|
|
<PositionsWithData />
|
|
|
|
|
<Show when={localState.paymentTerms}>
|
|
|
|
|