Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,23 +29,7 @@ This security policy covers the security of this repository and its code. If you

5. **Disclosure**: We will coordinate with you regarding the public disclosure of the vulnerability. We aim to release a security advisory with information about the issue and the fix.

6. **Credit**: If you report a vulnerability that is successfully fixed, we will credit you for your responsible disclosure in the security advisory unless you prefer to remain anonymous.

#### Option 2: Reporting via Huntr.dev

Alternatively, you can report vulnerabilities through [Huntr.dev](https://huntr.dev). Follow these steps:

1. **Submit Report**: Create a report for this repository on Huntr.dev, providing details of the vulnerability. Include a link to this repository in your report.

2. **Confirmation**: We will be notified of your report on Huntr.dev and will acknowledge it within [X] business days.

3. **Investigation**: We will investigate the issue, which may involve reproducing the vulnerability or seeking further information from you.

4. **Resolution**: Once the vulnerability is confirmed, we will work to address it promptly and develop a fix.

5. **Disclosure**: We will coordinate with you regarding the public disclosure of the vulnerability. We aim to release a security advisory with information about the issue and the fix.

6. **Credit**: If you report a vulnerability that is successfully fixed, we will credit you for your responsible disclosure in the security advisory unless you prefer to remain anonymous.

### Safe Harbor

Expand Down
14 changes: 14 additions & 0 deletions backend/src/models/appModels/PaymentMode.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
const mongoose = require('mongoose');

const paymentModeSchema = new mongoose.Schema(
{
name: { type: String, required: true },
description: { type: String },
isDefault: { type: Boolean, default: false },
enabled: { type: Boolean, default: true },
removed: { type: Boolean, default: false },
},
{ timestamps: true }
);

module.exports = mongoose.model('PaymentMode', paymentModeSchema);
14 changes: 14 additions & 0 deletions backend/src/models/appModels/Taxes.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
const mongoose = require('mongoose');

const taxesSchema = new mongoose.Schema(
{
taxName: { type: String, required: true },
taxValue: { type: String, required: true },
isDefault: { type: Boolean, default: false },
enabled: { type: Boolean, default: true },
removed: { type: Boolean, default: false },
},
{ timestamps: true }
);

module.exports = mongoose.model('Taxes', taxesSchema);
98 changes: 52 additions & 46 deletions frontend/src/router/routes.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,21 @@ import { Navigate } from 'react-router-dom';
const Logout = lazy(() => import('@/pages/Logout.jsx'));
const NotFound = lazy(() => import('@/pages/NotFound.jsx'));


const Customer = lazy(() => import('@/pages/Customer'));

const Invoice = lazy(() => import('@/pages/Invoice'));
const InvoiceCreate = lazy(() => import('@/pages/Invoice/InvoiceCreate'));

const InvoiceRead = lazy(() => import('@/pages/Invoice/InvoiceRead'));
const InvoiceUpdate = lazy(() => import('@/pages/Invoice/InvoiceUpdate'));
const InvoiceRecordPayment = lazy(() => import('@/pages/Invoice/InvoiceRecordPayment'));

// const Quote = lazy(() => import('@/pages/Quote'));
// const QuoteCreate = lazy(() => import('@/pages/Quote/QuoteCreate'));
// const QuoteRead = lazy(() => import('@/pages/Quote/QuoteRead'));
// const QuoteUpdate = lazy(() => import('@/pages/Quote/QuoteUpdate'));

// const PaymentMode = lazy(() => import('@/pages/PaymentMode'));
// const Taxes = lazy(() => import('@/pages/Taxes'));
const Payment = lazy(() => import('@/pages/Payment/index'));
const PaymentRead = lazy(() => import('@/pages/Payment/PaymentRead'));
const PaymentUpdate = lazy(() => import('@/pages/Payment/PaymentUpdate'));
Expand Down Expand Up @@ -69,51 +75,51 @@ let routes = {
path: '/invoice/pay/:id',
element: <InvoiceRecordPayment />,
},
{
path: '/quote',
element: <Quote />,
},
{
path: '/quote/create',
element: <QuoteCreate />,
},
{
path: '/quote/read/:id',
element: <QuoteRead />,
},
{
path: '/quote/update/:id',
element: <QuoteUpdate />,
},
{
path: '/payment',
element: <Payment />,
},
{
path: '/payment/read/:id',
element: <PaymentRead />,
},
{
path: '/payment/update/:id',
element: <PaymentUpdate />,
},
// {
// path: '/quote',
// element: <Quote />,
// },
// {
// path: '/quote/create',
// element: <QuoteCreate />,
// },
// {
// path: '/quote/read/:id',
// element: <QuoteRead />,
// },
// {
// path: '/quote/update/:id',
// element: <QuoteUpdate />,
// },
// {
// path: '/payment',
// element: <Payment />,
// },
// {
// path: '/payment/read/:id',
// element: <PaymentRead />,
// },
// {
// path: '/payment/update/:id',
// element: <PaymentUpdate />,
// },

{
path: '/settings',
element: <Settings />,
},
{
path: '/settings/edit/:settingsKey',
element: <Settings />,
},
{
path: '/payment/mode',
element: <PaymentMode />,
},
{
path: '/taxes',
element: <Taxes />,
},
// {
// path: '/settings',
// element: <Settings />,
// },
// {
// path: '/settings/edit/:settingsKey',
// element: <Settings />,
// },
// {
// path: '/payment/mode',
// element: <PaymentMode />,
// },
// {
// path: '/taxes',
// element: <Taxes />,
// },

{
path: '/profile',
Expand Down
Loading