From fd5be35d9581c96b9bf7328ebd9e114802ba612e Mon Sep 17 00:00:00 2001 From: elforjani3 Date: Sun, 7 Mar 2021 15:35:38 +0200 Subject: [PATCH] fix:(paymentreceive):payment date. --- .../PaymentReceiveForm/PaymentReceiveHeaderFields.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/client/src/containers/Sales/PaymentReceives/PaymentReceiveForm/PaymentReceiveHeaderFields.js b/client/src/containers/Sales/PaymentReceives/PaymentReceiveForm/PaymentReceiveHeaderFields.js index 60d14dc05..38f0c047b 100644 --- a/client/src/containers/Sales/PaymentReceives/PaymentReceiveForm/PaymentReceiveHeaderFields.js +++ b/client/src/containers/Sales/PaymentReceives/PaymentReceiveForm/PaymentReceiveHeaderFields.js @@ -18,6 +18,7 @@ import { safeSumBy, momentFormatter, tansformDateValue, + handleDateChange, inputIntent, } from 'utils'; import { @@ -78,10 +79,9 @@ function PaymentReceiveHeaderFields({ setFieldValue('entries', newEntries); }; - // Handle click open payment receive number dialog. const handleClickOpenDialog = () => { - openDialog('payment-receive-number-form') + openDialog('payment-receive-number-form'); }; return ( @@ -129,7 +129,9 @@ function PaymentReceiveHeaderFields({ { + form.setFieldValue('payment_date', formattedDate); + })} popoverProps={{ position: Position.BOTTOM, minimal: true }} inputProps={{ leftIcon: , @@ -264,5 +266,5 @@ export default compose( withSettings(({ organizationSettings }) => ({ baseCurrency: organizationSettings?.baseCurrency, })), - withDialogActions + withDialogActions, )(PaymentReceiveHeaderFields);