Skip to content

Commit

Permalink
Changes made
Browse files Browse the repository at this point in the history
  • Loading branch information
Carl-Tabuso committed Jul 4, 2024
1 parent 84e8804 commit ca7bd77
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Ignore
src/includes/error-logs.txt
src/sales-prediction-algorithm/sales_prediction.json

.phpunit.result.cache
src/includes/charts/weekly_sales_data.json
.phpunit.result.cache
2 changes: 1 addition & 1 deletion src/includes/charts/weekly-sales.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

function fetchAndProcessSalesData($db) {
$prev_week_start = date('Y-m-d', strtotime('monday last week'));
$prev_week_end = date('Y-m-d', strtotime('saturday last week'));
$prev_week_end = date('Y-m-d', strtotime('sunday last week'));

$sql = "SELECT DATE(timestamp) AS date, SUM(total_amount) AS total_sales
FROM transaction
Expand Down

0 comments on commit ca7bd77

Please sign in to comment.