From 696943153dfbd49eaa6f0e68c4ba75913495ade8 Mon Sep 17 00:00:00 2001
From: elforjani13 <39470382+elforjani13@users.noreply.github.com>
Date: Tue, 28 Sep 2021 18:32:30 +0200
Subject: [PATCH] feat: quick payment receive & made in action Bar.
---
src/containers/Drawers/BillDrawer/BillDetailActionsBar.js | 3 ++-
.../Drawers/InvoiceDetailDrawer/InvoiceDetailActionsBar.js | 3 ++-
src/containers/Purchases/Bills/BillsLanding/components.js | 2 +-
src/containers/Sales/Invoices/InvoicesLanding/components.js | 2 +-
src/lang/ar/index.json | 2 +-
src/lang/en/index.json | 2 +-
6 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/src/containers/Drawers/BillDrawer/BillDetailActionsBar.js b/src/containers/Drawers/BillDrawer/BillDetailActionsBar.js
index 65bf1a998..8a14d3795 100644
--- a/src/containers/Drawers/BillDrawer/BillDetailActionsBar.js
+++ b/src/containers/Drawers/BillDrawer/BillDetailActionsBar.js
@@ -59,11 +59,12 @@ function BillDetailActionsBar({
text={}
onClick={safeCallback(onEditBill)}
/>
+
}
- text={}
+ text={}
onClick={handleQuickBillPayment}
/>
diff --git a/src/containers/Drawers/InvoiceDetailDrawer/InvoiceDetailActionsBar.js b/src/containers/Drawers/InvoiceDetailDrawer/InvoiceDetailActionsBar.js
index 5449e1f7e..32e9b709b 100644
--- a/src/containers/Drawers/InvoiceDetailDrawer/InvoiceDetailActionsBar.js
+++ b/src/containers/Drawers/InvoiceDetailDrawer/InvoiceDetailActionsBar.js
@@ -68,11 +68,12 @@ function InvoiceDetailActionsBar({
text={}
onClick={handleEditInvoice}
/>
+
}
- text={}
+ text={}
onClick={handleQuickPaymentInvoice}
/>
diff --git a/src/containers/Purchases/Bills/BillsLanding/components.js b/src/containers/Purchases/Bills/BillsLanding/components.js
index bd995fdfd..9cd1ec6fa 100644
--- a/src/containers/Purchases/Bills/BillsLanding/components.js
+++ b/src/containers/Purchases/Bills/BillsLanding/components.js
@@ -57,7 +57,7 @@ export function ActionsMenu({
}
- text={intl.get('payment_divider')}
+ text={intl.get('add_payment')}
onClick={safeCallback(onQuick, original)}
/>
diff --git a/src/containers/Sales/Invoices/InvoicesLanding/components.js b/src/containers/Sales/Invoices/InvoicesLanding/components.js
index b758a5cbe..2efde999e 100644
--- a/src/containers/Sales/Invoices/InvoicesLanding/components.js
+++ b/src/containers/Sales/Invoices/InvoicesLanding/components.js
@@ -131,7 +131,7 @@ export function ActionsMenu({
}
- text={intl.get('payment_divider')}
+ text={intl.get('add_payment')}
onClick={safeCallback(onQuick, original)}
/>
diff --git a/src/lang/ar/index.json b/src/lang/ar/index.json
index 963fbbadb..8200dba9c 100644
--- a/src/lang/ar/index.json
+++ b/src/lang/ar/index.json
@@ -833,7 +833,7 @@
"the_payment_amount_that_received": "مبلغ الدفع الذي تم استلامه من الزبون أكبر من المبلغ المستحق لهذه الفاتورة.",
"invoice_number": "رقم الفاتورة",
"make_payment": "قم بالدفع",
- "payment_divider": "إضافة الدفع",
+ "add_payment": "إضافة الدفع",
"quick_receive_payment": "سند قبض سريع",
"amount_received": "تم استلام المبلغ",
"payment_receive_number_required": "مطلوب رقم استلام الدفعة",
diff --git a/src/lang/en/index.json b/src/lang/en/index.json
index 320b6b16c..1ffcc604b 100644
--- a/src/lang/en/index.json
+++ b/src/lang/en/index.json
@@ -820,7 +820,7 @@
"invoice_date": "Invoice date",
"invoice_amount": "Invoice amount",
"make_payment": "Make Payment",
- "payment_divider": "Payment divider",
+"add_payment": "Add Payment",
"quick_receive_payment": "Quick Receive Payment",
"amount_received": "Amount Received",
"payment_no": "Payment No.",