Skip to content

Commit

Permalink
Merge pull request #888 from fecgov/release/sprint-21
Browse files Browse the repository at this point in the history
Release/sprint 21
  • Loading branch information
mjtravers authored Mar 16, 2023
2 parents 4663b77 + 73a559a commit de82156
Show file tree
Hide file tree
Showing 260 changed files with 4,936 additions and 4,391 deletions.
2 changes: 1 addition & 1 deletion front-end/cypress/e2e/transactions/memo-code-checked.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ describe('Tests that memos have the memo_code checkbox checked', () => {
enterContact(transaction.contact, true, true);
cy.medWait();

cy.contains('The dollar amount in a memo item is not incorporated into the total figure for the schedule').should(
cy.contains('span', 'The dollar amount in a memo item is not incorporated into the total figures for the schedule').should(
'exist'
);
cy.longWait();
Expand Down
66 changes: 63 additions & 3 deletions front-end/cypress/support/transaction_nav_trees.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,15 @@ export type SchATransactionName =
| 'Party National Party Pres. Nominating Convention Account'
| 'Tribal National Party Recount/Legal Proceedings Account'
| 'Partnership National Party Recount/Legal Proceedings Account'
| 'Partnership National Party Headquarters Buildings Account'
| 'Unregistered Receipt from Person - Returned/Bounced Receipt'
| 'Partnership Receipt'
| 'PAC Returned/Bounced Receipt'
| 'Party Returned/Bounced Receipt'
| 'Earmark Receipt for Recount/Legal Proceedings Account (Contribution)'
| 'Earmark Receipt for Pres. Nominating Convention Account (Contribution)'
| 'Earmark Receipt for Headquarters Buildings Account (Contribution)';
| 'Earmark Receipt for Headquarters Buildings Account (Contribution)'
| 'Partnership Recount Account Receipt';

export type ChildTransactionName =
| 'PAC Joint Fundraising Transfer Memo'
Expand All @@ -74,9 +76,11 @@ export type ChildTransactionName =
| 'PAC National Party Headquarters Buildings Account JF Transfer Memo'
| 'Partnership Memo'
| 'Partnership National Party Recount/Legal Proceedings Account Memo'
| 'Partnership National Party Headquarters Buildings Account Memo'
| 'Earmark Memo for Recount Account (Contribution)'
| 'Earmark Memo for Convention Account (Contribution)'
| 'Earmark Memo for Headquarters Account (Contribution)';
| 'Earmark Memo for Headquarters Account (Contribution)'
| 'Partnership Recount Account Receipt Memo';

export type TransactionGroup = 'A' | 'B' | 'C' | 'D' | 'E' | 'F' | 'AG' | 'FG';

Expand Down Expand Up @@ -442,7 +446,7 @@ const tribalNationalPartyRecountAccount: TransactionForm = {
};

const partnershipNationalPartyRecountAccount: TransactionForm = {
transaction_name: 'Partnership National Party Recount/Legal Proceedings Account',
transaction_name: 'Partnership National Party Recount/Legal Proceedings Account Memo',
transaction_category: 'OTHER',
transaction_group: 'D',
aggregation_group: 'NATIONAL_PARTY_RECOUNT_ACCOUNT',
Expand All @@ -465,6 +469,30 @@ const partnershipNationalPartyRecountAccountMemo: ChildTransactionForm = {
},
};

const partnershipNationalPartyHeadquartersAccount: TransactionForm = {
transaction_name: 'Partnership National Party Headquarters Buildings Account',
transaction_category: 'OTHER',
transaction_group: 'D',
aggregation_group: 'NATIONAL_PARTY_HEADQUARTERS_ACCOUNT',
...entityOrganization,
fields: {
...memoFields,
...purposeDescriptionFieldsRequired,
},
};

const partnershipNationalPartyHeadquartersAccountMemo: ChildTransactionForm = {
transaction_name: 'Partnership National Party Headquarters Buildings Account Memo',
transaction_group: 'A',
aggregation_group: 'NATIONAL_PARTY_HEADQUARTERS_ACCOUNT',
...entityIndividual,
childOf: 'Partnership National Party Headquarters Buildings Account',
fields: {
...memoFields,
...contributionFields,
},
};

const tribalNPRJFTransMemo: ChildTransactionForm = {
transaction_name: 'Tribal National Party Recount/Legal Proceedings Account JF Transfer Memo',
transaction_group: 'D',
Expand Down Expand Up @@ -992,6 +1020,30 @@ const partnershipMemo: ChildTransactionForm = {
},
};

const partnershipRecountAccountReceipt: TransactionForm = {
transaction_name: 'Partnership Recount Account Receipt',
transaction_category: 'OTHER',
transaction_group: 'D',
aggregation_group: 'RECOUNT_ACCOUNT',
...entityOrganization,
fields: {
...memoFields,
...purposeDescriptionFieldsRequired,
},
};

const partnershipRecountAccountReceiptMemo: ChildTransactionForm = {
transaction_name: 'Partnership Recount Account Receipt Memo',
transaction_group: 'A',
aggregation_group: 'RECOUNT_ACCOUNT',
...entityIndividual,
childOf: 'Partnership Recount Account Receipt',
fields: {
...memoFields,
...contributionFields,
},
};

const partyReturn: TransactionForm = {
transaction_name: 'Party Returned/Bounced Receipt',
transaction_category: 'REGISTERED FILERS',
Expand Down Expand Up @@ -1164,9 +1216,11 @@ export const schedANavTree: TransactionNavTree = {
'Party National Party Pres. Nominating Convention Account': partyNationalPartyConventionAccount,
'Tribal National Party Recount/Legal Proceedings Account': tribalNationalPartyRecountAccount,
'Partnership National Party Recount/Legal Proceedings Account': partnershipNationalPartyRecountAccount,
'Partnership National Party Headquarters Buildings Account': partnershipNationalPartyHeadquartersAccount,
'Earmark Receipt for Recount/Legal Proceedings Account (Contribution)': earmarkRecountReceipt,
'Earmark Receipt for Pres. Nominating Convention Account (Contribution)': earmarkConventionReceipt,
'Earmark Receipt for Headquarters Buildings Account (Contribution)': earmarkHeadquartersReceipt,
'Partnership Recount Account Receipt': partnershipRecountAccountReceipt,
},
};

Expand All @@ -1191,4 +1245,10 @@ export const childTransactionTree = {
'Partnership National Party Recount/Legal Proceedings Account': {
'Partnership National Party Recount/Legal Proceedings Account Memo': partnershipNationalPartyRecountAccountMemo,
},
'Partnership National Party Headquarters Buildings Account': {
'Partnership National Party Headquarters Buildings Account Memo': partnershipNationalPartyHeadquartersAccountMemo,
},
'Partnership Recount Account Receipt': {
'Partnership Recount Account Receipt Memo': partnershipRecountAccountReceiptMemo,
},
};
Loading

0 comments on commit de82156

Please sign in to comment.