-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreturns.php
More file actions
154 lines (140 loc) · 5.49 KB
/
returns.php
File metadata and controls
154 lines (140 loc) · 5.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
<?php
session_start();
require_once 'includes/db_config.php';
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>POS System - Returns</title>
<link rel="stylesheet" href="css/styles.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
.btn-primary{
background-color: var(--primary);
color: white;
border: none;
padding: 15px 20px;
font-family: "Poppins", sans-serif;
border-radius: 5%;
font-size: 16px;
font-weight: 500;
cursor: pointer;
transition: background-color 0.3s;
display: flex;
align-items: center;
gap: 8px;
white-space: nowrap;
}
</style>
</head>
<body>
<div class="app-container">
<!-- Header with navigation -->
<header class="header">
<div class="logo">
<i class="fas fa-cash-register"></i>
<h1>POS System</h1>
</div>
<nav class="nav-menu">
<a href="index.php" class="nav-link">
<i class="fas fa-tachometer-alt"></i> Dashboard
</a>
<a href="inventory.php" class="nav-link">
<i class="fas fa-boxes"></i> Inventory
</a>
<a href="sales.php" class="nav-link">
<i class="fas fa-shopping-cart"></i> Sales
</a>
<a href="returns.php" class="nav-link active ">
<i class="fas fa-undo"></i> Returns
</a>
<a href="accounts.php" class="nav-link ">
<i class="fas fa-users"></i> Accounts
</a>
<a href="reports.php" class="nav-link">
<i class="fas fa-chart-bar"></i> Reports
</a>
</nav>
</header>
<main class="content">
<div class="page-header">
<h1>Returns Management</h1>
<div class="page-actions">
</div>
</div>
<!-- Returns Navigation -->
<!-- Process Return Section -->
<div id="process-return" class="content-section active">
<div class="card">
<div class="card-header">
<h2>Find Sale</h2>
</div>
<div class="card-body">
<form id="find-sale-form" class="form">
<div class="form-group">
<label for="transaction-id">Transaction ID:</label>
<input type="text" id="transaction-id" name="transaction_id" required>
</div>
<div class="form-actions">
<button type="submit" class="btn btn-primary">Find Sale</button>
</div>
</form>
</div>
</div>
<!-- Sale Details (hidden by default) -->
<div id="sale-details" class="card" style="display: none;">
<div class="card-header">
<h2>Sale Details</h2>
</div>
<div class="card-body">
<div class="sale-info">
<div class="info-group">
<span class="info-label">Customer:</span>
<span id="customer-name-display" class="info-value">-</span>
</div>
<div class="info-group">
<span class="info-label">Date:</span>
<span id="sale-date-display" class="info-value">-</span>
</div>
<div class="info-group">
<span class="info-label">Total:</span>
<span id="sale-total-display" class="info-value">-</span>
</div>
</div>
<div class="table-container">
<table class="data-table">
<thead>
<tr>
<th>Product</th>
<th>Price</th>
<th>Quantity</th>
<th>Total</th>
<th>Return Qty</th>
</tr>
</thead>
<tbody id="sale-items-body">
<!-- Sale items will be populated here -->
</tbody>
</table>
</div>
<div class="form-group">
<label for="return-reason">Reason for Return:</label>
<textarea id="return-reason" name="return_reason" rows="3" required></textarea>
</div>
<div class="form-actions">
<button id="process-return-btn" class="btn btn-primary" >Process Return</button>
</div>
</div>
</div>
</div>
<!-- Export Report Modal -->
</div>
</div>
</main>
</div>
<script src="js/returns.js"></script>
</body>
</html>