Skip to content

Commit

Permalink
UIU-1975: Remove filtering of payments
Browse files Browse the repository at this point in the history
  • Loading branch information
annamelnyk authored and zburke committed Nov 24, 2020
1 parent 141dd11 commit d7ba005
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/components/Accounts/ChargeFeeFine/ChargeFeeFine.js
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,7 @@ class ChargeFeeFine extends React.Component {
}
});
const feefines = _.get(resources, ['allfeefines', 'records'], []);
const payments = _.get(resources, ['payments', 'records'], []);
const accounts = _.get(resources, ['accounts', 'records'], []);
const settings = _.get(resources, ['commentRequired', 'records', 0], {});
const barcode = _.get(resources, 'activeRecord.barcode');
Expand Down Expand Up @@ -463,9 +464,6 @@ class ChargeFeeFine extends React.Component {
const selectedFeeFine = feefines.find(f => f.id === feeFineTypeId);
const currentOwnerFeeFineTypes = feefines.filter(f => f.ownerId === resources.activeRecord.ownerId);
const selectedOwner = owners.find(o => o.id === initialOwnerId);
const payments = _.get(resources, ['payments', 'records'], []).filter(
p => p.ownerId === this.state.ownerId || resources.activeRecord.ownerId
);

const initialChargeValues = {
ownerId: resources.activeRecord.ownerId || '',
Expand Down

0 comments on commit d7ba005

Please sign in to comment.