From 70dc88cd29a3b38b10262f45adee16a7ed37853a Mon Sep 17 00:00:00 2001 From: Thomas Peterson Date: Mon, 6 Oct 2025 10:19:05 +0200 Subject: [PATCH] Better Invoice Layout --- .../src/modules/base/BaseComponent.tsx | 46 +++++++++++++------ .../src/modules/calc/CalcComponent.tsx | 23 ++++++++-- .../src/modules/topbar/TopBarComponent.tsx | 6 +-- 3 files changed, 53 insertions(+), 22 deletions(-) diff --git a/src/new/var/plugins/System/PSC/Invoice/InvoiceTS/src/modules/base/BaseComponent.tsx b/src/new/var/plugins/System/PSC/Invoice/InvoiceTS/src/modules/base/BaseComponent.tsx index 87d133ec3..abaf126a6 100644 --- a/src/new/var/plugins/System/PSC/Invoice/InvoiceTS/src/modules/base/BaseComponent.tsx +++ b/src/new/var/plugins/System/PSC/Invoice/InvoiceTS/src/modules/base/BaseComponent.tsx @@ -14,6 +14,7 @@ import OrderService from "../../services/order" import InfoFieldComponent from "../info/InfoFieldComponent" import React from 'react' import OrderAliasComponent from '../order/OrderAliasComponent' +import CalcComponent from '../calc/CalcComponent' const BaseComponent = (props) => { console.log('BaseComponent rendering') @@ -60,26 +61,43 @@ const BaseComponent = (props) => { {/* Main Content */} { shop.id != 0 && ( - <> - {/* Contact Section */} -
+
+ {/* Left Column - Main Content (2/3 width) */} +
+ {/* Contact Section */} -
- {/* Positions Section */} -
+ {/* Positions Section */} + + {/* Payment & Shipping Row */} +
+ + +
+ + {/* Info Section */} +
- {/* Payment & Shipping Row */} -
- - + {/* Right Column - Summary Sidebar (1/3 width) */} +
+
+ {/* Price Summary Card */} +
+

+ + + + Preisübersicht +

+
+ +
+
+
- - {/* Info Section */} - - +
)}
diff --git a/src/new/var/plugins/System/PSC/Invoice/InvoiceTS/src/modules/calc/CalcComponent.tsx b/src/new/var/plugins/System/PSC/Invoice/InvoiceTS/src/modules/calc/CalcComponent.tsx index 62c393695..207acd95c 100644 --- a/src/new/var/plugins/System/PSC/Invoice/InvoiceTS/src/modules/calc/CalcComponent.tsx +++ b/src/new/var/plugins/System/PSC/Invoice/InvoiceTS/src/modules/calc/CalcComponent.tsx @@ -38,9 +38,26 @@ class CalcComponent extends React.Component<{ },MyState> { render() { return ( -

- Netto: + MwSt.: = Brutto: -

+
+
+ Netto + + + +
+
+ MwSt. + + + +
+
+ Brutto + + + +
+
) } } diff --git a/src/new/var/plugins/System/PSC/Invoice/InvoiceTS/src/modules/topbar/TopBarComponent.tsx b/src/new/var/plugins/System/PSC/Invoice/InvoiceTS/src/modules/topbar/TopBarComponent.tsx index d77904faa..37ecde418 100644 --- a/src/new/var/plugins/System/PSC/Invoice/InvoiceTS/src/modules/topbar/TopBarComponent.tsx +++ b/src/new/var/plugins/System/PSC/Invoice/InvoiceTS/src/modules/topbar/TopBarComponent.tsx @@ -4,7 +4,6 @@ import * as PropTypes from "prop-types" import {Shop} from "../../model/shop" import DraftComponent from "../draft/DraftComponent" import Order from "../../model/order" -import CalcComponent from '../calc/CalcComponent' import React from 'react' const TopBarComponent = ({shop, order, change}) => { @@ -21,12 +20,9 @@ const TopBarComponent = ({shop, order, change}) => {
-
- -
- ) + ) } TopBarComponent.propTypes = {