Skip to content
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
5 changes: 3 additions & 2 deletions src/components/PaymentPlanForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,12 @@ class PaymentPlanForm extends Component {
return true;
};

canSave = () =>
canSave = () =>
!this.isMandatoryFieldsEmpty() &&
this.isPeriodicityValid() &&
!!this.state.jsonExtValid &&
this.doesPaymentPlanChange();
this.doesPaymentPlanChange() &&
this.props.isCodeValid;

save = paymentPlan => this.props.save(paymentPlan);

Expand Down
1 change: 1 addition & 0 deletions src/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
"contributionPlan.paymentPlans.page.title": "Payment Plans",
"contributionPlan.paymentPlans.searcher.results.title": "{paymentPlansTotalCount} Payment Plans Found",
"paymentPlan.code": "Code",
"paymentPlan.codeTaken": "Payment plan code already exists",
"paymentPlan.name": "Name",
"paymentPlan.calculation": "Calculation Rule",
"paymentPlan.benefitPlan": "Benefit Product",
Expand Down
Loading