diff --git a/src/containers/Sales/Invoices/InvoiceForm/InvoiceFormFooter.js b/src/containers/Sales/Invoices/InvoiceForm/InvoiceFormFooter.js
index b25259b6c..57d990bc8 100644
--- a/src/containers/Sales/Invoices/InvoiceForm/InvoiceFormFooter.js
+++ b/src/containers/Sales/Invoices/InvoiceForm/InvoiceFormFooter.js
@@ -1,57 +1,30 @@
import React from 'react';
-import { FastField } from 'formik';
import classNames from 'classnames';
-import { FormGroup, TextArea } from '@blueprintjs/core';
-import { FormattedMessage as T } from 'components';
-import { CLASSES } from 'common/classes';
-import { Row, Col, Postbox } from 'components';
-import Dragzone from 'components/Dragzone';
+import styled from 'styled-components';
-import { inputIntent } from 'utils';
+import { CLASSES } from 'common/classes';
+import { Paper, Row, Col } from 'components';
+import { InvoiceFormFooterLeft } from './InvoiceFormFooterLeft';
+import { InvoiceFormFooterRight } from './InvoiceFormFooterRight';
export default function InvoiceFormFooter() {
return (
-
} defaultOpen={false}>
+
- {/* --------- Invoice message --------- */}
-
- {({ field, meta: { error, touched } }) => (
- }
- className={'form-group--invoice_message'}
- intent={inputIntent({ error, touched })}
- >
-
-
- )}
-
-
- {/* --------- Terms and conditions --------- */}
-
- {({ field, meta: { error, touched } }) => (
- }
- className={'form-group--terms_conditions'}
- intent={inputIntent({ error, touched })}
- >
-
-
- )}
-
+
- }
- />
+
-
+
);
}
+
+const InvoiceFooterPaper = styled(Paper)`
+ padding: 20px;
+`;
diff --git a/src/containers/Sales/Invoices/InvoiceForm/InvoiceFormFooterLeft.js b/src/containers/Sales/Invoices/InvoiceForm/InvoiceFormFooterLeft.js
new file mode 100644
index 000000000..02307a701
--- /dev/null
+++ b/src/containers/Sales/Invoices/InvoiceForm/InvoiceFormFooterLeft.js
@@ -0,0 +1,61 @@
+import React from 'react';
+import styled from 'styled-components';
+import { FFormGroup, FEditableText, FormattedMessage as T } from 'components';
+
+export function InvoiceFormFooterLeft() {
+ return (
+
+ {/* --------- Invoice message --------- */}
+ }
+ hintText={'Will be displayed on the invoice'}
+ >
+
+
+
+ {/* --------- Terms and conditions --------- */}
+ }
+ name={'terms_conditions'}
+ >
+
+
+
+ );
+}
+
+const InvoiceMsgFormGroup = styled(FFormGroup)`
+ &.bp3-form-group {
+ margin-bottom: 40px;
+
+ .bp3-label {
+ font-size: 12px;
+ margin-bottom: 12px;
+ }
+ .bp3-form-content {
+ margin-left: 10px;
+ }
+ }
+`;
+
+const TermsConditsFormGroup = styled(FFormGroup)`
+ &.bp3-form-group {
+
+ .bp3-label {
+ font-size: 12px;
+ margin-bottom: 12px;
+ }
+ .bp3-form-content {
+ margin-left: 10px;
+ }
+ }
+`;
diff --git a/src/containers/Sales/Invoices/InvoiceForm/InvoiceFormFooterRight.js b/src/containers/Sales/Invoices/InvoiceForm/InvoiceFormFooterRight.js
new file mode 100644
index 000000000..977567718
--- /dev/null
+++ b/src/containers/Sales/Invoices/InvoiceForm/InvoiceFormFooterRight.js
@@ -0,0 +1,47 @@
+import React from 'react';
+import styled from 'styled-components';
+
+import {
+ T,
+ TotalLines,
+ TotalLine,
+ TotalLineBorderStyle,
+ TotalLineTextStyle,
+} from 'components';
+import { useInvoiceTotal } from './utils';
+
+export function InvoiceFormFooterRight() {
+ // Calculate the total due amount of invoice entries.
+ const totalInvoice = useInvoiceTotal();
+
+ return (
+
+ }
+ value={'$5000.00'}
+ borderStyle={TotalLineBorderStyle.None}
+ />
+ }
+ value={'$5000.00'}
+ borderStyle={TotalLineBorderStyle.SingleDark}
+ textStyle={TotalLineTextStyle.Bold}
+ />
+ }
+ value={'$0.00'}
+ borderStyle={TotalLineBorderStyle.None}
+ />
+ }
+ value={'$5000.00'}
+ textStyle={TotalLineTextStyle.Bold}
+ />
+
+ );
+}
+
+const InvoiceTotalLines = styled(TotalLines)`
+ width: 100%;
+ color: #555555;
+`;