EverydayTech Platform - Developer Reference
Complete Source Code Documentation - All Applications
Loading...
Searching...
No Matches
page.tsx
Go to the documentation of this file.
1'use client';
2
3import Link from 'next/link';
4import { Icon } from '@/contexts/IconContext';
5
6export default function SaleProcessingPage() {
7 return (
8 <div className="min-h-screen bg-surface-2">
9 <div className="max-w-7xl mx-auto p-6">
10 {/* Header */}
11 <div className="mb-8">
12 <div className="flex items-center gap-2 text-sm text-muted mb-4">
13 <Link href="/pages/settings" className="hover:text-text">Settings</Link>
14 <span>›</span>
15 <span className="text-text">Sale Processing</span>
16 </div>
17 <h1 className="text-3xl font-bold text-text mb-2">Sale Processing Configuration</h1>
18 <p className="text-muted">Configure sale behavior and workflow settings</p>
19 </div>
20
21 {/* Configuration Sections */}
22 <div className="space-y-6">
23 <div className="bg-surface rounded-lg shadow-sm border border-border p-6">
24 <h2 className="text-xl font-semibold text-text mb-4">Sale Behavior</h2>
25 <p className="text-muted mb-4">Configure how sales are processed and handled</p>
26 <div className="grid grid-cols-1 md:grid-cols-2 gap-4">
27 <div>
28 <label className="block text-sm font-medium text-text mb-2">
29 Allow Negative Sales
30 </label>
31 <select className="w-full px-3 py-2 border border-border rounded-md">
32 <option>No</option>
33 <option>Yes</option>
34 </select>
35 </div>
36 <div>
37 <label className="block text-sm font-medium text-text mb-2">
38 Require Customer on Sale
39 </label>
40 <select className="w-full px-3 py-2 border border-border rounded-md">
41 <option>No</option>
42 <option>Yes</option>
43 </select>
44 </div>
45 </div>
46 </div>
47
48 <div className="bg-surface rounded-lg shadow-sm border border-border p-6">
49 <h2 className="text-xl font-semibold text-text mb-4">Workflow Settings</h2>
50 <p className="text-muted mb-4">Control the sale process flow and validations</p>
51 <div className="space-y-4">
52 <div className="flex items-center">
53 <input type="checkbox" className="mr-3" />
54 <span className="text-text">Auto-print receipt after sale</span>
55 </div>
56 <div className="flex items-center">
57 <input type="checkbox" className="mr-3" />
58 <span className="text-text">Require manager approval for discounts</span>
59 </div>
60 <div className="flex items-center">
61 <input type="checkbox" className="mr-3" />
62 <span className="text-text">Show running total during sale</span>
63 </div>
64 </div>
65 </div>
66
67 <div className="flex justify-end gap-3">
68 <button className="px-4 py-2 border border-border rounded-md text-text hover:bg-surface-2">
69 Cancel
70 </button>
71 <button className="px-4 py-2 bg-brand text-white rounded-md hover:bg-brand/90">
72 Save Changes
73 </button>
74 </div>
75 </div>
76 </div>
77 </div>
78 );
79}