mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-20 23:00:34 +00:00
chore: renmame payment receive term to payment received
This commit is contained in:
@@ -33,7 +33,7 @@ import { DialogsName } from '@/constants/dialogs';
|
||||
/**
|
||||
* Payment receive actions bar.
|
||||
*/
|
||||
function PaymentReceiveActionsBar({
|
||||
function PaymentsReceivedActionsBar({
|
||||
// #withAlertsActions
|
||||
openAlert,
|
||||
|
||||
@@ -50,13 +50,13 @@ function PaymentReceiveActionsBar({
|
||||
|
||||
// Handle edit payment receive.
|
||||
const handleEditPaymentReceive = () => {
|
||||
history.push(`/payment-receives/${paymentReceiveId}/edit`);
|
||||
closeDrawer(DRAWERS.PAYMENT_RECEIVE_DETAILS);
|
||||
history.push(`/payments-received/${paymentReceiveId}/edit`);
|
||||
closeDrawer(DRAWERS.PAYMENT_RECEIVED_DETAILS);
|
||||
};
|
||||
|
||||
// Handle delete payment receive.
|
||||
const handleDeletePaymentReceive = () => {
|
||||
openAlert('payment-receive-delete', { paymentReceiveId });
|
||||
openAlert('payment-received-delete', { paymentReceiveId });
|
||||
};
|
||||
|
||||
// Handle notify via SMS.
|
||||
@@ -80,7 +80,7 @@ function PaymentReceiveActionsBar({
|
||||
<Button
|
||||
className={Classes.MINIMAL}
|
||||
icon={<Icon icon="pen-18" />}
|
||||
text={<T id={'edit_payment_receive'} />}
|
||||
text={<T id={'edit_payment_received'} />}
|
||||
onClick={handleEditPaymentReceive}
|
||||
/>
|
||||
<NavbarDivider />
|
||||
@@ -129,4 +129,4 @@ export default compose(
|
||||
withDialogActions,
|
||||
withDrawerActions,
|
||||
withAlertsActions,
|
||||
)(PaymentReceiveActionsBar);
|
||||
)(PaymentsReceivedActionsBar);
|
||||
|
||||
@@ -35,13 +35,13 @@ function PaymentReceiveDetailProvider({ paymentReceiveId, ...props }) {
|
||||
return (
|
||||
<DrawerLoading loading={isPaymentLoading}>
|
||||
<DrawerHeaderContent
|
||||
name={DRAWERS.PAYMENT_RECEIVE_DETAILS}
|
||||
title={intl.get('payment_receive.drawer.title', {
|
||||
name={DRAWERS.PAYMENT_RECEIVED_DETAILS}
|
||||
title={intl.get('payment_received.drawer.title', {
|
||||
number: paymentReceive.payment_receive_no,
|
||||
})}
|
||||
subTitle={
|
||||
featureCan(Features.Branches)
|
||||
? intl.get('payment_receive.drawer.subtitle', {
|
||||
? intl.get('payment_received.drawer.subtitle', {
|
||||
value: paymentReceive.branch?.name,
|
||||
})
|
||||
: null
|
||||
|
||||
Reference in New Issue
Block a user