Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
21_22-J 31
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
21_22-J 31
21_22-J 31
Commits
1c8898e6
Commit
1c8898e6
authored
Jan 08, 2022
by
Ravindu Nethsara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SidebarChanges_and_PurchaseHistory_Changes
parent
e4dc0653
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
15 deletions
+16
-15
Data/Purchasefile.csv
Data/Purchasefile.csv
+13
-13
User/views.py
User/views.py
+1
-1
templates/Admin/PurchaseHistory.html
templates/Admin/PurchaseHistory.html
+1
-1
templates/Admin/Sidebar2.html
templates/Admin/Sidebar2.html
+1
-0
No files found.
Data/Purchasefile.csv
View file @
1c8898e6
...
...
@@ -46,11 +46,11 @@ Month,CALTEX_Delo_Gold_Ultra,Price1
2015-09,349,4725
2015-10,328,4725
2015-11,314,4725
2015-12,451,47
25
2016-01,422,47
25
2016-02,397,47
25
2016-03,354,47
25
2016-04,421,47
25
2015-12,451,47
00
2016-01,422,47
00
2016-02,397,47
00
2016-03,354,47
00
2016-04,421,47
00
2016-05,347,4725
2016-06,453,4725
2016-07,365,4725
...
...
@@ -83,10 +83,10 @@ Month,CALTEX_Delo_Gold_Ultra,Price1
2018-10,394,4725
2018-11,281,5050
2018-12,436,4900
2019-01,334,
513
0
2019-02,262,
513
0
2019-03,286,
513
0
2019-04,476,
513
0
2019-01,334,
490
0
2019-02,262,
490
0
2019-03,286,
490
0
2019-04,476,
490
0
2019-05,410,5130
2019-06,474,5130
2019-07,343,5130
...
...
@@ -106,8 +106,8 @@ Month,CALTEX_Delo_Gold_Ultra,Price1
2020-09,377,6100
2020-10,421,6100
2020-11,302,6100
2020-12,488,
610
0
2021-01,424,
625
0
2020-12,488,
509
0
2021-01,424,
509
0
2021-02,312,6250
2021-03,383,6250
2021-04,521,6250
...
...
@@ -117,5 +117,5 @@ Month,CALTEX_Delo_Gold_Ultra,Price1
2021-08,291,7400
2021-09,330,7400
2021-10,382,7400
2021-11,421,
86
00
2021-12,516,
86
00
2021-11,421,
74
00
2021-12,516,
72
00
User/views.py
View file @
1c8898e6
...
...
@@ -70,7 +70,7 @@ def EmployeeStatus_Update(request):
# Demand Forecasting
def
PurchaseHistory
(
request
):
data
=
pd
.
read_csv
(
'Data/Purchasefile.csv'
)
finalpt
=
data
.
head
(
1
0
)
finalpt
=
data
.
head
(
1
21
)
json_records
=
finalpt
.
reset_index
()
.
to_json
(
orient
=
'records'
)
arr
=
[]
arr
=
json
.
loads
(
json_records
)
...
...
templates/Admin/PurchaseHistory.html
View file @
1c8898e6
...
...
@@ -34,7 +34,7 @@
<div
class=
"container"
style=
"overflow-x:auto;
scrollable
"
>
<div
class=
"container"
style=
"overflow-x:auto;"
>
<center>
CALTEX Delo Gold Ultra DATATABLE
</center>
<table
class=
"table table-striped"
>
...
...
templates/Admin/Sidebar2.html
View file @
1c8898e6
...
...
@@ -184,6 +184,7 @@ body{
<li><a
style=
"text-decoration:none;"
href=
"/Admin/EmployeeStatus_Update/"
><i
class=
"fas fa-upload"
></i>
Assign Employee
</a>
</li>
<li><a
style=
"text-decoration:none;"
href=
"/Admin/Forecasting/"
><i
class=
"fas fa-bullseye "
></i>
Demand Forecasting
</a>
<li><a
style=
"text-decoration:none;"
href=
"#"
><i
class=
"fas fa-eye"
></i>
Highest Demand
</a>
<li><a
style=
"text-decoration:none;"
href=
"/Admin/PurchaseHistory/"
><i
class=
"fas fa-cubes"
></i>
Purchase History
</a>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment