diff --git a/src/common/TableStyle.js b/src/common/TableStyle.js
new file mode 100644
index 000000000..d570a00fb
--- /dev/null
+++ b/src/common/TableStyle.js
@@ -0,0 +1,6 @@
+
+
+export const TableStyle = {
+ Constrant: 'constrant',
+ Regular: 'regular'
+}
\ No newline at end of file
diff --git a/src/common/index.js b/src/common/index.js
new file mode 100644
index 000000000..25821fa35
--- /dev/null
+++ b/src/common/index.js
@@ -0,0 +1,4 @@
+
+
+
+export * from './TableStyle';
\ No newline at end of file
diff --git a/src/components/Button/ButtonLink.js b/src/components/Button/ButtonLink.js
index 655cdc615..739f12ecc 100644
--- a/src/components/Button/ButtonLink.js
+++ b/src/components/Button/ButtonLink.js
@@ -5,6 +5,7 @@ export const ButtonLink = styled.button`
border: 0;
background: transparent;
cursor: pointer;
+ text-align: inherit;
&:hover,
&:active {
diff --git a/src/components/Card.js b/src/components/Card.js
index 65dd41eed..8437e2e47 100644
--- a/src/components/Card.js
+++ b/src/components/Card.js
@@ -1,6 +1,11 @@
import React from 'react';
-import classNames from 'classnames';
-
+import clsx from 'classnames';
+import styled from 'styled-components';
+
export default function Card({ className, children }) {
- return
{children}
;
+ return {children};
}
+
+const CardRoot = styled.div`
+ padding: 15px;
+`;
diff --git a/src/components/CommercialDoc/index.js b/src/components/CommercialDoc/index.js
new file mode 100644
index 000000000..afa86e654
--- /dev/null
+++ b/src/components/CommercialDoc/index.js
@@ -0,0 +1,21 @@
+import styled from 'styled-components';
+import Card from '../Card';
+import DataTable from '../DataTable';
+
+export const CommercialDocBox = styled(Card)`
+ padding: 22px 20px;
+`;
+
+export const CommercialDocHeader = styled.div`
+ margin-bottom: 25px;
+`;
+
+export const CommercialDocTopHeader = styled.div`
+ margin-bottom: 30px;
+`;
+
+export const CommercialDocEntriesTable = styled(DataTable)`
+ .tbody .tr:last-child .td {
+ border-bottom: 1px solid #d2dce2;
+ }
+`;
diff --git a/src/components/Dashboard/DashboardActionsBar.js b/src/components/Dashboard/DashboardActionsBar.js
index b0ed85942..5d1795d5d 100644
--- a/src/components/Dashboard/DashboardActionsBar.js
+++ b/src/components/Dashboard/DashboardActionsBar.js
@@ -1,16 +1,19 @@
import React from 'react';
-import classnames from 'classnames';
+import clsx from 'classnames';
import { Navbar } from '@blueprintjs/core';
-export default function DashboardActionsBar({ children, name }) {
+export default function DashboardActionsBar({ className, children, name }) {
return (
- {children}
+ {children}
);
}
diff --git a/src/components/Datatable/TableWrapper.js b/src/components/Datatable/TableWrapper.js
index 78646ea03..d98fab9b0 100644
--- a/src/components/Datatable/TableWrapper.js
+++ b/src/components/Datatable/TableWrapper.js
@@ -16,6 +16,7 @@ export default function TableWrapper({ children }) {
expandable,
virtualizedRows,
className,
+ styleName,
size,
},
} = useContext(TableContext);
@@ -28,6 +29,7 @@ export default function TableWrapper({ children }) {
'is-expandable': expandable,
'is-loading': loading,
'has-virtualized-rows': virtualizedRows,
+ [`table--${styleName}`]: styleName,
})}
>
diff --git a/src/components/Details/index.js b/src/components/Details/index.js
index ef1690f3c..ef480e1f2 100644
--- a/src/components/Details/index.js
+++ b/src/components/Details/index.js
@@ -17,6 +17,7 @@ const useDetailsMenuContext = () => React.useContext(DetailsMenuContext);
export function DetailsMenu({
children,
direction = DIRECTION.VERTICAL,
+ textAlign,
minLabelSize,
className,
}) {
@@ -27,6 +28,7 @@ export function DetailsMenu({
{
'details-menu--vertical': direction === DIRECTION.VERTICAL,
'details-menu--horizantal': direction === DIRECTION.HORIZANTAL,
+ [`align-${textAlign}`]: textAlign,
},
className,
)}
diff --git a/src/components/Drawer/DrawerActionsBar.js b/src/components/Drawer/DrawerActionsBar.js
new file mode 100644
index 000000000..d79be8b16
--- /dev/null
+++ b/src/components/Drawer/DrawerActionsBar.js
@@ -0,0 +1,12 @@
+import React from 'react';
+import styled from 'styled-components';
+
+import DashboardActionsBar from 'components/Dashboard/DashboardActionsBar';
+
+export function DrawerActionsBar({ ...props }) {
+ return ;
+}
+
+const DrawerActionsBarRoot = styled(DashboardActionsBar)`
+ border-bottom: 1px solid #d9d9da;
+`;
diff --git a/src/components/Drawer/DrawerMainTabs.js b/src/components/Drawer/DrawerMainTabs.js
index 89ab0a52c..d2052e1f2 100644
--- a/src/components/Drawer/DrawerMainTabs.js
+++ b/src/components/Drawer/DrawerMainTabs.js
@@ -1,15 +1,54 @@
import React from 'react';
import { Tabs } from '@blueprintjs/core';
+import styled from 'styled-components';
/**
* Drawer main tabs.
*/
export function DrawerMainTabs({ children, ...restProps }) {
return (
-
+
{children}
-
+
);
}
+
+const DrawerMainTabsRoot = styled.div`
+ .bp3-tabs {
+ .bp3-tab-list {
+ position: relative;
+ background-color: #fff;
+ padding: 0 15px;
+ border-bottom: 2px solid #e1e2e8;
+
+ > *:not(:last-child) {
+ margin-right: 25px;
+ }
+
+ &.bp3-large > .bp3-tab {
+ font-size: 15px;
+ color: #7f8596;
+ margin: 0 1rem;
+
+ &[aria-selected='true'],
+ &:not([aria-disabled='true']):hover {
+ color: #0052cc;
+ }
+ }
+ .bp3-tab-indicator-wrapper .bp3-tab-indicator {
+ height: 2px;
+ bottom: -2px;
+ }
+ }
+
+ .bp3-tab-panel {
+ margin-top: 0;
+
+ .card {
+ margin: 15px;
+ }
+ }
+ }
+`;
diff --git a/src/components/Drawer/index.js b/src/components/Drawer/index.js
index 005735517..d39c1d758 100644
--- a/src/components/Drawer/index.js
+++ b/src/components/Drawer/index.js
@@ -13,3 +13,5 @@ export function DrawerLoading({ loading, mount = false, children }) {
export function DrawerBody({ children }) {
return {children}
;
}
+
+export * from './DrawerActionsBar';
\ No newline at end of file
diff --git a/src/components/Tags/CurrencyTag.js b/src/components/Tags/CurrencyTag.js
new file mode 100644
index 000000000..a427c0230
--- /dev/null
+++ b/src/components/Tags/CurrencyTag.js
@@ -0,0 +1,11 @@
+import styled from 'styled-components';
+
+export const CurrencyTag = styled.span`
+ background: #3e9215;
+ color: #fff;
+ display: inline-block;
+ border-radius: 3px;
+ padding: 2px 4px;
+ line-height: 1;
+ margin-left: 4px;
+`;
diff --git a/src/components/Tags/index.js b/src/components/Tags/index.js
new file mode 100644
index 000000000..7eca83954
--- /dev/null
+++ b/src/components/Tags/index.js
@@ -0,0 +1,3 @@
+
+
+export * from './CurrencyTag';
\ No newline at end of file
diff --git a/src/components/index.js b/src/components/index.js
index c1c2b29db..ba9c0b162 100644
--- a/src/components/index.js
+++ b/src/components/index.js
@@ -90,6 +90,8 @@ export * from './Contacts';
export * from './Utils/Join';
export * from './Typo';
export * from './TextStatus';
+export * from './Tags';
+export * from './CommercialDoc';
const Hint = FieldHint;
diff --git a/src/containers/Drawers/CreditNoteDetailDrawer/CreditNoteDetail.js b/src/containers/Drawers/CreditNoteDetailDrawer/CreditNoteDetail.js
index af4ad93aa..07118d8af 100644
--- a/src/containers/Drawers/CreditNoteDetailDrawer/CreditNoteDetail.js
+++ b/src/containers/Drawers/CreditNoteDetailDrawer/CreditNoteDetail.js
@@ -1,38 +1,51 @@
import React from 'react';
import { Tab } from '@blueprintjs/core';
+import styled from 'styled-components';
import intl from 'react-intl-universal';
-import { DrawerMainTabs } from 'components';
+import { DrawerMainTabs } from 'components';
+import CreditNoteDetailActionsBar from './CreditNoteDetailActionsBar';
import CreditNoteDetailPanel from './CreditNoteDetailPanel';
import RefundCreditNoteTransactionsTable from './RefundCreditNoteTransactions/RefundCreditNoteTransactionsTable';
import ReconcileCreditNoteTransactionsTable from './ReconcileCreditNoteTransactions/ReconcileCreditNoteTransactionsTable';
-import clsx from 'classnames';
-
-import CreditNoteDetailCls from '../../../style/components/Drawers/CreditNoteDetails.module.scss';
/**
* Credit Note view detail.
+ * @returns {React.JSX}
*/
export default function CreditNoteDetail() {
return (
-
-
- }
- />
- }
- />
- }
- />
-
-
+
+
+
+
);
}
+
+/**
+ * Credit note details tabs.
+ * @returns {React.JSX}
+ */
+function CreditNoteDetailsTabs() {
+ return (
+
+ }
+ />
+ }
+ />
+ }
+ />
+
+ );
+}
+
+const CreditNoteRoot = styled.div``;
diff --git a/src/containers/Drawers/CreditNoteDetailDrawer/CreditNoteDetailActionsBar.js b/src/containers/Drawers/CreditNoteDetailDrawer/CreditNoteDetailActionsBar.js
index 4d50f45c5..112a8f556 100644
--- a/src/containers/Drawers/CreditNoteDetailDrawer/CreditNoteDetailActionsBar.js
+++ b/src/containers/Drawers/CreditNoteDetailDrawer/CreditNoteDetailActionsBar.js
@@ -1,6 +1,5 @@
import React from 'react';
import { useHistory } from 'react-router-dom';
-
import {
Button,
NavbarGroup,
@@ -8,17 +7,17 @@ import {
NavbarDivider,
Intent,
} from '@blueprintjs/core';
-import DashboardActionsBar from 'components/Dashboard/DashboardActionsBar';
+
import { useCreditNoteDetailDrawerContext } from './CreditNoteDetailDrawerProvider';
-import { CreditNoteMenuItem } from './utils';
import withDialogActions from 'containers/Dialog/withDialogActions';
import withAlertsActions from 'containers/Alert/withAlertActions';
import withDrawerActions from 'containers/Drawer/withDrawerActions';
-import { Icon, FormattedMessage as T, If, Can } from 'components';
+import { DrawerActionsBar, Icon, FormattedMessage as T, If } from 'components';
import { compose } from 'utils';
+import { CreditNoteMenuItem } from './utils';
/**
* Credit note detail actions bar.
@@ -57,7 +56,7 @@ function CreditNoteDetailActionsBar({
};
return (
-
+
-
+
);
}
diff --git a/src/containers/Drawers/CreditNoteDetailDrawer/CreditNoteDetailDrawerProvider.js b/src/containers/Drawers/CreditNoteDetailDrawer/CreditNoteDetailDrawerProvider.js
index 136722ca3..e96a82bdd 100644
--- a/src/containers/Drawers/CreditNoteDetailDrawer/CreditNoteDetailDrawerProvider.js
+++ b/src/containers/Drawers/CreditNoteDetailDrawer/CreditNoteDetailDrawerProvider.js
@@ -67,7 +67,9 @@ function CreditNoteDetailDrawerProvider({ creditNoteId, ...props }) {
>
diff --git a/src/containers/Drawers/CreditNoteDetailDrawer/CreditNoteDetailHeader.js b/src/containers/Drawers/CreditNoteDetailDrawer/CreditNoteDetailHeader.js
index fa06c325e..1b630d40b 100644
--- a/src/containers/Drawers/CreditNoteDetailDrawer/CreditNoteDetailHeader.js
+++ b/src/containers/Drawers/CreditNoteDetailDrawer/CreditNoteDetailHeader.js
@@ -1,12 +1,22 @@
import React from 'react';
import intl from 'react-intl-universal';
import { defaultTo } from 'lodash';
-import clsx from 'classnames';
+import styled from 'styled-components';
-import { FormatDate, T, DetailsMenu, DetailItem } from 'components';
+import {
+ FormatDate,
+ T,
+ Row,
+ Col,
+ DetailsMenu,
+ DetailItem,
+ ButtonLink,
+ CommercialDocHeader,
+ CommercialDocTopHeader,
+} from 'components';
import { useCreditNoteDetailDrawerContext } from './CreditNoteDetailDrawerProvider';
-import CreditNoteDetailCls from '../../../style/components/Drawers/CreditNoteDetails.module.scss';
+import { CreditNoteDetailsStatus } from './utils';
/**
* Credit note details drawer header.
@@ -15,46 +25,76 @@ export default function CreditNoteDetailHeader() {
const { creditNote } = useCreditNoteDetailDrawerContext();
return (
-
-
-
- {creditNote.formatted_amount}
-
-
-
-
- }
- />
-
-
+
+
+
+
+ {creditNote.formatted_amount}
+
-
-
-
+
+
+
+
+
- }
- children={}
- />
-
-
+
+
+
+
+ {defaultTo(creditNote.credit_note_number, '-')}
+
+
+
+ {creditNote.customer?.display_name}
+
+
+
+
+
+
+
+
+
+
+
+ {creditNote.formatted_credits_remaining}
+
+
+
+
+ }
+ children={}
+ />
+
+
+
+
);
}
+
+const StatusItem = styled(DetailItem)`
+ width: 50%;
+ text-align: right;
+`;
+
+const AmountItem = styled(DetailItem)`
+ width: 50%;
+`;
diff --git a/src/containers/Drawers/CreditNoteDetailDrawer/CreditNoteDetailPanel.js b/src/containers/Drawers/CreditNoteDetailDrawer/CreditNoteDetailPanel.js
index 9712a3d7a..ce19197db 100644
--- a/src/containers/Drawers/CreditNoteDetailDrawer/CreditNoteDetailPanel.js
+++ b/src/containers/Drawers/CreditNoteDetailDrawer/CreditNoteDetailPanel.js
@@ -1,24 +1,20 @@
import React from 'react';
-import clsx from 'classnames';
-import { Card } from 'components';
+import { CommercialDocBox } from 'components';
-import CreditNoteDetailActionsBar from './CreditNoteDetailActionsBar';
import CreditNoteDetailHeader from './CreditNoteDetailHeader';
import CreditNoteDetailTable from './CreditNoteDetailTable';
-import CreditNoteDetailDrawerFooter from './CreditNoteDetailDrawerFooter';
-
-import CreditNoteDetailCls from '../../../style/components/Drawers/CreditNoteDetails.module.scss';
+// import CreditNoteDetailDrawerFooter from './CreditNoteDetailDrawerFooter';
+/**
+ * Credit note details panel.
+ */
export default function CreditNoteDetailPanel() {
return (
-
-
-
-
-
-
-
-
+
+
+
+ {/* */}
+
);
}
diff --git a/src/containers/Drawers/CreditNoteDetailDrawer/CreditNoteDetailTable.js b/src/containers/Drawers/CreditNoteDetailDrawer/CreditNoteDetailTable.js
index 3d3d38dce..72f4b84ca 100644
--- a/src/containers/Drawers/CreditNoteDetailDrawer/CreditNoteDetailTable.js
+++ b/src/containers/Drawers/CreditNoteDetailDrawer/CreditNoteDetailTable.js
@@ -1,15 +1,13 @@
import React from 'react';
-import clsx from 'classnames';
-import { DataTable } from 'components';
+import { CommercialDocEntriesTable } from 'components';
+
import { useCreditNoteDetailDrawerContext } from './CreditNoteDetailDrawerProvider';
-
import { useCreditNoteReadOnlyEntriesColumns } from './utils';
-import CreditNoteDetailCls from '../../../style/components/Drawers/CreditNoteDetails.module.scss';
-
/**
* Credit note detail table.
+ * @returns {React.JSX}
*/
export default function CreditNoteDetailTable() {
const {
@@ -20,12 +18,10 @@ export default function CreditNoteDetailTable() {
const columns = useCreditNoteReadOnlyEntriesColumns();
return (
-
-
-
+
);
}
diff --git a/src/containers/Drawers/CreditNoteDetailDrawer/ReconcileCreditNoteTransactions/ReconcileCreditNoteTransactionsTable.js b/src/containers/Drawers/CreditNoteDetailDrawer/ReconcileCreditNoteTransactions/ReconcileCreditNoteTransactionsTable.js
index 8fee76cc6..dcee43131 100644
--- a/src/containers/Drawers/CreditNoteDetailDrawer/ReconcileCreditNoteTransactions/ReconcileCreditNoteTransactionsTable.js
+++ b/src/containers/Drawers/CreditNoteDetailDrawer/ReconcileCreditNoteTransactions/ReconcileCreditNoteTransactionsTable.js
@@ -1,12 +1,10 @@
import React from 'react';
import { DataTable, Card } from 'components';
-import '../../../../style/pages/RefundCreditNote/List.scss';
-
+import { TableStyle } from 'common';
import withAlertsActions from 'containers/Alert/withAlertActions';
import { useCreditNoteDetailDrawerContext } from '../CreditNoteDetailDrawerProvider';
-
import {
useReconcileCreditTransactionsTableColumns,
ActionsMenu,
@@ -21,8 +19,10 @@ function RefundCreditNoteTransactionsTable({
// #withAlertsActions
openAlert,
}) {
+ // Credit note drawer context.
const { reconcileCreditNotes } = useCreditNoteDetailDrawerContext();
+ // Reconcile credit transactions table columns.
const columns = useReconcileCreditTransactionsTableColumns();
// Handle delete reconile credit.
@@ -39,6 +39,7 @@ function RefundCreditNoteTransactionsTable({
payload={{
onDelete: handleDeleteReconcileCreditNote,
}}
+ styleName={TableStyle.Constrant}
className={'datatable--refund-transactions'}
/>
diff --git a/src/containers/Drawers/CreditNoteDetailDrawer/ReconcileCreditNoteTransactions/components.js b/src/containers/Drawers/CreditNoteDetailDrawer/ReconcileCreditNoteTransactions/components.js
index e3bc36fe2..30bce0ddb 100644
--- a/src/containers/Drawers/CreditNoteDetailDrawer/ReconcileCreditNoteTransactions/components.js
+++ b/src/containers/Drawers/CreditNoteDetailDrawer/ReconcileCreditNoteTransactions/components.js
@@ -20,6 +20,9 @@ export function ActionsMenu({ payload: { onDelete }, row: { original } }) {
);
}
+/**
+ * Credit note reconcilation with invoices table columns.
+ */
export function useReconcileCreditTransactionsTableColumns() {
return React.useMemo(
() => [
diff --git a/src/containers/Drawers/CreditNoteDetailDrawer/RefundCreditNoteTransactions/RefundCreditNoteTransactionsTable.js b/src/containers/Drawers/CreditNoteDetailDrawer/RefundCreditNoteTransactions/RefundCreditNoteTransactionsTable.js
index b192330f2..dacb3ba25 100644
--- a/src/containers/Drawers/CreditNoteDetailDrawer/RefundCreditNoteTransactions/RefundCreditNoteTransactionsTable.js
+++ b/src/containers/Drawers/CreditNoteDetailDrawer/RefundCreditNoteTransactions/RefundCreditNoteTransactionsTable.js
@@ -1,8 +1,7 @@
import React from 'react';
import { DataTable, Card } from 'components';
-import '../../../../style/pages/RefundCreditNote/List.scss';
-
+import { TableStyle } from 'common';
import withAlertsActions from 'containers/Alert/withAlertActions';
import { useCreditNoteDetailDrawerContext } from '../CreditNoteDetailDrawerProvider';
@@ -22,10 +21,10 @@ function RefundCreditNoteTransactionsTable({
}) {
const { refundCreditNote } = useCreditNoteDetailDrawerContext();
+ // Refund credit transactions table columns.
const columns = useRefundCreditTransactionsTableColumns();
// Handle delete refund credit.
-
const handleDeleteRefundCreditNote = ({ id }) => {
openAlert('refund-credit-delete', { creditNoteId: id });
};
@@ -36,10 +35,10 @@ function RefundCreditNoteTransactionsTable({
columns={columns}
data={refundCreditNote}
ContextMenu={ActionsMenu}
+ styleName={TableStyle.Constrant}
payload={{
onDelete: handleDeleteRefundCreditNote,
}}
- className={'datatable--refund-transactions'}
/>
);
diff --git a/src/containers/Drawers/CreditNoteDetailDrawer/utils.js b/src/containers/Drawers/CreditNoteDetailDrawer/utils.js
index cef77fc20..9b35a08d8 100644
--- a/src/containers/Drawers/CreditNoteDetailDrawer/utils.js
+++ b/src/containers/Drawers/CreditNoteDetailDrawer/utils.js
@@ -7,11 +7,14 @@ import {
Position,
MenuItem,
Menu,
+ Tag,
+ Intent,
} from '@blueprintjs/core';
import {
Icon,
FormattedMessage as T,
FormatNumberCell,
+ Choose,
} from '../../../components';
export const useCreditNoteReadOnlyEntriesColumns = () =>
@@ -58,7 +61,11 @@ export const useCreditNoteReadOnlyEntriesColumns = () =>
[],
);
-export const CreditNoteMenuItem = ({ payload: { onReconcile } }) => {
+/**
+ * Credit note more actions mneu.
+ * @returns {React.JSX}
+ */
+export function CreditNoteMenuItem({ payload: { onReconcile } }) {
return (
{
} minimal={true} />
);
-};
+}
+
+/**
+ * Credit note details status.
+ * @returns {React.JSX}
+ */
+export function CreditNoteDetailsStatus({ creditNote }) {
+ return (
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ );
+}
diff --git a/src/containers/Drawers/InvoiceDetailDrawer/InvoiceDetail.js b/src/containers/Drawers/InvoiceDetailDrawer/InvoiceDetail.js
index 95d16a5ff..5d7758507 100644
--- a/src/containers/Drawers/InvoiceDetailDrawer/InvoiceDetail.js
+++ b/src/containers/Drawers/InvoiceDetailDrawer/InvoiceDetail.js
@@ -1,45 +1,50 @@
import React from 'react';
import { Tab } from '@blueprintjs/core';
-import intl from 'react-intl-universal';
-import clsx from 'classnames';
+import styled from 'styled-components';
import { DrawerMainTabs } from 'components';
-import JournalEntriesTable from '../../JournalEntriesTable/JournalEntriesTable';
+import InvoiceDetailActionsBar from './InvoiceDetailActionsBar';
+import InvoiceGLEntriesTable from './InvoiceGLEntriesTable';
import InvoicePaymentTransactionsTable from './InvoicePaymentTransactions/InvoicePaymentTransactionsTable';
import InvoiceDetailTab from './InvoiceDetailTab';
-import { useInvoiceDetailDrawerContext } from './InvoiceDetailDrawerProvider';
-import InvoiceDrawerCls from 'style/components/Drawers/InvoiceDrawer.module.scss';
+/**
+ * Invoice details tabs.
+ * @returns {React.JSX}
+ */
+function InvoiceDetailsTabs() {
+ return (
+
+ } />
+ }
+ />
+ }
+ />
+
+ );
+}
/**
* Invoice view detail.
+ * @returns {React.JSX}
*/
export default function InvoiceDetail() {
- const { transactions } = useInvoiceDetailDrawerContext();
-
return (
-
-
- }
- />
- }
- />
- }
- />
-
-
+
+
+
+
);
}
+
+export const InvoiceDetailsRoot = styled.div``;
diff --git a/src/containers/Drawers/InvoiceDetailDrawer/InvoiceDetailActionsBar.js b/src/containers/Drawers/InvoiceDetailDrawer/InvoiceDetailActionsBar.js
index 1afe626e5..3a0a354cc 100644
--- a/src/containers/Drawers/InvoiceDetailDrawer/InvoiceDetailActionsBar.js
+++ b/src/containers/Drawers/InvoiceDetailDrawer/InvoiceDetailActionsBar.js
@@ -1,6 +1,5 @@
import React from 'react';
import { useHistory } from 'react-router-dom';
-
import {
Button,
NavbarGroup,
@@ -8,7 +7,6 @@ import {
NavbarDivider,
Intent,
} from '@blueprintjs/core';
-import DashboardActionsBar from 'components/Dashboard/DashboardActionsBar';
import { useInvoiceDetailDrawerContext } from './InvoiceDetailDrawerProvider';
@@ -16,7 +14,7 @@ import withDialogActions from 'containers/Dialog/withDialogActions';
import withAlertsActions from 'containers/Alert/withAlertActions';
import withDrawerActions from 'containers/Drawer/withDrawerActions';
-import { If, Can, Icon, FormattedMessage as T } from 'components';
+import { If, Can, Icon, DrawerActionsBar, FormattedMessage as T } from 'components';
import {
SaleInvoiceAction,
PaymentReceiveAction,
@@ -24,7 +22,6 @@ import {
} from '../../../common/abilityOption';
import { compose } from 'utils';
-
import { BadDebtMenuItem } from './utils';
/**
@@ -81,7 +78,7 @@ function InvoiceDetailActionsBar({
};
return (
-
+
}
onClick={handleEditInvoice}
/>
-
}
+ icon={}
text={}
onClick={handleQuickPaymentInvoice}
/>
@@ -132,7 +128,7 @@ function InvoiceDetailActionsBar({
/>
-
+
);
}
diff --git a/src/containers/Drawers/InvoiceDetailDrawer/InvoiceDetailDrawerContent.js b/src/containers/Drawers/InvoiceDetailDrawer/InvoiceDetailDrawerContent.js
index f0f02e483..5bc6109b0 100644
--- a/src/containers/Drawers/InvoiceDetailDrawer/InvoiceDetailDrawerContent.js
+++ b/src/containers/Drawers/InvoiceDetailDrawer/InvoiceDetailDrawerContent.js
@@ -1,13 +1,12 @@
import React from 'react';
import { DrawerBody } from 'components';
-import 'style/components/Drawers/ViewDetail/ViewDetail.scss';
-
import InvoiceDetail from './InvoiceDetail';
import { InvoiceDetailDrawerProvider } from './InvoiceDetailDrawerProvider';
/**
* Invoice detail drawer content.
+ * @returns {React.JSX}
*/
export default function InvoiceDetailDrawerContent({
// #ownProp
diff --git a/src/containers/Drawers/InvoiceDetailDrawer/InvoiceDetailDrawerProvider.js b/src/containers/Drawers/InvoiceDetailDrawer/InvoiceDetailDrawerProvider.js
index fa99842ff..fa5a342d9 100644
--- a/src/containers/Drawers/InvoiceDetailDrawer/InvoiceDetailDrawerProvider.js
+++ b/src/containers/Drawers/InvoiceDetailDrawer/InvoiceDetailDrawerProvider.js
@@ -1,45 +1,30 @@
import React from 'react';
import intl from 'react-intl-universal';
import { DrawerHeaderContent, DrawerLoading } from 'components';
-import {
- useTransactionsByReference,
- useInvoice,
- useInvoicePaymentTransactions,
-} from 'hooks/query';
+import { useInvoice } from 'hooks/query';
const InvoiceDetailDrawerContext = React.createContext();
/**
* Invoice detail provider.
*/
function InvoiceDetailDrawerProvider({ invoiceId, ...props }) {
- // Handle fetch transaction by reference.
- const {
- data: { transactions },
- isLoading: isTransactionLoading,
- } = useTransactionsByReference(
- {
- reference_id: invoiceId,
- reference_type: 'SaleInvoice',
- },
- { enabled: !!invoiceId },
- );
-
// Fetch sale invoice details.
const { data: invoice, isLoading: isInvoiceLoading } = useInvoice(invoiceId, {
enabled: !!invoiceId,
});
- //provider.
+ // Provider.
const provider = {
- transactions,
invoiceId,
invoice,
};
return (
-
+
diff --git a/src/containers/Drawers/InvoiceDetailDrawer/InvoiceDetailFooter.js b/src/containers/Drawers/InvoiceDetailDrawer/InvoiceDetailFooter.js
index b62823464..a0cf545cc 100644
--- a/src/containers/Drawers/InvoiceDetailDrawer/InvoiceDetailFooter.js
+++ b/src/containers/Drawers/InvoiceDetailDrawer/InvoiceDetailFooter.js
@@ -1,8 +1,7 @@
import React from 'react';
-import clsx from 'classnames';
+import styled from 'styled-components';
import { T, TotalLines, FormatNumber, TotalLine } from 'components';
-import InvoiceDrawerCls from 'style/components/Drawers/InvoiceDrawer.module.scss';
import { useInvoiceDetailDrawerContext } from './InvoiceDetailDrawerProvider';
/**
@@ -12,29 +11,55 @@ export function InvoiceDetailFooter() {
const { invoice } = useInvoiceDetailDrawerContext();
return (
-
+
- }
value={}
- className={InvoiceDrawerCls.total_line_subtotal}
/>
- }
value={invoice.formatted_amount}
- className={InvoiceDrawerCls.total_line_total}
/>
}
value={invoice.formatted_payment_amount}
- className={InvoiceDrawerCls.total_line_payment}
/>
- }
value={invoice.formatted_due_amount}
- className={InvoiceDrawerCls.total_line_dueAmount}
/>
-
+
);
}
+
+const SubTotalLine = styled(TotalLine)`
+ border-bottom: 1px solid #000;
+`;
+
+const InvoiceTotalLine = styled(TotalLine)`
+ border-bottom: 3px double #000;
+ font-weight: 600;
+`;
+
+const DueAmountLine = styled(TotalLine)`
+ font-weight: 600;
+`;
+
+const InvoiceDetailsFooterRoot = styled.div`
+ display: flex;
+
+ .total_lines {
+ margin-left: auto;
+ }
+ .total_lines_line {
+ .amount,
+ .title {
+ width: 180px;
+ }
+ .amount {
+ text-align: right;
+ }
+ }
+`;
diff --git a/src/containers/Drawers/InvoiceDetailDrawer/InvoiceDetailHeader.js b/src/containers/Drawers/InvoiceDetailDrawer/InvoiceDetailHeader.js
index 9714cbb6e..1c8076956 100644
--- a/src/containers/Drawers/InvoiceDetailDrawer/InvoiceDetailHeader.js
+++ b/src/containers/Drawers/InvoiceDetailDrawer/InvoiceDetailHeader.js
@@ -1,12 +1,20 @@
import React from 'react';
import intl from 'react-intl-universal';
import { defaultTo } from 'lodash';
-import clsx from 'classnames';
+import styled from 'styled-components';
-import { DetailsMenu, DetailItem, FormatDate } from 'components';
+import {
+ ButtonLink,
+ Row,
+ Col,
+ DetailsMenu,
+ DetailItem,
+ FormatDate,
+ CommercialDocHeader,
+ CommercialDocTopHeader,
+} from 'components';
import { useInvoiceDetailDrawerContext } from './InvoiceDetailDrawerProvider';
-
-import InvoiceDrawerCls from 'style/components/Drawers/InvoiceDrawer.module.scss';
+import { InvoiceDetailsStatus } from './utils';
/**
* Invoice detail header.
@@ -14,44 +22,81 @@ import InvoiceDrawerCls from 'style/components/Drawers/InvoiceDrawer.module.scss
export default function InvoiceDetailHeader() {
const { invoice } = useInvoiceDetailDrawerContext();
- return (
-
-
-
- {invoice.formatted_amount}
-
-
-
- }
- />
- }
- />
-
+ const handleCustomerLinkClick = () => {};
-
-
-
- }
- />
-
-
+ return (
+
+
+
+
+ {invoice.formatted_amount}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {invoice.customer?.display_name}
+
+
+
+
+ {invoice.invoice_no}
+
+
+
+
+
+
+
+ {invoice.formatted_due_amount}
+
+
+
+ {invoice.formatted_payment_amount}
+
+
+
+ }
+ />
+
+
+
+
);
}
+
+const StatusDetailItem = styled(DetailItem)`
+ width: 50%;
+ text-align: right;
+ position: relative;
+ top: -5px;
+`;
+
+const AmountDetailItem = styled(DetailItem)`
+ width: 50%;
+`;
diff --git a/src/containers/Drawers/InvoiceDetailDrawer/InvoiceDetailTab.js b/src/containers/Drawers/InvoiceDetailDrawer/InvoiceDetailTab.js
index 5741f7674..591327b7b 100644
--- a/src/containers/Drawers/InvoiceDetailDrawer/InvoiceDetailTab.js
+++ b/src/containers/Drawers/InvoiceDetailDrawer/InvoiceDetailTab.js
@@ -1,28 +1,20 @@
import React from 'react';
-import clsx from 'classnames';
-import { Card } from 'components';
+import { CommercialDocBox } from 'components';
-import InvoiceDetailActionsBar from './InvoiceDetailActionsBar';
import InvoiceDetailHeader from './InvoiceDetailHeader';
import InvoiceDetailTable from './InvoiceDetailTable';
import { InvoiceDetailFooter } from './InvoiceDetailFooter';
-import InvoiceDrawerCls from 'style/components/Drawers/InvoiceDrawer.module.scss';
-
/**
* Invoice readonly details tab panel.
*/
export default function InvoiceDetailTab() {
return (
-
-
-
-
-
-
-
-
-
+
+
+
+
+
);
-}
\ No newline at end of file
+}
diff --git a/src/containers/Drawers/InvoiceDetailDrawer/InvoiceDetailTable.js b/src/containers/Drawers/InvoiceDetailDrawer/InvoiceDetailTable.js
index 95fa6d8a9..9b6737ee8 100644
--- a/src/containers/Drawers/InvoiceDetailDrawer/InvoiceDetailTable.js
+++ b/src/containers/Drawers/InvoiceDetailDrawer/InvoiceDetailTable.js
@@ -1,12 +1,11 @@
import React from 'react';
-import clsx from 'classnames';
-import { DataTable } from 'components';
+import { CommercialDocEntriesTable } from 'components';
import { useInvoiceReadonlyEntriesColumns } from './utils';
import { useInvoiceDetailDrawerContext } from './InvoiceDetailDrawerProvider';
-import InvoiceDrawerCls from 'style/components/Drawers/InvoiceDrawer.module.scss';
+import { TableStyle } from '../../../common';
/**
* Invoice readonly details entries table columns.
@@ -14,17 +13,16 @@ import InvoiceDrawerCls from 'style/components/Drawers/InvoiceDrawer.module.scss
export default function InvoiceDetailTable() {
const columns = useInvoiceReadonlyEntriesColumns();
+ // Invoice details drawer context.
const {
invoice: { entries },
} = useInvoiceDetailDrawerContext();
return (
-
-
-
+
);
-}
+}
\ No newline at end of file
diff --git a/src/containers/Drawers/InvoiceDetailDrawer/InvoiceGLEntriesTable.js b/src/containers/Drawers/InvoiceDetailDrawer/InvoiceGLEntriesTable.js
new file mode 100644
index 000000000..6b9279aa0
--- /dev/null
+++ b/src/containers/Drawers/InvoiceDetailDrawer/InvoiceGLEntriesTable.js
@@ -0,0 +1,51 @@
+import React from 'react';
+import styled from 'styled-components';
+
+import { Card } from 'components';
+
+import { useTransactionsByReference } from 'hooks/query';
+import { useInvoiceDetailDrawerContext } from './InvoiceDetailDrawerProvider';
+
+import JournalEntriesTable, {
+ AmountDisplayedBaseCurrencyMessage,
+} from '../../JournalEntriesTable/JournalEntriesTable';
+
+/**
+ * Invoice GL entries table.
+ * @returns {React.JSX}
+ */
+export default function InvoiceGLEntriesTable() {
+ const { invoiceId } = useInvoiceDetailDrawerContext();
+
+ // Handle fetch transaction by reference.
+ const {
+ data: { transactions },
+ isLoading: isTransactionLoading,
+ } = useTransactionsByReference(
+ {
+ reference_id: invoiceId,
+ reference_type: 'SaleInvoice',
+ },
+ { enabled: !!invoiceId },
+ );
+
+ return (
+
+
+
+
+ );
+}
+
+const InvoiceGLEntriesDatatable = styled(JournalEntriesTable)`
+ .table .tbody .tr:last-child .td {
+ border-bottom: 0;
+ }
+`;
+
+const InvoiceGLEntriesRoot = styled(Card)`
+ padding: 15px;
+`;
diff --git a/src/containers/Drawers/InvoiceDetailDrawer/InvoicePaymentTransactions/InvoicePaymentTransactionsTable.js b/src/containers/Drawers/InvoiceDetailDrawer/InvoicePaymentTransactions/InvoicePaymentTransactionsTable.js
index ef2928824..da28db3d2 100644
--- a/src/containers/Drawers/InvoiceDetailDrawer/InvoicePaymentTransactions/InvoicePaymentTransactionsTable.js
+++ b/src/containers/Drawers/InvoiceDetailDrawer/InvoicePaymentTransactions/InvoicePaymentTransactionsTable.js
@@ -7,12 +7,17 @@ import { useInvoicePaymentTransactionsColumns } from './components';
import { useInvoiceDetailDrawerContext } from '../InvoiceDetailDrawerProvider';
import { useInvoicePaymentTransactions } from 'hooks/query';
+import { TableStyle } from '../../../../common';
+import TableSkeletonRows from 'components/Datatable/TableSkeletonRows';
+
/**
* Invoice payment transactions datatable.
*/
export default function InvoicePaymentTransactionsTable() {
+ // Retrieve invoice payment transactions columns.
const columns = useInvoicePaymentTransactionsColumns();
+ // Invoice drawer context.
const { invoiceId } = useInvoiceDetailDrawerContext();
// Fetch invoice payment transactions.
@@ -23,6 +28,7 @@ export default function InvoicePaymentTransactionsTable() {
} = useInvoicePaymentTransactions(invoiceId, {
enabled: !!invoiceId,
});
+
return (
);
diff --git a/src/containers/Drawers/InvoiceDetailDrawer/index.js b/src/containers/Drawers/InvoiceDetailDrawer/index.js
index 97c85d71e..fbc89234b 100644
--- a/src/containers/Drawers/InvoiceDetailDrawer/index.js
+++ b/src/containers/Drawers/InvoiceDetailDrawer/index.js
@@ -21,7 +21,7 @@ function InvoiceDetailDrawer({
diff --git a/src/containers/Drawers/InvoiceDetailDrawer/utils.js b/src/containers/Drawers/InvoiceDetailDrawer/utils.js
index 36c9f29d8..3a8bdb695 100644
--- a/src/containers/Drawers/InvoiceDetailDrawer/utils.js
+++ b/src/containers/Drawers/InvoiceDetailDrawer/utils.js
@@ -1,5 +1,6 @@
import React from 'react';
import intl from 'react-intl-universal';
+import styled from 'styled-components';
import {
Button,
Popover,
@@ -7,13 +8,20 @@ import {
Position,
MenuItem,
Menu,
+ Intent,
+ Tag,
} from '@blueprintjs/core';
-import { Icon, FormattedMessage as T, Choose, Can } from 'components';
+import {
+ FormatNumberCell,
+ Icon,
+ FormattedMessage as T,
+ Choose,
+ Can,
+} from 'components';
import {
SaleInvoiceAction,
AbilitySubject,
} from '../../../common/abilityOption';
-import { FormatNumberCell } from '../../../components';
import { useInvoiceDetailDrawerContext } from './InvoiceDetailDrawerProvider';
/**
@@ -63,6 +71,10 @@ export const useInvoiceReadonlyEntriesColumns = () =>
[],
);
+/**
+ * Invoice details more actions menu.
+ * @returns {React.JSX}
+ */
export const BadDebtMenuItem = ({
payload: { onCancelBadDebt, onBadDebt, onNotifyViaSMS },
}) => {
@@ -106,3 +118,43 @@ export const BadDebtMenuItem = ({
);
};
+/**
+ * Invoice details status.
+ * @returns {React.JSX}
+ */
+export function InvoiceDetailsStatus({ invoice }) {
+ return (
+
+
+
+
+
+
+
+
+
+
+
+ Overdue
+
+
+
+
+ Delivered
+
+
+
+
+
+
+
+
+
+
+ );
+}
+
+const StatusTag = styled(Tag)`
+ min-width: 65px;
+ text-align: center;
+`;
diff --git a/src/containers/JournalEntriesTable/JournalEntriesTable.js b/src/containers/JournalEntriesTable/JournalEntriesTable.js
index 16379f8f1..5a8b13034 100644
--- a/src/containers/JournalEntriesTable/JournalEntriesTable.js
+++ b/src/containers/JournalEntriesTable/JournalEntriesTable.js
@@ -1,58 +1,53 @@
import React from 'react';
-import { DataTable, Card } from 'components';
-import intl from 'react-intl-universal';
-import moment from 'moment';
+import { DataTable } from 'components';
-import 'style/pages/JournalEntries/List.scss';
+import styled from 'styled-components';
+import * as R from 'ramda';
+
+import { CurrencyTag } from 'components';
+import { TableStyle } from '../../common';
+import TableSkeletonRows from 'components/Datatable/TableSkeletonRows';
+
+import withCurrentOrganization from 'containers/Organization/withCurrentOrganization';
+import { useGLEntriesTableColumns } from './utils';
/**
* Journal entries table.
*/
-export default function JournalEntriesTable({ transactions }) {
- const columns = React.useMemo(
- () => [
- {
- Header: intl.get('date'),
- accessor: 'date',
- accessor: ({ formatted_date }) =>
- moment(formatted_date).format('YYYY MMM DD'),
- width: 140,
- className: 'date',
- },
- {
- Header: intl.get('account_name'),
- accessor: 'account_name',
- width: 140,
- className: 'account_name',
- },
- {
- Header: intl.get('contact'),
- accessor: 'contactTypeFormatted',
- width: 140,
- },
- {
- Header: intl.get('credit'),
- accessor: ({ credit }) => credit.formatted_amount,
- width: 100,
- className: 'credit',
- },
- {
- Header: intl.get('debit'),
- accessor: ({ debit }) => debit.formatted_amount,
- width: 100,
- className: 'debit',
- },
- ],
- [],
- );
+export default function JournalEntriesTable({ transactions, ...restProps }) {
+ const columns = useGLEntriesTableColumns();
return (
-
-
-
+
);
}
+
+/**
+ *
+ * @returns {React.JSX}
+ */
+export function AmountDisplayedBaseCurrencyMessageJSX({
+ organization: { base_currency: baseCurrency },
+}) {
+ return (
+
+ Amount is displayed in your base currency{' '}
+ {baseCurrency}
+
+ );
+}
+
+export const AmountDisplayedBaseCurrencyMessage = R.compose(
+ withCurrentOrganization(),
+)(AmountDisplayedBaseCurrencyMessageJSX);
+
+const Message = styled.div`
+ font-size: 10px;
+ margin-bottom: 12px;
+`;
diff --git a/src/containers/JournalEntriesTable/utils.js b/src/containers/JournalEntriesTable/utils.js
new file mode 100644
index 000000000..0375ea5ce
--- /dev/null
+++ b/src/containers/JournalEntriesTable/utils.js
@@ -0,0 +1,44 @@
+import React from 'react';
+import intl from 'react-intl-universal';
+import moment from 'moment';
+
+
+export const useGLEntriesTableColumns = () => {
+ return React.useMemo(
+ () => [
+ {
+ Header: intl.get('date'),
+ accessor: 'date',
+ accessor: ({ formatted_date }) =>
+ moment(formatted_date).format('YYYY MMM DD'),
+ width: 140,
+ className: 'date',
+ },
+ {
+ Header: intl.get('account_name'),
+ accessor: 'account_name',
+ width: 140,
+ className: 'account_name',
+ },
+ {
+ Header: intl.get('contact'),
+ accessor: 'contactTypeFormatted',
+ width: 140,
+ },
+ {
+ Header: intl.get('credit'),
+ accessor: ({ credit }) => credit.formatted_amount,
+ width: 100,
+ className: 'credit',
+ textAligment: 'right',
+ },
+ {
+ Header: intl.get('debit'),
+ accessor: ({ debit }) => debit.formatted_amount,
+ width: 100,
+ className: 'debit',
+ },
+ ],
+ [],
+ );
+};
diff --git a/src/containers/Sales/Invoices/InvoicesLanding/components.js b/src/containers/Sales/Invoices/InvoicesLanding/components.js
index 79abd6b61..89dc752cc 100644
--- a/src/containers/Sales/Invoices/InvoicesLanding/components.js
+++ b/src/containers/Sales/Invoices/InvoicesLanding/components.js
@@ -27,53 +27,59 @@ import {
AbilitySubject,
} from '../../../../common/abilityOption';
+export function InvoiceStatus({ invoice }) {
+ return (
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {intl.get('overdue_by', { overdue: invoice.overdue_days })}
+
+
+
+
+ {intl.get('due_in', { due: invoice.remaining_days })}
+
+
+
+
+
+
+ {intl.get('day_partially_paid', {
+ due: formattedAmount(invoice.due_amount, invoice.currency_code),
+ })}
+
+
+
+
+
+
+
+
+
+
+ );
+}
+
export const statusAccessor = (row) => {
return (
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {intl.get('overdue_by', { overdue: row.overdue_days })}
-
-
-
-
- {intl.get('due_in', { due: row.remaining_days })}
-
-
-
-
-
-
- {intl.get('day_partially_paid', {
- due: formattedAmount(row.due_amount, row.currency_code),
- })}
-
-
-
-
-
-
-
-
-
-
+
);
};
diff --git a/src/lang/en/index.json b/src/lang/en/index.json
index fc2b8bab1..990b12070 100644
--- a/src/lang/en/index.json
+++ b/src/lang/en/index.json
@@ -910,7 +910,7 @@
"drag_drop_files_here_or_click_here": "Drag/Drop files here or click here.",
"enter_an_item": "Enter an item...",
"due_amount": "Due Amount",
- "invoice_details": "Invoice details",
+ "invoice_details.drawer.title": "Invoice details ({invoiceNumber})",
"setting_your_auto_generated_estimate_number": "Setting your auto-generated estimate number",
"setting_your_auto_generated_journal_number": "Setting your auto-generated journal number",
"setting_your_auto_generated_invoice_number": "Setting your auto-generated invoice number",
@@ -1531,7 +1531,7 @@
"vendor_credit.auto_increment.auto": "Your vendor credit numbers are set on auto-increment mode. Are you sure changing this setting?",
"vendor_credit.auto_increment.manually": "Your vendor credit numbers are set on manual mode. Are you sure chaning this settings?",
"setting_your_auto_generated_vendor_credit_number": "Setting your auto-generated vendor credit number",
- "credit_note.drawer_credit_note_detail": "Credit Note details",
+ "credit_note.drawer_credit_note_detail": "Credit Note details ({creditNumber})",
"credit_note.drawer.label_credit_note_no": "Credit Note #",
"credit_note.drawer.label_credit_note_date": "Credit Date",
"credit_note.drawer.label_credits_remaining": "Credits Remaining",
@@ -1640,5 +1640,4 @@
"invoice_transactions.column.withdrawal_account": "Deposit account",
"bill_transactions.column.deposit_account": "Withdrawal account",
"transactions_locking.lock_item.no_lock": "There are no locked transactions in this module."
-}
-
+}
\ No newline at end of file
diff --git a/src/style/components/DataTable/DataTable.scss b/src/style/components/DataTable/DataTable.scss
index 1eb7c15f9..1258e6160 100644
--- a/src/style/components/DataTable/DataTable.scss
+++ b/src/style/components/DataTable/DataTable.scss
@@ -120,7 +120,6 @@
}
.bp3-control.bp3-checkbox .bp3-control-indicator {
- border: 1px solid #c2c2c2;
cursor: auto;
&,
@@ -359,12 +358,10 @@
.ReactVirtualized__Grid {
will-change: auto !important;
}
-
-
-
}
-.table-constrant {
+.table-constrant,
+.table--constrant {
.table {
.thead .th {
background: transparent;
@@ -379,9 +376,5 @@
padding: 0.5rem 0.5rem;
border-bottom: 0;
}
-
- .tbody .tr:last-child .td {
- border-bottom: 1px solid #d2dce2;
- }
}
}
\ No newline at end of file
diff --git a/src/style/components/Details.scss b/src/style/components/Details.scss
index 6b62d9fd7..fd28128cb 100644
--- a/src/style/components/Details.scss
+++ b/src/style/components/Details.scss
@@ -10,7 +10,7 @@
flex-grow: 1;
&__content{
- margin: 5px 0;
+ margin: 2px 0;
}
}
}
@@ -23,12 +23,16 @@
flex-direction: row;
&:not(:first-of-type){
- margin-top: 16px;
+ margin-top: 12px;
}
&__label{
padding-right: 10px;
}
+
+ &__content{
+ width: 100%;
+ }
}
}
diff --git a/src/style/components/Drawers/CreditNoteDetails.module.scss b/src/style/components/Drawers/CreditNoteDetails.module.scss
deleted file mode 100644
index 5f0de943f..000000000
--- a/src/style/components/Drawers/CreditNoteDetails.module.scss
+++ /dev/null
@@ -1,68 +0,0 @@
-.root {
-}
-
-.detail_panel {
- :global .card {
- padding: 22px 15px;
- margin: 15px;
- }
-
- &_table {
- :global .bigcapital-datatable {
- margin-top: 30px;
-
- .thead,
- .tbody {
- .quantity,
- .rate,
- .amount {
- text-align: right;
- }
- }
- }
- }
-
- &_footer {
- :global .total_lines {
- margin-left: auto;
-
- &_line {
- .title {
- padding-left: 0;
- }
- .amount,
- .title {
- width: 180px;
- }
- .amount {
- text-align: right;
- }
- }
- }
- }
-
- &_footer {
- display: flex;
- margin-bottom: 20px;
- }
-
- .total_line {
- &_subtotal {
- border-bottom: 1px solid #000;
- }
-
- &_total {
- border-bottom: 3px double #000;
- font-weight: 600;
- }
- &_dueAmount {
- font-weight: 600;
- }
- }
-
- &_note {
- b {
- color: #727983;
- }
- }
-}
diff --git a/src/style/components/Drawers/InvoiceDrawer.module.scss b/src/style/components/Drawers/InvoiceDrawer.module.scss
deleted file mode 100644
index 770744e1c..000000000
--- a/src/style/components/Drawers/InvoiceDrawer.module.scss
+++ /dev/null
@@ -1,59 +0,0 @@
-
-.detail_panel {
- :global .card {
- padding: 22px 15px;
- }
-
- &_header {
- margin-bottom: 30px;
- }
-
- &_table {
- :global .bigcapital-datatable {
-
- .thead,
- .tbody {
-
- .quantity,
- .rate,
- .amount {
- text-align: right;
- }
- }
- }
- }
-
- &_footer {
- display: flex;
-
- :global .total_lines {
- margin-left: auto;
- }
-
- :global .total_lines_line {
-
- .amount,
- .title {
- width: 180px;
- }
-
- .amount {
- text-align: right;
- }
- }
- .total_line {
- &_subtotal {
- border-bottom: 1px solid #000;
- }
-
- &_total {
- border-bottom: 3px double #000;
- font-weight: 600;
- }
-
- &_dueAmount {
- font-weight: 600;
- }
- }
- }
-}
\ No newline at end of file
diff --git a/src/style/objects/form.scss b/src/style/objects/form.scss
index b426192c2..80ca55605 100644
--- a/src/style/objects/form.scss
+++ b/src/style/objects/form.scss
@@ -504,4 +504,8 @@ label.bp3-label {
}
}
}
+}
+
+.bp3-control.bp3-checkbox .bp3-control-indicator{
+ border-color: #666;
}
\ No newline at end of file
diff --git a/src/style/pages/JournalEntries/List.scss b/src/style/pages/JournalEntries/List.scss
index 79350d01d..1c9c5a9b7 100644
--- a/src/style/pages/JournalEntries/List.scss
+++ b/src/style/pages/JournalEntries/List.scss
@@ -1,29 +1,29 @@
-.datatable--journal-entries {
- // margin: 12px;
- padding: 12px;
+// .datatable--journal-entries {
+// // margin: 12px;
+// padding: 12px;
- .table {
- .tbody,
- .thead {
- .tr .th {
- padding: 8px 8px;
- background-color: #fff;
- font-size: 14px;
- border-bottom: 1px solid #000;
- border-top: 1px solid #000;
- }
- }
- .tbody {
- .tr .td {
- border-bottom: 0;
- padding-top: 0.4rem;
- padding-bottom: 0.4rem;
+// .table {
+// .tbody,
+// .thead {
+// .tr .th {
+// padding: 8px 8px;
+// background-color: #fff;
+// font-size: 14px;
+// border-bottom: 1px solid #000;
+// border-top: 1px solid #000;
+// }
+// }
+// .tbody {
+// .tr .td {
+// border-bottom: 0;
+// padding-top: 0.4rem;
+// padding-bottom: 0.4rem;
- &.credit,
- &.debit {
- font-weight: 600;
- }
- }
- }
- }
-}
+// &.credit,
+// &.debit {
+// font-weight: 600;
+// }
+// }
+// }
+// }
+// }
diff --git a/src/style/pages/RefundCreditNote/List.scss b/src/style/pages/RefundCreditNote/List.scss
index 05ebf36d1..e69de29bb 100644
--- a/src/style/pages/RefundCreditNote/List.scss
+++ b/src/style/pages/RefundCreditNote/List.scss
@@ -1,27 +0,0 @@
-.datatable--refund-transactions {
- padding: 12px;
- .table {
- .tbody,
- .thead {
- .tr .th {
- padding: 8px 8px;
- background-color: #fff;
- font-size: 14px;
- border-bottom: 1px solid #000;
- border-top: 1px solid #000;
- }
- }
- .tbody {
- .tr .td {
- border-bottom: 0;
- padding-top: 0.4rem;
- padding-bottom: 0.4rem;
-
- &.credit,
- &.debit {
- font-weight: 600;
- }
- }
- }
- }
-}