Skip to content

Commit

Permalink
Merge branch 'payment_plan_refactor' of github.com:unicef/hope into p…
Browse files Browse the repository at this point in the history
…ayment_plan_refactor
  • Loading branch information
marekbiczysko committed Jan 31, 2025
2 parents 269e3f0 + de5119a commit 5676dac
Show file tree
Hide file tree
Showing 22 changed files with 60 additions and 840 deletions.
6 changes: 3 additions & 3 deletions src/frontend/data/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -2581,9 +2581,9 @@ type PaymentPlanNode implements Node {
steficonTargetingAppliedDate: DateTime
sourcePaymentPlan: PaymentPlanNode
isFollowUp: Boolean!
excludedIds: String!
exclusionReason: String!
excludeHouseholdError: String!
excludedIds: String
exclusionReason: String
excludeHouseholdError: String
name: String
vulnerabilityScoreMin: Float
vulnerabilityScoreMax: Float
Expand Down
20 changes: 11 additions & 9 deletions src/frontend/src/__generated__/graphql.tsx

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export const PAYMENT_PLAN_QUERY = gql`
status
buildStatus
canCreateFollowUp
failedWalletValidationCollectorsIds
backgroundActionStatus
canCreatePaymentVerificationPlan
availablePaymentRecordsCount
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export const TARGET_POPULATION_QUERY = gql`
status
buildStatus
adminUrl
failedWalletValidationCollectorsIds
totalHouseholdsCount
totalIndividualsCount
femaleChildrenCount
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -48,60 +48,6 @@ exports[`components/paymentmodule/PaymentPlanDetails/VolumeByDeliveryMechanismSe
</div>
</div>
</div>
<div
class="MuiGrid-root MuiGrid-item MuiGrid-grid-xs-6 css-1osj8n2-MuiGrid-root"
>
<div
class="sc-egkSDF eVkuQb"
color=" #d8d8d8"
>
<div>
<span
class="sc-blHHSb dUfUKp"
color="textSecondary"
>
In Kind (Frazier-Watson)
</span>
<div
data-cy="label-In Kind (Frazier-Watson)"
>
<span
class="sc-gtLWhw dynQwi"
color="textSecondary"
>
0 PLN (0 USD)
</span>
</div>
</div>
</div>
</div>
<div
class="MuiGrid-root MuiGrid-item MuiGrid-grid-xs-6 css-1osj8n2-MuiGrid-root"
>
<div
class="sc-egkSDF dYDxEt"
color="#003C8F"
>
<div>
<span
class="sc-blHHSb dUfUKp"
color="textSecondary"
>
Transfer (Bray Group)
</span>
<div
data-cy="label-Transfer (Bray Group)"
>
<span
class="sc-gtLWhw dynQwi"
color="textSecondary"
>
0 PLN (0 USD)
</span>
</div>
</div>
</div>
</div>
</div>
<div
class="MuiGrid-root MuiGrid-container css-1e2bu2o-MuiGrid-root"
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export function LockFspPaymentPlan({
);

const canLockFsp =
paymentPlan.deliveryMechanisms.length > 0 &&
paymentPlan.deliveryMechanism &&
hasPermissions(PERMISSIONS.PM_LOCK_AND_UNLOCK_FSP, permissions);

return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ describe('components/paymentmodule/PaymentPlanDetails/FspSection', () => {
const { container } = render(
<FspSection
baseUrl={fakeBaseUrl}
paymentPlan={{ ...fakeApolloPaymentPlan, deliveryMechanisms: [] }}
paymentPlan={{ ...fakeApolloPaymentPlan, deliveryMechanism: null }}
/>,
);
expect(container).toMatchSnapshot();
Expand Down
Loading

0 comments on commit 5676dac

Please sign in to comment.