Merge pull request #598 from bigcapitalhq/move-payment-mades-to-payments-made

fix: Typo payments made
This commit is contained in:
Ahmed Bouhuolia
2024-08-13 19:33:02 +02:00
committed by GitHub
49 changed files with 45 additions and 45 deletions

View File

@@ -88,7 +88,7 @@ export const accountsPayable = [
{
title: <T id={'vendors_payments'} />,
description: <T id={'manage_payments_transactions_to_your_vendors'} />,
link: '/payment-mades',
link: '/payments-made',
subject: AbilitySubject.PaymentMade,
ability: PaymentMadeAction.View,
},

View File

@@ -265,8 +265,8 @@ export const SidebarMenu = [
type: ISidebarMenuItemType.Link,
},
{
text: <T id={'payment_mades'} />,
href: '/payment-mades',
text: <T id={'payments_made'} />,
href: '/payments-made',
type: ISidebarMenuItemType.Link,
permission: {
subject: AbilitySubject.PaymentMade,
@@ -299,7 +299,7 @@ export const SidebarMenu = [
},
{
text: <T id={'sidebar.new_payment_made'} />,
href: '/payment-mades/new',
href: '/payments-made/new',
type: ISidebarMenuItemType.Link,
permission: {
subject: AbilitySubject.PaymentMade,

View File

@@ -8,7 +8,7 @@ import InvoicesAlerts from '@/containers/Sales/Invoices/InvoicesAlerts';
import ReceiptsAlerts from '@/containers/Sales/Receipts/ReceiptsAlerts';
import PaymentReceiveAlerts from '@/containers/Sales/PaymentReceives/PaymentReceiveAlerts';
import BillsAlerts from '@/containers/Purchases/Bills/BillsLanding/BillsAlerts';
import PaymentMadesAlerts from '@/containers/Purchases/PaymentMades/PaymentMadesAlerts';
import PaymentsMadeAlerts from '@/containers/Purchases/PaymentsMade/PaymentsMadeAlerts';
import CustomersAlerts from '@/containers/Customers/CustomersAlerts';
import VendorsAlerts from '@/containers/Vendors/VendorsAlerts';
import ManualJournalsAlerts from '@/containers/Accounting/JournalsLanding/ManualJournalsAlerts';
@@ -40,7 +40,7 @@ export default [
...ReceiptsAlerts,
...PaymentReceiveAlerts,
...BillsAlerts,
...PaymentMadesAlerts,
...PaymentsMadeAlerts,
...CustomersAlerts,
...VendorsAlerts,
...ManualJournalsAlerts,

View File

@@ -7,7 +7,7 @@ import { useFormikContext } from 'formik';
import { Intent } from '@blueprintjs/core';
import { AppToaster } from '@/components';
import { useQuickPaymentMadeContext } from './QuickPaymentMadeFormProvider';
import { PAYMENT_MADE_ERRORS } from '@/containers/Purchases/PaymentMades/constants';
import { PAYMENT_MADE_ERRORS } from '@/containers/Purchases/PaymentsMade/constants';
// Default initial values of payment made.
export const defaultPaymentMade = {

View File

@@ -48,7 +48,7 @@ function BillPaymentTransactionTable({
// Handles edit bill payment transactions.
const handleEditBillPaymentTransactions = ({ bill_payment_id }) => {
history.push(`/payment-mades/${bill_payment_id}/edit`);
history.push(`/payments-made/${bill_payment_id}/edit`);
closeDrawer(DRAWERS.BILL_DETAILS);
};

View File

@@ -42,7 +42,7 @@ function PaymentMadeDetailActionsBar({
// Handle edit payment made.
const handleEditPaymentMade = () => {
history.push(`/payment-mades/${paymentMadeId}/edit`);
history.push(`/payments-made/${paymentMadeId}/edit`);
closeDrawer(DRAWERS.PAYMENT_MADE_DETAILS);
};

View File

@@ -71,7 +71,7 @@ function VendorDetailsActionsBar({
};
const handleNewPaymentClick = () => {
history.push('/payment-mades/new');
history.push('/payments-made/new');
closeDrawer(DRAWERS.VENDOR_DETAILS);
};

View File

@@ -120,7 +120,7 @@ function PaymentMadeForm({
});
setSubmitting(false);
submitPayload.redirect && history.push('/payment-mades');
submitPayload.redirect && history.push('/payments-made');
submitPayload.resetForm && resetForm();
};

View File

@@ -68,7 +68,7 @@ function PaymentMadeActionsBar({
// Handle new payment made button click.
const handleClickNewPaymentMade = () => {
history.push('/payment-mades/new');
history.push('/payments-made/new');
};
// Handle tab changing.
const handleTabChange = (viewSlug) => {
@@ -84,7 +84,7 @@ function PaymentMadeActionsBar({
};
// Handle the import button click.
const handleImportBtnClick = () => {
history.push('/payment-mades/import');
history.push('/payments-made/import');
};
// Handle the export button click.
const handleExportBtnClick = () => {

View File

@@ -37,7 +37,7 @@ function PaymentMadeViewTabs({
);
const handleClickNewView = () => {
history.push('/custom_views/payment-mades/new');
history.push('/custom_views/payments-made/new');
};
return (

View File

@@ -23,7 +23,7 @@ export default function PaymentMadesEmptyStatus() {
intent={Intent.PRIMARY}
large={true}
onClick={() => {
history.push('/payment-mades/new');
history.push('/payments-made/new');
}}
>
<T id={'new_bill_payment'} />

View File

@@ -61,7 +61,7 @@ function PaymentMadesTable({
// Handles the edit payment made action.
const handleEditPaymentMade = (paymentMade) => {
history.push(`/payment-mades/${paymentMade.id}/edit`);
history.push(`/payments-made/${paymentMade.id}/edit`);
};
// Handles the delete payment made action.

View File

@@ -20,7 +20,7 @@ function PaymentMadesViewPage({
<Switch>
<Route
exact={true}
path={['/payment-mades/:custom_view_id/custom_view', '/payment-mades']}
path={['/payments-made/:custom_view_id/custom_view', '/payments-made']}
>
{/* <PaymentMadeDataTable

View File

@@ -3,14 +3,14 @@ import { useHistory } from 'react-router-dom';
import { DashboardInsider } from '@/components';
import { ImportView } from '@/containers/Import';
export default function PaymentMadesImport() {
export default function PaymentsMadeImport() {
const history = useHistory();
const handleCancelBtnClick = () => {
history.push('/payment-mades');
history.push('/payments-made');
};
const handleImportSuccess = () => {
history.push('/payment-mades');
history.push('/payments-made');
};
return (

View File

@@ -13,7 +13,7 @@ import withDrawerActions from '@/containers/Drawer/withDrawerActions';
/**
* Universal search bill item select action.
*/
function PaymentMadeUniversalSearchSelectComponent({
function PaymentsMadeUniversalSearchSelectComponent({
// #ownProps
resourceType,
resourceId,
@@ -27,14 +27,14 @@ function PaymentMadeUniversalSearchSelectComponent({
return null;
}
export const PaymentMadeUniversalSearchSelect = withDrawerActions(
PaymentMadeUniversalSearchSelectComponent,
export const PaymentsMadeUniversalSearchSelect = withDrawerActions(
PaymentsMadeUniversalSearchSelectComponent,
);
/**
* Payment made universal search item.
*/
export function PaymentMadeUniversalSearchItem(
export function PaymentsMadeUniversalSearchItem(
{ text, label, reference },
{ handleClick, modifiers, query },
) {
@@ -78,9 +78,9 @@ const paymentMadeToSearch = (payment) => ({
*/
export const universalSearchPaymentMadeBind = () => ({
resourceType: RESOURCES_TYPES.PAYMENT_MADE,
optionItemLabel: intl.get('payment_mades'),
selectItemAction: PaymentMadeUniversalSearchSelect,
itemRenderer: PaymentMadeUniversalSearchItem,
optionItemLabel: intl.get('payments_made'),
selectItemAction: PaymentsMadeUniversalSearchSelect,
itemRenderer: PaymentsMadeUniversalSearchItem,
itemSelect: paymentMadeToSearch,
permission: {
ability: PaymentMadeAction.View,

View File

@@ -4,7 +4,7 @@ import { universalSearchReceiptBind } from '../Sales/Receipts/ReceiptUniversalSe
import { universalSearchBillBind } from '../Purchases/Bills/BillUniversalSearch';
import { universalSearchEstimateBind } from '../Sales/Estimates/EstimatesLanding/EstimateUniversalSearch';
import { universalSearchPaymentReceiveBind } from '../Sales/PaymentReceives/PaymentReceiveUniversalSearch';
import { universalSearchPaymentMadeBind } from '../Purchases/PaymentMades/PaymentMadeUniversalSearch';
import { universalSearchPaymentMadeBind } from '../Purchases/PaymentsMade/PaymentsMadeUniversalSearch';
import { universalSearchItemBind } from '../Items/ItemsUniversalSearch';
import { universalSearchCustomerBind } from '../Customers/CustomersUniversalSearch';
import { universalSearchJournalBind } from '../Accounting/ManualJournalUniversalSearch';

View File

@@ -618,7 +618,7 @@
"bill_amount": "مبلغ الفاتورة",
"payment_no_": "رقم سند الدفع",
"new_payment_made": "سند موردين جديد",
"payment_made_list": "قائمة سندات الموردين",
"payments_made_list": "قائمة سندات الموردين",
"select_vender_account": "اختار حساب المورد",
"the_payment_made_has_been_edited_successfully": "تم تعديل سند المورد التي تم إجراؤه بنجاح.",
"the_payment_made_has_been_created_successfully": "تم إنشاء سند مورد بنجاح.",

View File

@@ -586,7 +586,7 @@
"the_payment_receive_transaction_has_been_edited": "The payment receive transaction has been edited successfully.",
"once_delete_this_payment_receive_you_will_able_to_restore_it": "Once you delete this payment receive, you won't be able to restore it later. Are you sure you want to delete this payment receive?",
"select_invoice": "Select Invoice",
"payment_mades": "Payment Mades",
"payments_made": "Payments Made",
"subscription": "Subscription",
"plan_slug": "Plan slug",
"billing": "Billing",
@@ -615,14 +615,14 @@
"bill_amount": "Bill Amount",
"payment_no_": "Payment number",
"new_payment_made": "New Payment Made",
"payment_made_list": "Payment Made List",
"payments_made_list": "Payments Made List",
"payment_account": "Payment Account",
"select_vender_account": "Select Vender Account...",
"select_payment_account": "Select Payment Account...",
"the_payment_made_has_been_edited_successfully": "The payment made has been edited successfully.",
"the_payment_made_has_been_created_successfully": "The payment made has been created successfully.",
"the_payment_made_has_been_deleted_successfully": "The payment made has been deleted successfully.",
"once_delete_this_payment_made_you_will_able_to_restore_it": "Once you delete this payment made, you won't be able to restore it later. Are you sure you want to delete this payment made?",
"once_delete_this_payment_made_you_will_able_to_restore_it": "Once you delete this payment transaction, you won't be able to restore it later. Are you sure you want to delete this payment made?",
"sellable": "Sellable",
"purchasable": "Purchasable",
"sell_account": "Sell Account",
@@ -941,7 +941,7 @@
"new_sale_invoice": " New sale invoice",
"there_is_no_payable_bills_for_this_vendor_that_can_be_applied_for_this_payment": "There is no payable bills for this vendor that can be applied for this payment",
"please_select_a_vendor_to_display_all_open_bills_for_it": "Please select a vendor to display all open bills for it.",
"payment_made_details": "Payment made details",
"payment_made_details": "Payment Made Details",
"there_is_no_inventory_adjustments_transactions_yet": "There is no inventory adjustments transactions yet.",
"create_and_manage_your_organization_s_customers": "Create and manage your organization's customers.",
"salutation": "Salutation",
@@ -1741,7 +1741,7 @@
"credit_note.drawer.subtitle": "Branch: {value}",
"payment_receive.drawer.title": "Payment receive details ({number})",
"payment_receive.drawer.subtitle": "Branch: {value}",
"payment_made.drawer.title": "Payment made details {number}",
"payment_made.drawer.title": "Payment Made Details {number}",
"payment_made.drawer.subtitle": "Branch: {value}",
"manual_journal.drawer.title": "Manual journal details ({number})",
"expense.drawer.title": "Expense details",
@@ -2197,7 +2197,7 @@
"sidebar.purchases": "Purchases",
"sidebar.bills": "Bills",
"sidebar.vendor_credits": "Vendor Credits",
"sidebar.payment_mades": "Payment Mades",
"sidebar.payments_made": "Payments Made",
"sidebar.new_purchase_invoice": "New Purchase Invoice",
"sidebar.new_vendor_credit": "New Vendor Credit",
"sidebar.new_payment_made": "New Payment Made",

View File

@@ -1095,9 +1095,9 @@ export const getDashboardRoutes = () => [
// Payment modes.
{
path: `/payment-mades/import`,
path: `/payments-made/import`,
component: lazy(
() => import('@/containers/Purchases/PaymentMades/PaymentMadesImport'),
() => import('@/containers/Purchases/PaymentsMade/PaymentsMadeImport'),
),
name: 'payment-made-edit',
breadcrumb: intl.get('edit'),
@@ -1107,11 +1107,11 @@ export const getDashboardRoutes = () => [
subscriptionActive: [SUBSCRIPTION_TYPE.MAIN],
},
{
path: `/payment-mades/:id/edit`,
path: `/payments-made/:id/edit`,
component: lazy(
() =>
import(
'@/containers/Purchases/PaymentMades/PaymentForm/PaymentMadeFormPage'
'@/containers/Purchases/PaymentsMade/PaymentForm/PaymentMadeFormPage'
),
),
name: 'payment-made-edit',
@@ -1123,11 +1123,11 @@ export const getDashboardRoutes = () => [
subscriptionActive: [SUBSCRIPTION_TYPE.MAIN],
},
{
path: `/payment-mades/new`,
path: `/payments-made/new`,
component: lazy(
() =>
import(
'@/containers/Purchases/PaymentMades/PaymentForm/PaymentMadeFormPage'
'@/containers/Purchases/PaymentsMade/PaymentForm/PaymentMadeFormPage'
),
),
name: 'payment-made-new',
@@ -1139,15 +1139,15 @@ export const getDashboardRoutes = () => [
subscriptionActive: [SUBSCRIPTION_TYPE.MAIN],
},
{
path: `/payment-mades`,
path: `/payments-made`,
component: lazy(
() =>
import(
'@/containers/Purchases/PaymentMades/PaymentsLanding/PaymentMadeList'
'@/containers/Purchases/PaymentsMade/PaymentsLanding/PaymentMadeList'
),
),
breadcrumb: intl.get('payment_made_list'),
pageTitle: intl.get('payment_made_list'),
breadcrumb: intl.get('payments_made_list'),
pageTitle: intl.get('payments_made_list'),
defaultSearchResource: RESOURCES_TYPES.PAYMENT_MADE,
subscriptionActive: [SUBSCRIPTION_TYPE.MAIN],
},