diff --git a/client/src/components/DrawersContainer.js b/client/src/components/DrawersContainer.js
index 00cdaac4c..de75a65b3 100644
--- a/client/src/components/DrawersContainer.js
+++ b/client/src/components/DrawersContainer.js
@@ -1,12 +1,14 @@
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';
export default function DrawersContainer() {
return (
+
);
}
diff --git a/client/src/containers/Sales/Invoice/InvoiceDrawer.js b/client/src/containers/Sales/Invoice/InvoiceDrawer.js
index 54aee6d71..58de80ad8 100644
--- a/client/src/containers/Sales/Invoice/InvoiceDrawer.js
+++ b/client/src/containers/Sales/Invoice/InvoiceDrawer.js
@@ -33,7 +33,7 @@ function InvoiceDrawer({
return (
-
+
);
}
diff --git a/client/src/containers/Sales/Receipt/ReceiptDrawer.js b/client/src/containers/Sales/Receipt/ReceiptDrawer.js
new file mode 100644
index 000000000..9434e4a38
--- /dev/null
+++ b/client/src/containers/Sales/Receipt/ReceiptDrawer.js
@@ -0,0 +1,43 @@
+import React from 'react';
+import DrawerTemplate from 'containers/Drawers/DrawerTemplate';
+import PaperTemplate from 'containers/Drawers/PaperTemplate';
+import withDrawers from 'containers/Drawer/withDrawers';
+import withDrawerActions from 'containers/Drawer/withDrawerActions';
+
+import { compose } from 'utils';
+
+const ReceiptDrawer = ({
+ name,
+ //#withDrawer
+ isOpen,
+ payload,
+
+ closeDrawer,
+}) => {
+ // handle close Drawer
+ const handleDrawerClose = () => {
+ closeDrawer(name);
+ };
+
+ const propLabels = {
+ labels: {
+ name: 'Receipt',
+ billedTo: 'Billed to',
+ date: 'Receipt date',
+ refNo: 'Receipt No.',
+ billedFrom: 'Billed from',
+ amount: 'Receipt amount',
+ dueDate: 'Due date',
+ },
+ };
+
+ return (
+
+ );
+};
+
+export default compose(withDrawers(), withDrawerActions)(ReceiptDrawer);
diff --git a/client/src/containers/Sales/Receipt/ReceiptsDataTable.js b/client/src/containers/Sales/Receipt/ReceiptsDataTable.js
index 4baa3f38a..b163226f6 100644
--- a/client/src/containers/Sales/Receipt/ReceiptsDataTable.js
+++ b/client/src/containers/Sales/Receipt/ReceiptsDataTable.js
@@ -55,6 +55,7 @@ function ReceiptsDataTable({
onEditReceipt,
onDeleteReceipt,
onCloseReceipt,
+ onDrawerReceipt,
onSelectedRowsChange,
}) {
const { formatMessage } = useIntl();
@@ -93,6 +94,11 @@ function ReceiptsDataTable({
onClick={() => onCloseReceipt(receipt)}
/>
+
+