diff --git a/client/src/components/DrawersContainer.js b/client/src/components/DrawersContainer.js
index de75a65b3..f7f326347 100644
--- a/client/src/components/DrawersContainer.js
+++ b/client/src/components/DrawersContainer.js
@@ -2,6 +2,7 @@ import React from 'react';
import EstimateDrawer from 'containers/Sales/Estimate/EstimateDrawer';
import InvoiceDrawer from 'containers/Sales/Invoice/InvoiceDrawer';
import ReceiptDrawer from 'containers/Sales/Receipt/ReceiptDrawer';
+import PaymentReceive from 'containers/Sales/PaymentReceive/PaymentReceiveDrawer';
export default function DrawersContainer() {
return (
@@ -9,6 +10,7 @@ export default function DrawersContainer() {
+
);
}
diff --git a/client/src/containers/Drawers/PaymentPaperTemplate.js b/client/src/containers/Drawers/PaymentPaperTemplate.js
new file mode 100644
index 000000000..c5eb4a3e5
--- /dev/null
+++ b/client/src/containers/Drawers/PaymentPaperTemplate.js
@@ -0,0 +1,102 @@
+import React from 'react';
+import { Icon } from 'components';
+import 'style/components/Drawer/DrawerTemplate.scss';
+
+export default function PaymentPaperTemplate({ labels: propLabels }) {
+ const labels = {
+ title: 'Payment receive',
+ billedTo: 'Billed to',
+ paymentDate: 'Payment date',
+ paymentNo: 'Payment No.',
+ billedFrom: 'Billed from',
+ referenceNo: 'Reference No',
+ amountReceived: 'Amount received',
+ ...propLabels,
+ };
+
+ return (
+
+
+
+
+
{labels.title}
+
info@bigcapital.ly
+
+
+
+
+
+
+
{labels.billedTo}
+
Step Currency
+
+
+
{labels.paymentDate}
+
1/1/2022
+
+
+
{labels.paymentNo}
+
IN-2022
+
+
+
{labels.amountReceived}
+
60,000 USD
+
+
+
{labels.billedFrom}
+
Klay Thompson
+
+
+
{labels.referenceNo}
+
+
+
+
+
+
+ Invoice number
+
+
+ Invoice date
+
+
+ Invoice amount
+
+
+ Payment amount
+
+
+
+
+
+ INV-1
+
+
+ 12 Jan 2021
+
+
+ 50,000 USD
+
+
+ 1000 USD
+
+
+
+
+ INV-2{' '}
+
+
+ 12 Jan 2021
+
+
+ 50,000 USD
+
+
+ 1000 USD
+
+
+
+
+
+ );
+}
diff --git a/client/src/containers/Sales/PaymentReceive/PaymentReceiveDrawer.js b/client/src/containers/Sales/PaymentReceive/PaymentReceiveDrawer.js
new file mode 100644
index 000000000..a2cf23a5d
--- /dev/null
+++ b/client/src/containers/Sales/PaymentReceive/PaymentReceiveDrawer.js
@@ -0,0 +1,29 @@
+import React from 'react';
+import DrawerTemplate from 'containers/Drawers/DrawerTemplate';
+import PaymentPaperTemplate from 'containers/Drawers/PaymentPaperTemplate';
+import withDrawers from 'containers/Drawer/withDrawers';
+import withDrawerActions from 'containers/Drawer/withDrawerActions';
+
+import { compose } from 'utils';
+
+function PaymentReceiveDrawer({
+ name,
+ //#withDrawer
+ isOpen,
+ payload,
+
+ closeDrawer,
+}) {
+ // handle close Drawer
+ const handleDrawerClose = () => {
+ closeDrawer(name);
+ };
+
+ return (
+
+
+
+ );
+}
+
+export default compose(withDrawers(), withDrawerActions)(PaymentReceiveDrawer);
diff --git a/client/src/containers/Sales/PaymentReceive/PaymentReceivesDataTable.js b/client/src/containers/Sales/PaymentReceive/PaymentReceivesDataTable.js
index 2358e68c0..cf7f2c7d7 100644
--- a/client/src/containers/Sales/PaymentReceive/PaymentReceivesDataTable.js
+++ b/client/src/containers/Sales/PaymentReceive/PaymentReceivesDataTable.js
@@ -43,10 +43,11 @@ function PaymentReceivesDataTable({
// #withSettings
baseCurrency,
-
+
// #OwnProps
onEditPaymentReceive,
onDeletePaymentReceive,
+ onDrawerPaymentReceive,
onSelectedRowsChange,
}) {
const isLoaded = useIsValuePassed(paymentReceivesLoading, false);
@@ -105,6 +106,10 @@ function PaymentReceivesDataTable({
text={formatMessage({ id: 'edit_payment_receive' })}
onClick={handleEditPaymentReceive(paymentReceive)}
/>
+