mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 22:00:31 +00:00
fix:(paymentreceive):payment date.
This commit is contained in:
@@ -18,6 +18,7 @@ import {
|
|||||||
safeSumBy,
|
safeSumBy,
|
||||||
momentFormatter,
|
momentFormatter,
|
||||||
tansformDateValue,
|
tansformDateValue,
|
||||||
|
handleDateChange,
|
||||||
inputIntent,
|
inputIntent,
|
||||||
} from 'utils';
|
} from 'utils';
|
||||||
import {
|
import {
|
||||||
@@ -78,10 +79,9 @@ function PaymentReceiveHeaderFields({
|
|||||||
setFieldValue('entries', newEntries);
|
setFieldValue('entries', newEntries);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
// Handle click open payment receive number dialog.
|
// Handle click open payment receive number dialog.
|
||||||
const handleClickOpenDialog = () => {
|
const handleClickOpenDialog = () => {
|
||||||
openDialog('payment-receive-number-form')
|
openDialog('payment-receive-number-form');
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@@ -129,7 +129,9 @@ function PaymentReceiveHeaderFields({
|
|||||||
<DateInput
|
<DateInput
|
||||||
{...momentFormatter('YYYY/MM/DD')}
|
{...momentFormatter('YYYY/MM/DD')}
|
||||||
value={tansformDateValue(value)}
|
value={tansformDateValue(value)}
|
||||||
// onChange={handleDateChange('payment_date')}
|
onChange={handleDateChange((formattedDate) => {
|
||||||
|
form.setFieldValue('payment_date', formattedDate);
|
||||||
|
})}
|
||||||
popoverProps={{ position: Position.BOTTOM, minimal: true }}
|
popoverProps={{ position: Position.BOTTOM, minimal: true }}
|
||||||
inputProps={{
|
inputProps={{
|
||||||
leftIcon: <Icon icon={'date-range'} />,
|
leftIcon: <Icon icon={'date-range'} />,
|
||||||
@@ -264,5 +266,5 @@ export default compose(
|
|||||||
withSettings(({ organizationSettings }) => ({
|
withSettings(({ organizationSettings }) => ({
|
||||||
baseCurrency: organizationSettings?.baseCurrency,
|
baseCurrency: organizationSettings?.baseCurrency,
|
||||||
})),
|
})),
|
||||||
withDialogActions
|
withDialogActions,
|
||||||
)(PaymentReceiveHeaderFields);
|
)(PaymentReceiveHeaderFields);
|
||||||
|
|||||||
Reference in New Issue
Block a user