Skip to content

Commit

Permalink
Merge pull request #19948 from demeritcowboy/defrev-recdate
Browse files Browse the repository at this point in the history
dev/financial#172 - Warning when saving a contribution with a recognition date
  • Loading branch information
eileenmcnaughton authored Apr 5, 2021
2 parents 56233cb + d6f6525 commit ee78445
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions CRM/Contribute/Form/Contribution.php
Original file line number Diff line number Diff line change
Expand Up @@ -910,11 +910,6 @@ public static function formRule($fields, $files, $self) {
$errors['trxn_id'] = ts('Transaction ID\'s must be unique. Transaction \'%1\' already exists in your database.', [1 => $fields['trxn_id']]);
}
}
if (!empty($fields['revenue_recognition_date'])
&& count(array_filter($fields['revenue_recognition_date'])) == 1
) {
$errors['revenue_recognition_date'] = ts('Month and Year are required field for Revenue Recognition.');
}
// CRM-16189
try {
CRM_Financial_BAO_FinancialAccount::checkFinancialTypeHasDeferred($fields, $self->_id, $self->_priceSet['fields']);
Expand Down

0 comments on commit ee78445

Please sign in to comment.