chore: align device terminology to cash register across wizard and success pages
All checks were successful
Staging Build / build (push) Successful in 2m46s
All checks were successful
Staging Build / build (push) Successful in 2m46s
This commit is contained in:
@@ -113,12 +113,12 @@ export default async function OrderSuccessPage({
|
|||||||
</Badge>
|
</Badge>
|
||||||
</CardHeader>
|
</CardHeader>
|
||||||
<CardContent className="space-y-4">
|
<CardContent className="space-y-4">
|
||||||
{/* Produkte gruppiert nach Gerät */}
|
{/* Produkte gruppiert nach Kasse */}
|
||||||
<div className="space-y-4">
|
<div className="space-y-4">
|
||||||
{Object.entries(groupedItems).map(([deviceName, devItems]) => (
|
{Object.entries(groupedItems).map(([deviceName, devItems]) => (
|
||||||
<div key={deviceName} className="space-y-2 border-b border-white/5 pb-3 last:border-0 last:pb-0">
|
<div key={deviceName} className="space-y-2 border-b border-white/5 pb-3 last:border-0 last:pb-0">
|
||||||
<div className="bg-white/5 px-2 py-1 rounded text-xs text-primary font-bold">
|
<div className="bg-white/5 px-2 py-1 rounded text-xs text-primary font-bold">
|
||||||
Gerät: {deviceName}
|
Kasse: {deviceName}
|
||||||
</div>
|
</div>
|
||||||
{devItems.map((item) => (
|
{devItems.map((item) => (
|
||||||
<div key={item.product_id} className="space-y-1 pl-2">
|
<div key={item.product_id} className="space-y-1 pl-2">
|
||||||
|
|||||||
@@ -152,7 +152,7 @@ export const InvoicePDF = ({ order, orderSnapshot, customer }: any) => {
|
|||||||
</View>
|
</View>
|
||||||
|
|
||||||
<Text style={styles.title}>
|
<Text style={styles.title}>
|
||||||
{isSubscription ? 'Anfragebestätigung: Software-Abonnement' : 'Anfragebestätigung: Einmalige Lizenzen'}
|
Anfragebestätigung: {order.order_number || order.id}
|
||||||
</Text>
|
</Text>
|
||||||
|
|
||||||
<View style={styles.section}>
|
<View style={styles.section}>
|
||||||
@@ -176,7 +176,7 @@ export const InvoicePDF = ({ order, orderSnapshot, customer }: any) => {
|
|||||||
<View key={groupIdx} style={{ marginBottom: 12, borderWidth: 1, borderColor: '#e2e8f0', borderRadius: 4, padding: 8, backgroundColor: '#f8fafc' }}>
|
<View key={groupIdx} style={{ marginBottom: 12, borderWidth: 1, borderColor: '#e2e8f0', borderRadius: 4, padding: 8, backgroundColor: '#f8fafc' }}>
|
||||||
<View style={{ borderBottomWidth: 1, borderBottomColor: '#cbd5e1', paddingBottom: 4, marginBottom: 6 }}>
|
<View style={{ borderBottomWidth: 1, borderBottomColor: '#cbd5e1', paddingBottom: 4, marginBottom: 6 }}>
|
||||||
<Text style={{ fontSize: 10, fontWeight: 'bold', color: '#1e3a8a' }}>
|
<Text style={{ fontSize: 10, fontWeight: 'bold', color: '#1e3a8a' }}>
|
||||||
Gerät: {deviceName}
|
Kasse: {deviceName}
|
||||||
</Text>
|
</Text>
|
||||||
</View>
|
</View>
|
||||||
{devItems.map((item: any, idx: number) => (
|
{devItems.map((item: any, idx: number) => (
|
||||||
|
|||||||
@@ -1399,7 +1399,7 @@ export function OrderWizard({
|
|||||||
size="icon"
|
size="icon"
|
||||||
className="w-7 h-7 hover:bg-white/10 text-slate-400 hover:text-white"
|
className="w-7 h-7 hover:bg-white/10 text-slate-400 hover:text-white"
|
||||||
onClick={() => editBasketItem(idx)}
|
onClick={() => editBasketItem(idx)}
|
||||||
title="Gerät bearbeiten"
|
title="Kasse bearbeiten"
|
||||||
>
|
>
|
||||||
<Pencil className="w-3.5 h-3.5" />
|
<Pencil className="w-3.5 h-3.5" />
|
||||||
</Button>
|
</Button>
|
||||||
@@ -1409,7 +1409,7 @@ export function OrderWizard({
|
|||||||
size="icon"
|
size="icon"
|
||||||
className="w-7 h-7 hover:bg-white/10 text-destructive hover:text-red-400"
|
className="w-7 h-7 hover:bg-white/10 text-destructive hover:text-red-400"
|
||||||
onClick={() => deleteBasketItem(idx)}
|
onClick={() => deleteBasketItem(idx)}
|
||||||
title="Gerät löschen"
|
title="Kasse löschen"
|
||||||
>
|
>
|
||||||
<Trash2 className="w-3.5 h-3.5" />
|
<Trash2 className="w-3.5 h-3.5" />
|
||||||
</Button>
|
</Button>
|
||||||
@@ -1422,7 +1422,7 @@ export function OrderWizard({
|
|||||||
</CardContent>
|
</CardContent>
|
||||||
<CardFooter className="flex flex-col gap-3">
|
<CardFooter className="flex flex-col gap-3">
|
||||||
<div className="w-full space-y-2">
|
<div className="w-full space-y-2">
|
||||||
<Label htmlFor="device-name" className="text-xs text-slate-400">Gerätename (optional)</Label>
|
<Label htmlFor="device-name" className="text-xs text-slate-400">Kassenname (optional)</Label>
|
||||||
<Input
|
<Input
|
||||||
id="device-name"
|
id="device-name"
|
||||||
placeholder="z.B. Hauptkasse, Theke"
|
placeholder="z.B. Hauptkasse, Theke"
|
||||||
@@ -1482,7 +1482,7 @@ export function OrderWizard({
|
|||||||
{finalItemsToShow.map((item, itemIdx) => (
|
{finalItemsToShow.map((item, itemIdx) => (
|
||||||
<div key={itemIdx} className="space-y-3 border-b border-white/10 pb-4 last:border-0 last:pb-0">
|
<div key={itemIdx} className="space-y-3 border-b border-white/10 pb-4 last:border-0 last:pb-0">
|
||||||
<div className="flex justify-between items-center bg-white/5 p-2 rounded">
|
<div className="flex justify-between items-center bg-white/5 p-2 rounded">
|
||||||
<span className="text-white font-bold text-sm">Gerät: {item.deviceName}</span>
|
<span className="text-white font-bold text-sm">Kasse: {item.deviceName}</span>
|
||||||
<span className="text-xs text-slate-400 capitalize">{item.billingInterval === 'one_time' ? 'Kauf' : 'Abo'}</span>
|
<span className="text-xs text-slate-400 capitalize">{item.billingInterval === 'one_time' ? 'Kauf' : 'Abo'}</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user