Skip to content

Commit

Permalink
internal(financial entry): ensure only manual modifiers are accepted
Browse files Browse the repository at this point in the history
  • Loading branch information
KennethTrecy committed Aug 23, 2023
1 parent 27bde2e commit 3303367
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/Controllers/FinancialEntryController.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ protected static function makeCreateValidation(): Validation {
"ensure_ownership[".implode(",", [
ModifierModel::class,
SEARCH_NORMALLY
])."]",
"has_column_value_in_list[".implode(",", [
ModifierModel::class,
"kind",
MANUAL_MODIFIER_KIND
])."]"
]);
$validation->setRule("$individual_name.debit_amount", "debit amount", [
Expand Down

0 comments on commit 3303367

Please sign in to comment.