Skip to content

Commit

Permalink
some changes
Browse files Browse the repository at this point in the history
  • Loading branch information
faatima30 committed Sep 6, 2024
1 parent ade8748 commit 17f83b0
Show file tree
Hide file tree
Showing 11 changed files with 48 additions and 50 deletions.
2 changes: 1 addition & 1 deletion Backend/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ app.delete("/Purchase/delete/:id", async (req, res) => {
//Sale part

app.get("/Sale", async (req, res) => {
const getData = await SalesModel.find();
const getData = await SalesModel.find()
// .populate({
// path: "customerID",
// model: "Customers",
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import Forgotpwd from "./pages/Forgotpwd";
import Sale from "./pages/Sale";
import Purchase from "./pages/Purchase";
import Employee from "./pages/Employee";
import Gallery from "./components/Gallery";
// import Gallery from "./components/Gallery";
function App() {
return (
<Routes>
Expand All @@ -27,7 +27,7 @@ function App() {
<Route path="/login" element={<Login />} />
<Route path="/Signup" element={<Signup />} />
<Route path="/Forgotpwd" element={<Forgotpwd />} />
<Route path="/Gallery" element={<Gallery />} />
{/* <Route path="/Gallery" element={<Gallery />} /> */}
</Routes>
);
}
Expand Down
3 changes: 2 additions & 1 deletion frontend/src/components/SideNav.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ import { RiLogoutBoxRLine } from "react-icons/ri";
import { BsBox2Fill, BsFillPeopleFill } from "react-icons/bs";
import { AiOutlineClose } from "react-icons/ai";
import { ImMenu } from "react-icons/im";
import { TfiGallery } from "react-icons/tfi";
// import { TfiGallery } from "react-icons/tfi";

function Sidenav() {
// const localStorageData = JSON.parse(localStorage.getItem("user"));
const [isOpen, setIsOpen] = useState(false);
const logout = () => {
localStorage.clear();
Expand Down
12 changes: 6 additions & 6 deletions frontend/src/pages/Customer.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,12 +145,12 @@ export default function Customer() {
width: 100,
},

{
label: "date created",
field: "createdAt",
sort: "asc",
width: 100,
},
// {
// label: "date created",
// field: "createdAt",
// sort: "asc",
// width: 100,
// },
{
label: "date updated",
field: "updatedAt",
Expand Down
12 changes: 6 additions & 6 deletions frontend/src/pages/Employee.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,12 +158,12 @@ export default function Customer() {
width: 100,
},

{
label: "date created",
field: "createdAt",
sort: "asc",
width: 100,
},
// {
// label: "date created",
// field: "createdAt",
// sort: "asc",
// width: 100,
// },
{
label: "date updated",
field: "updatedAt",
Expand Down
12 changes: 6 additions & 6 deletions frontend/src/pages/Inventory.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ export default function Inventory() {
sort: "asc",
width: 100,
},
{
label: "date created",
field: "createdAt",
sort: "asc",
width: 100,
},
// {
// label: "date created",
// field: "createdAt",
// sort: "asc",
// width: 100,
// },
{
label: "date updated",
field: "updatedAt",
Expand Down
3 changes: 1 addition & 2 deletions frontend/src/pages/Product.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,8 @@ export default function Product() {
// sort: "asc",
// width: 200,
// },

{
label: "date created",
label: "date added",
field: "createdAt",
sort: "asc",
width: 100,
Expand Down
12 changes: 6 additions & 6 deletions frontend/src/pages/Purchase.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,12 +148,12 @@ export default function Sale() {
sort: "asc",
width: 100,
},
{
label: "date created",
field: "createdAt",
sort: "asc",
width: 100,
},
// {
// label: "date created",
// field: "createdAt",
// sort: "asc",
// width: 100,
// },
{
label: "date updated",
field: "updatedAt",
Expand Down
12 changes: 6 additions & 6 deletions frontend/src/pages/Sale.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,12 +156,12 @@ export default function Sale() {
sort: "asc",
width: 100,
},
{
label: "date created",
field: "createdAt",
sort: "asc",
width: 100,
},
// {
// label: "date created",
// field: "createdAt",
// sort: "asc",
// width: 100,
// },
{
label: "date updated",
field: "updatedAt",
Expand Down
13 changes: 6 additions & 7 deletions frontend/src/pages/Supplier.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,13 +134,12 @@ export default function Supplier() {
sort: "asc",
width: 100,
},

{
label: "date created",
field: "createdAt",
sort: "asc",
width: 100,
},
// {
// label: "date created",
// field: "createdAt",
// sort: "asc",
// width: 100,
// },
{
label: "date updated",
field: "updatedAt",
Expand Down
13 changes: 6 additions & 7 deletions frontend/src/pages/Warehouse.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,13 +142,12 @@ export default function Warehouse() {
sort: "asc",
width: 100,
},

{
label: "date created",
field: "createdAt",
sort: "asc",
width: 100,
},
// {
// label: "date created",
// field: "createdAt",
// sort: "asc",
// width: 100,
// },
{
label: "date updated",
field: "updatedAt",
Expand Down

0 comments on commit 17f83b0

Please sign in to comment.