Skip to content

Commit ab171a7

Browse files
authored
enhancement(ExpenseForm): misc tweaks and enhancements (#11775)
1 parent 4732a32 commit ab171a7

File tree

22 files changed

+28
-1
lines changed

22 files changed

+28
-1
lines changed

components/dashboard/sections/expenses/SubmittedExpenses.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ const SubmittedExpenses = ({ accountSlug }: DashboardSectionProps) => {
173173
}}
174174
expenseId={duplicateExpenseId}
175175
duplicateExpense={!!duplicateExpenseId}
176+
payeeSlug={accountSlug}
176177
/>
177178
)}
178179
</React.Fragment>

components/submit-expense/SubmitExpenseFlow.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ type SubmitExpenseFlowProps = {
2424
draftKey?: string;
2525
duplicateExpense?: boolean;
2626
submitExpenseTo?: string;
27+
payeeSlug?: string;
2728
endFlowButtonLabel?: React.ReactNode;
2829
};
2930

@@ -234,6 +235,7 @@ export function SubmitExpenseFlow(props: SubmitExpenseFlowProps) {
234235
<div className="relative flex w-full flex-row justify-center overflow-y-scroll pt-4 sm:gap-11 sm:px-8 sm:pt-10">
235236
<ExpenseFormikContainer
236237
submitExpenseTo={props.submitExpenseTo}
238+
payeeSlug={props.payeeSlug}
237239
draftKey={props.draftKey}
238240
duplicateExpense={props.duplicateExpense}
239241
expenseId={props.expenseId}
@@ -258,6 +260,7 @@ export function SubmitExpenseFlow(props: SubmitExpenseFlowProps) {
258260
*/
259261
function ExpenseFormikContainer(props: {
260262
submitExpenseTo?: string;
263+
payeeSlug?: string;
261264
draftKey?: string;
262265
duplicateExpense?: boolean;
263266
expenseId?: number;
@@ -280,6 +283,7 @@ function ExpenseFormikContainer(props: {
280283
formRef,
281284
initialValues: {
282285
accountSlug: props.submitExpenseTo,
286+
payeeSlug: props.payeeSlug,
283287
title: '',
284288
expenseTypeOption: ExpenseType.INVOICE,
285289
inviteeAccountType: InviteeAccountType.INDIVIDUAL,

lang/ca.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@
7979
"0JzeTD": "Aplicar el {taxName}",
8080
"0k5yUb": "Last interaction with Host",
8181
"0LK5eg": "Contribució",
82+
"0lwkdV": "Account Balance",
8283
"0meZND": "<Individual></Individual> deactivated \"Fiscal Hosting\"",
8384
"0rLm3g": "Legal name of the account holder",
8485
"0vL5u1": "Crea un compte",

lang/cs.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@
7979
"0JzeTD": "Použít {taxName}",
8080
"0k5yUb": "Last interaction with Host",
8181
"0LK5eg": "Příspěvek",
82+
"0lwkdV": "Account Balance",
8283
"0meZND": "<Individual></Individual> deactivated \"Fiscal Hosting\"",
8384
"0rLm3g": "Legal name of the account holder",
8485
"0vL5u1": "Vytvořit účet",

lang/de.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@
7979
"0JzeTD": "{taxName} anwenden",
8080
"0k5yUb": "Last interaction with Host",
8181
"0LK5eg": "Spende",
82+
"0lwkdV": "Account Balance",
8283
"0meZND": "<Individual></Individual> deactivated \"Fiscal Hosting\"",
8384
"0rLm3g": "Legal name of the account holder",
8485
"0vL5u1": "Konto erstellen",

lang/en.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@
7979
"0JzeTD": "Apply {taxName}",
8080
"0k5yUb": "Last interaction with Host",
8181
"0LK5eg": "Contribution",
82+
"0lwkdV": "Account Balance",
8283
"0meZND": "<Individual></Individual> deactivated \"Fiscal Hosting\"",
8384
"0rLm3g": "Legal name of the account holder",
8485
"0vL5u1": "Create an account",

lang/es.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@
7979
"0JzeTD": "Aplicar el {taxName}",
8080
"0k5yUb": "Last interaction with Host",
8181
"0LK5eg": "Colaboración",
82+
"0lwkdV": "Account Balance",
8283
"0meZND": "<Individual></Individual> deactivated \"Fiscal Hosting\"",
8384
"0rLm3g": "Legal name of the account holder",
8485
"0vL5u1": "Crear una cuenta",

lang/fr.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@
7979
"0JzeTD": "Appliquer {taxName}",
8080
"0k5yUb": "Last interaction with Host",
8181
"0LK5eg": "Contribution",
82+
"0lwkdV": "Account Balance",
8283
"0meZND": "<Individual></Individual> deactivated \"Fiscal Hosting\"",
8384
"0rLm3g": "Legal name of the account holder",
8485
"0vL5u1": "Créer un compte",

lang/he.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@
7979
"0JzeTD": "להוסיף מס {taxName}",
8080
"0k5yUb": "Last interaction with Host",
8181
"0LK5eg": "תרומה",
82+
"0lwkdV": "Account Balance",
8283
"0meZND": "<Individual></Individual> deactivated \"Fiscal Hosting\"",
8384
"0rLm3g": "Legal name of the account holder",
8485
"0vL5u1": "יצירת חשבון",

lang/it.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@
7979
"0JzeTD": "Applica {taxName}",
8080
"0k5yUb": "Last interaction with Host",
8181
"0LK5eg": "Contributo",
82+
"0lwkdV": "Account Balance",
8283
"0meZND": "<Individual></Individual> deactivated \"Fiscal Hosting\"",
8384
"0rLm3g": "Legal name of the account holder",
8485
"0vL5u1": "Crea un account",

0 commit comments

Comments
 (0)