Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature 30048 #30

Open
wants to merge 4 commits into
base: implementation/COM/develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/components/PremiumsPaymentsOverview.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import DeletePaymentDialog from "./DeletePaymentDialog";
import {
RIGHT_PAYMENT_DELETE,
RIGHT_PAYMENT_ADD,
FAMILY_TYPE_POLYGAMY_CODE,
} from "../constants";

const styles = theme => ({
Expand Down Expand Up @@ -195,10 +196,11 @@ class PremiumsPaymentsOverview extends PagedDataHandler {
pageInfo,
readOnly,
premium,
edited,
rights,
fetchingPremiumsPayments,
} = this.props;
if (!family.uuid) return null;
if (!family.uuid ||(!!family.familyType && family.familyType.code == FAMILY_TYPE_POLYGAMY_CODE) || (!!edited && !!edited.familyType && edited.familyType.code == FAMILY_TYPE_POLYGAMY_CODE )) return null;
const canAdd = rights.includes(RIGHT_PAYMENT_ADD);
let actions = [
{
Expand Down
1 change: 1 addition & 0 deletions src/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,4 @@ export const MODULE_NAME = "payment";

export const PAYMENT_STATUS = [-5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5];
export const PAYMENTS_TAB_VALUE = "paymentsTab";
export const FAMILY_TYPE_POLYGAMY_CODE = "P";