Skip to content

Commit cfbf377

Browse files
Version 7.7 - Small bug fix
1 parent 77263ae commit cfbf377

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

functions/proceed-transaction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,4 @@
6767

6868

6969
generate_logs('New Pending Transaction', $_SESSION['id'].' added a new pending transaction');
70-
header('location: ../reciept.php?id='.$id.'&kilo='.$kilo.'&type='.$price_name.'&type_price='.$price.'&products='.$item_total.'&total='.$total);
70+
header('location: ../reciept.php?id='.$transaction_id.'&kilo='.$kilo.'&type='.$price_name.'&type_price='.$price.'&products='.$item_total.'&total='.$total);

tracking.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
$sql = 'SELECT id, status, queue_number
1111
FROM ( SELECT id, status, ROW_NUMBER()
1212
OVER (ORDER BY status DESC, kilo ASC) AS queue_number
13-
FROM Transactions ) AS subquery WHERE id = :id';
13+
FROM Transactions ) AS subquery WHERE id = :id AND status <= 4';
1414

1515
$stmt = $db->prepare($sql);
1616
$stmt->execute(['id' => $id]);

0 commit comments

Comments
 (0)