From bdb524a2480d4218c4983f778ca54c9bb91204a3 Mon Sep 17 00:00:00 2001 From: elforjani3 Date: Sun, 22 Nov 2020 12:28:22 +0200 Subject: [PATCH] Fix : Add prepend and money field group to payment amount field. --- .../PaymentReceiveFormHeader.js | 33 ++++++++++++------- 1 file changed, 22 insertions(+), 11 deletions(-) diff --git a/client/src/containers/Sales/PaymentReceive/PaymentReceiveFormHeader.js b/client/src/containers/Sales/PaymentReceive/PaymentReceiveFormHeader.js index cd6d5ec7d..09c3f9943 100644 --- a/client/src/containers/Sales/PaymentReceive/PaymentReceiveFormHeader.js +++ b/client/src/containers/Sales/PaymentReceive/PaymentReceiveFormHeader.js @@ -21,12 +21,15 @@ import { FieldRequiredHint, Icon, InputPrependButton, + MoneyInputGroup, + InputPrependText, Hint, Money, } from 'components'; import withCustomers from 'containers/Customers/withCustomers'; import withAccounts from 'containers/Accounts/withAccounts'; +import withSettings from 'containers/Settings/withSettings'; import withDialogActions from 'containers/Dialog/withDialogActions'; function PaymentReceiveFormHeader({ @@ -47,6 +50,9 @@ function PaymentReceiveFormHeader({ //#withAccouts accountsList, + //#withSettings + baseCurrency, + // #withInvoices receivableInvoices, // #ownProps @@ -149,15 +155,17 @@ function PaymentReceiveFormHeader({ } > - + + + + Receive full amount ( - ) + ) @@ -269,7 +277,7 @@ function PaymentReceiveFormHeader({
Amount Received

- +

@@ -285,5 +293,8 @@ export default compose( withAccounts(({ accountsList }) => ({ accountsList, })), + withSettings(({ organizationSettings }) => ({ + baseCurrency: organizationSettings?.baseCurrency, + })), withDialogActions, )(PaymentReceiveFormHeader);